annotate Makefile.linux @ 54:40911898ed23

Fix multiple border glitches.
author davidb
date Thu, 07 May 2020 14:05:40 -0700
parents bcbc92ffe0d0
children
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
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
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
12
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
13 checkenv:
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
14 @if [ -z "$(JRE_HOME)" ]; then \
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
15 1>&2 echo "JRE_HOME not set"; \
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
16 exit 1; \
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
17 fi
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)/libjni.so: $(NDIR)/native.cpp
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
20 $(CXX) $(CXXFLAGS) -o $@ $< -lexiv2
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
21
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
22 $(BDIR)/libexiv2.so: /usr/lib/x86_64-linux-gnu/libexiv2.so
9bb5dfef3d2a Makefile for Linux.
David Barts <n5jrn@me.com>
parents:
diff changeset
23 cp -fp $< $@