No empty .Rs/.Re
[netbsd-mini2440.git] / external / bsd / bind / dist / contrib / zkt / Makefile.in
blob7c61450e50ef7f0d9ff4c4be24b9fb09040af91a
1 #################################################################
3 # @(#) Makefile for dnssec zone key tool (c) Mar 2005 hoz
5 #################################################################
7 prefix = @prefix@
8 mandir = @mandir@
10 CC = @CC@
12 PROFILE = # -pg
13 OPTIM = # -O3 -DNDEBUG
15 #CFLAGS ?= @CFLAGS@ @DEFS@ -I@top_srcdir@
16 CFLAGS += -g @DEFS@ -I@top_srcdir@
17 CFLAGS += -Wall #-DDBG
18 CFLAGS += -Wmissing-prototypes
19 CFLAGS += $(PROFILE) $(OPTIM)
20 LDFLAGS += $(PROFILE)
22 PROJECT = @PACKAGE_TARNAME@
23 VERSION = @PACKAGE_VERSION@
25 HEADER = dki.h misc.h domaincmp.h zconf.h config_zkt.h \
26 config.h.in strlist.h zone.h zkt.h debug.h \
27 ncparse.h log.h rollover.h nscomm.h soaserial.h
28 SRC_ALL = dki.c misc.c domaincmp.c zconf.c log.c
29 OBJ_ALL = $(SRC_ALL:.c=.o)
31 SRC_SIG = dnssec-signer.c zone.c ncparse.c rollover.c \
32 nscomm.c soaserial.c
33 OBJ_SIG = $(SRC_SIG:.c=.o)
34 MAN_SIG = dnssec-signer.8
35 PROG_SIG= dnssec-signer
37 SRC_ZKT = dnssec-zkt.c strlist.c zkt.c
38 OBJ_ZKT = $(SRC_ZKT:.c=.o)
39 MAN_ZKT = dnssec-zkt.8
40 PROG_ZKT= dnssec-zkt
42 SRC_SER = zkt-soaserial.c
43 OBJ_SER = $(SRC_SER:.c=.o)
44 #MAN_SER = zkt-soaserial.8
45 PROG_SER= zkt-soaserial
47 MAN_ALL = $(MAN_ZKT) $(MAN_SIG) #$(MAN_SER)
48 OTHER = README README.logging TODO LICENSE CHANGELOG tags Makefile.in \
49 configure examples
50 SAVE = $(HEADER) $(SRC_ALL) $(SRC_SIG) $(SRC_ZKT) $(SRC_SER) $(OTHER) \
51 man configure.ac config.h.in doc
52 #MNTSAVE = $(SAVE) configure.ac config.h.in doc
55 all: $(PROG_ZKT) $(PROG_SIG) $(PROG_SER)
57 macos: ## for MAC OS (depreciated)
58 macos:
59 $(MAKE) CFLAGS="$(CFLAGS) -D HAS_UTYPES=0" all
61 solaris: ## for solaris (depreciated)
62 solaris:
63 @$(MAKE) CFLAGS="$(CFLAGS) -D HAVE_GETOPT_LONG=0" all
65 linux: ## for linux (default)
66 linux:
67 @$(MAKE) all
69 $(PROG_SIG): $(OBJ_SIG) $(OBJ_ALL) Makefile
70 $(CC) $(LDFLAGS) $(OBJ_SIG) $(OBJ_ALL) -o $(PROG_SIG)
72 $(PROG_ZKT): $(OBJ_ZKT) $(OBJ_ALL) Makefile
73 $(CC) $(LDFLAGS) $(OBJ_ZKT) $(OBJ_ALL) -o $(PROG_ZKT)
75 $(PROG_SER): $(OBJ_SER) Makefile
76 $(CC) $(LDFLAGS) $(OBJ_SER) -o $(PROG_SER)
78 install: ## install binaries in prefix/bin
79 install: $(PROG_ZKT) $(PROG_SIG) $(PROG_SER)
80 test -d $(prefix)/bin || mkdir -p $(prefix)/bin
81 cp $(PROG_ZKT) $(PROG_SIG) $(PROG_SER) $(prefix)/bin/
83 install-man: ## install man pages in mandir
84 install-man:
85 test -d $(mandir)/man8/ || mkdir -p $(mandir)/man8/
86 cp -p man/$(MAN_ZKT) man/$(MAN_SIG) $(mandir)/man8/
90 tags: ## create tags file
91 tags: $(SRC_ALL) $(SRC_SIG) $(SRC_ZKT) $(SRC_SER)
92 ctags $(SRC_ALL) $(SRC_SIG) $(SRC_ZKT) $(SRC_SER)
94 clean: ## remove objectfiles and binaries
95 clean:
96 -rm -f $(OBJ_SIG) $(OBJ_ZKT) $(OBJ_SER) $(OBJ_ALL) \
97 $(PROG_ZKT) $(PROG_SIG) $(PROG_SER)
99 distclean: ## remove objectfiles, binaries and distribution files
100 distclean: clean
101 -rm -f Makefile config.h config.log config.status config.cache \
102 $(PROJECT)-$(VERSION).tar.gz
104 tar: ## create tar file for distribution
105 tar: $(PROJECT)-$(VERSION).tar.gz
107 configure: ## create configure script
108 configure: configure.ac Makefile.in
109 autoconf && autoheader
111 man: man/$(MAN_ZKT).html man/$(MAN_ZKT).pdf man/$(MAN_SIG).html man/$(MAN_SIG).pdf
113 man/$(MAN_ZKT).html: man/$(MAN_ZKT)
114 groff -Thtml -man -mhtml man/$(MAN_ZKT) > man/$(MAN_ZKT).html
115 man/$(MAN_ZKT).pdf: man/$(MAN_ZKT)
116 groff -Tps -man man/$(MAN_ZKT) | ps2pdf - man/$(MAN_ZKT).pdf
117 man/$(MAN_SIG).html: man/$(MAN_SIG)
118 groff -Thtml -man -mhtml man/$(MAN_SIG) > man/$(MAN_SIG).html
119 man/$(MAN_SIG).pdf: man/$(MAN_SIG)
120 groff -Tps -man man/$(MAN_SIG) | ps2pdf - man/$(MAN_SIG).pdf
123 $(PROJECT)-$(VERSION).tar.gz: $(SAVE)
124 rm -f examples/hierarchical/log/zkt-*
126 distfiles=`ls -d $(SAVE) | sed 's|^|$(PROJECT)-$(VERSION)/|'` ;\
127 cd .. && tar czvf $(PROJECT)-$(VERSION)/$(PROJECT)-$(VERSION).tar.gz $$distfiles ;\
130 depend:
131 $(CC) -MM $(SRC_SIG) $(SRC_ZKT) $(SRC_SER) $(SRC_ALL)
133 help:
134 @grep "^.*:[ ]*##" Makefile
136 ## all dependicies
137 #:r !make depend
138 #gcc -MM dnssec-signer.c zone.c ncparse.c rollover.c nscomm.c soaserial.c dnssec-zkt.c strlist.c zkt.c zkt-soaserial.c dki.c misc.c domaincmp.c zconf.c log.c
139 dnssec-signer.o: dnssec-signer.c config_zkt.h zconf.h debug.h misc.h \
140 ncparse.h nscomm.h zone.h dki.h log.h soaserial.h rollover.h
141 zone.o: zone.c config_zkt.h debug.h domaincmp.h misc.h zconf.h dki.h \
142 zone.h
143 ncparse.o: ncparse.c debug.h misc.h zconf.h log.h ncparse.h
144 rollover.o: rollover.c config_zkt.h zconf.h debug.h misc.h zone.h dki.h \
145 log.h rollover.h
146 nscomm.o: nscomm.c config_zkt.h zconf.h nscomm.h zone.h dki.h log.h \
147 misc.h debug.h
148 soaserial.o: soaserial.c config_zkt.h zconf.h log.h debug.h soaserial.h
149 dnssec-zkt.o: dnssec-zkt.c config_zkt.h debug.h misc.h zconf.h strlist.h \
150 dki.h zkt.h
151 strlist.o: strlist.c strlist.h
152 zkt.o: zkt.c config_zkt.h dki.h misc.h zconf.h strlist.h zkt.h
153 zkt-soaserial.o: zkt-soaserial.c config_zkt.h
154 dki.o: dki.c config_zkt.h debug.h domaincmp.h misc.h zconf.h dki.h
155 misc.o: misc.c config_zkt.h zconf.h log.h debug.h misc.h
156 domaincmp.o: domaincmp.c domaincmp.h
157 zconf.o: zconf.c config_zkt.h debug.h misc.h zconf.h dki.h
158 log.o: log.c config_zkt.h misc.h zconf.h debug.h log.h