Mercurial > cgi-bin > hgweb.cgi > JpegWasher
comparison Makefile.linux @ 30:9bb5dfef3d2a
Makefile for Linux.
author | David Barts <n5jrn@me.com> |
---|---|
date | Fri, 17 Apr 2020 10:09:30 -0700 |
parents | |
children | bcbc92ffe0d0 |
comparison
equal
deleted
inserted
replaced
29:0161374f7a60 | 30:9bb5dfef3d2a |
---|---|
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 $< $@ |