aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2018-02-14 11:12:45 +0100
committerRobin Krahl <robin.krahl@ireas.org>2018-02-14 11:14:30 +0100
commit10fcd3a946a270fc6d111252b2de08dcd625a2b8 (patch)
tree32f874025493ee14563a02dc9c767b3f9e3739b8 /Makefile
downloadnkotp-master.tar.gz
nkotp-master.tar.bz2
Initial commit with support for OTP generationHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..2d5b6c8
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,32 @@
+include config.mk
+
+VERSION := $(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_PATCH)
+
+CPPFLAGS += -DNKOTP_VERSION_MAJOR=$(VERSION_MAJOR) \
+ -DNKOTP_VERSION_MINOR=$(VERSION_MINOR) \
+ -DNKOTP_VERSION_PATCH=$(VERSION_PATCH) \
+ -DNKOTP_VERSION=\"$(VERSION)\"
+CPPFLAGS += $(CPPFLAGS_CONFUSE)
+CPPFLAGS += $(CPPFLAGS_NITROKEY)
+LDFLAGS += $(LDFLAGS_CONFUSE)
+LDFLAGS += $(LDFLAGS_NITROKEY)
+
+P2MFLAGS += --release=$(VERSION)
+
+OBJECTS := nkotp.o options.o
+TARGETS := nkotp nkotp.1 nkotp.1.html
+
+.PHONY: all clean
+
+all: $(TARGETS)
+
+clean:
+ rm -f $(OBJECTS) $(TARGETS) pod2htmd.tmp
+
+nkotp: $(OBJECTS)
+
+nkotp.1: nkotp.1.pod
+ pod2man $(P2MFLAGS) $^ > $@
+
+nkotp.1.html: nkotp.1.pod
+ pod2html $(P2HFLAGS) $^ > $@