annotate Makefile.linux @ 32:c06edc56669b

Enable vari-sized headings.
author David Barts <davidb@stashtea.com>
date Fri, 24 Apr 2020 14:01:03 -0700
parents 9bb5dfef3d2a
children bcbc92ffe0d0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
1 CXX = g++
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
2 CXXFLAGS = -shared -fPIC -I$(JRE_HOME)/include -I$(JRE_HOME)/include/linux
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
3 NDIR = src/name/blackcap/exifwasher/exiv2
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
4 BDIR = src/name/blackcap/exifwasher/binaries/linux
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
5
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
6 .PHONY: all checkenv
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
7
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
8 all: checkenv $(BDIR)/libjni.so $(BDIR)/libexiv2.so
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
9
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
10 checkenv:
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
11 @if [ -z "$(JRE_HOME)" ]; then \
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
12 1>&2 echo "JRE_HOME not set"; \
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
13 exit 1; \
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
14 fi
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
15
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
16 $(BDIR)/libjni.so: $(NDIR)/native.cpp
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
17 $(CXX) $(CXXFLAGS) -o $@ $< -lexiv2
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
18
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
19 $(BDIR)/libexiv2.so: /usr/lib/x86_64-linux-gnu/libexiv2.so
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
20 cp -fp $< $@