Merge from vendor branch DHCP:
[dragonfly.git] / contrib / isc-dhcp / minires / Makefile.dist
1 # Makefile.dist
2 #
3 # Copyright (c) 1996-2000 Internet Software Consortium.
4 # Use is subject to license terms which appear in the file named
5 # ISC-LICENSE that should have accompanied this file when you
6 # received it.   If a file named ISC-LICENSE did not accompany this
7 # file, or you are not sure the one you have is correct, you may
8 # obtain an applicable copy of the license at:
9 #
10 #             http://www.isc.org/isc-license-1.0.html. 
11 #
12 # This file is part of the ISC DHCP distribution.   The documentation
13 # associated with this file is listed in the file DOCUMENTATION,
14 # included in the top-level directory of this release.
15 #
16 # Support and other services are available for ISC products - see
17 # http://www.isc.org for more information.
18 #
19
20 CATMANPAGES = dhcpctl.cat3
21 SEDMANPAGES = dhcpctl.man3
22 MAN    = dhcpctl.3
23 SRC    = res_mkupdate.c res_init.c res_update.c res_send.c res_comp.c \
24          res_sendsigned.c res_findzonecut.c res_query.c res_mkquery.c \
25          ns_date.c ns_parse.c ns_sign.c ns_name.c ns_samedomain.c ns_verify.c
26 OBJ    = res_mkupdate.o res_init.o res_update.o res_send.o res_comp.o \
27          res_sendsigned.o res_findzonecut.o res_query.o res_mkquery.o \
28          ns_date.o ns_parse.o ns_sign.o ns_name.o ns_samedomain.o ns_verify.o
29
30 INCLUDES = $(BINDINC) -I$(TOP)/includes
31 CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS) -DHMAC_MD5 -DMINIRES_LIB
32
33 all:    libres.a
34
35 install:
36
37 libres.a:       $(OBJ)
38         rm -f res.a
39         ar cruv libres.a $(OBJ)
40         $(RANLIB) libres.a
41
42 depend:
43         $(MKDEP) $(INCLUDES) $(PREDEFINES) $(SRC)
44
45 clean:
46         -rm -f $(OBJ) libres.a
47
48 realclean: clean
49         -rm -f *~ $(CATMANPAGES) $(SEDMANPAGES)
50
51 distclean: realclean
52         -rm -f Makefile
53
54 links:
55         @for foo in $(SRC) $(MAN) $(HDRS); do \
56           if [ ! -b $$foo ]; then \
57             rm -f $$foo; \
58           fi; \
59           ln -s $(TOP)/minires/$$foo $$foo; \
60         done
61
62 dhcpctl.cat3:   dhcpctl.man3
63         nroff -man dhcpctl.man3 >dhcpctl.cat3
64
65 dhcpctl.man3:   dhcpctl.3
66         sed -e "s#ETCDIR#$(ETC)#g" -e "s#DBDIR#$(VARDB)#g" \
67                 -e "s#RUNDIR#$(VARRUN)#g" < dhcpctl.3 >dhcpctl.man3
68
69 # Dependencies (semi-automatically-generated)