diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 32 |
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) $^ > $@ |