blob: 2d5b6c82b2a280a2433d83dd3c7108b1ba4da24c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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) $^ > $@
|