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
|
|
8 all: checkenv $(BDIR)/libjni.so $(BDIR)/libexiv2.so
|
|
9
|
|
10 checkenv:
|
|
11 @if [ -z "$(JRE_HOME)" ]; then \
|
|
12 1>&2 echo "JRE_HOME not set"; \
|
|
13 exit 1; \
|
|
14 fi
|
|
15
|
|
16 $(BDIR)/libjni.so: $(NDIR)/native.cpp
|
|
17 $(CXX) $(CXXFLAGS) -o $@ $< -lexiv2
|
|
18
|
|
19 $(BDIR)/libexiv2.so: /usr/lib/x86_64-linux-gnu/libexiv2.so
|
|
20 cp -fp $< $@
|