Mercurial > cgi-bin > hgweb.cgi > JpegWasher
annotate Makefile.linux @ 37:4fdd2f7e2cec
Prune out more deadwood.
author | David Barts <n5jrn@me.com> |
---|---|
date | Fri, 01 May 2020 07:49:16 -0700 |
parents | bcbc92ffe0d0 |
children |
rev | line source |
---|---|
30 | 1 CXX = g++ |
2 CXXFLAGS = -shared -fPIC -I$(JRE_HOME)/include -I$(JRE_HOME)/include/linux | |
3 NDIR = src/name/blackcap/exifwasher/exiv2 | |
4 BDIR = src/name/blackcap/exifwasher/binaries/linux | |
5 | |
6 .PHONY: all checkenv | |
7 | |
35
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
30
diff
changeset
|
8 all: mkdirs checkenv $(BDIR)/libjni.so $(BDIR)/libexiv2.so |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
30
diff
changeset
|
9 |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
30
diff
changeset
|
10 mkdirs: |
bcbc92ffe0d0
Makes a .deb file at long last, but Duke still shows up as an icon in the dock.
David Barts <n5jrn@me.com>
parents:
30
diff
changeset
|
11 @[ -d "$(BDIR)" ] || mkdir -p "$(BDIR)" |
30 | 12 |
13 checkenv: | |
14 @if [ -z "$(JRE_HOME)" ]; then \ | |
15 1>&2 echo "JRE_HOME not set"; \ | |
16 exit 1; \ | |
17 fi | |
18 | |
19 $(BDIR)/libjni.so: $(NDIR)/native.cpp | |
20 $(CXX) $(CXXFLAGS) -o $@ $< -lexiv2 | |
21 | |
22 $(BDIR)/libexiv2.so: /usr/lib/x86_64-linux-gnu/libexiv2.so | |
23 cp -fp $< $@ |