3 # Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
5 # Permission to use, copy, modify, and distribute this software for any
6 # purpose with or without fee is hereby granted, provided that the above
7 # copyright notice and this permission notice appear in all copies.
9 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
15 # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 # Internet Systems Consortium, Inc.
19 # Redwood City, CA 94063
23 CATMANPAGES = dhcp-options.cat5 dhcp-eval.cat5
24 SEDMANPAGES = dhcp-options.man5 dhcp-eval.man5
25 SRC = raw.c parse.c nit.c icmp.c dispatch.c conflex.c upf.c bpf.c socket.c \
26 lpf.c dlpi.c packet.c tr.c ethernet.c memory.c print.c options.c \
27 inet.c tree.c tables.c alloc.c fddi.c ctrace.c dns.c resolv.c \
28 execute.c discover.c comapi.c
29 OBJ = raw.o parse.o nit.o icmp.o dispatch.o conflex.o upf.o bpf.o socket.o \
30 lpf.o dlpi.o packet.o tr.o ethernet.o memory.o print.o options.o \
31 inet.o tree.o tables.o alloc.o fddi.o ctrace.o dns.o resolv.o \
32 execute.o discover.o comapi.o
33 MAN = dhcp-options.5 dhcp-eval.5
35 INCLUDES = -I$(TOP) $(BINDINC) -I$(TOP)/includes
36 CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS)
38 all: libdhcp.a $(CATMANPAGES)
42 ar cruv libdhcp.a $(OBJ)
46 for dir in $(FFMANDIR); do \
48 for bar in `echo $(DESTDIR)$${dir} |tr / ' '`; do \
50 if [ ! -d $$foo ]; then \
56 $(MANINSTALL) $(MANFROM) dhcp-options.$(MANCAT)5 $(MANTO) \
57 $(DESTDIR)$(FFMANDIR)/dhcp-options$(FFMANEXT)
58 $(MANINSTALL) $(MANFROM) dhcp-eval.$(MANCAT)5 $(MANTO) \
59 $(DESTDIR)$(FFMANDIR)/dhcp-eval$(FFMANEXT)
62 $(MKDEP) $(INCLUDES) $(PREDEFINES) $(SRC)
68 -rm -f libdhcp.a $(CATMANPAGES) $(SEDMANPAGES) *~ #*
74 @for foo in $(SRC) $(MAN); do \
75 if [ ! -b $$foo ]; then \
78 ln -s $(TOP)/common/$$foo $$foo; \
81 dhcp-options.cat5: dhcp-options.man5
82 nroff -man dhcp-options.man5 >dhcp-options.cat5
84 dhcp-options.man5: dhcp-options.5
85 sed -e "s#ETCDIR#$(ETC)#g" -e "s#DBDIR#$(VARDB)#g" \
86 -e "s#RUNDIR#$(VARRUN)#g" < dhcp-options.5 >dhcp-options.man5
88 dhcp-eval.cat5: dhcp-eval.man5
89 nroff -man dhcp-eval.man5 >dhcp-eval.cat5
91 dhcp-eval.man5: dhcp-eval.5
92 sed -e "s#ETCDIR#$(ETC)#g" -e "s#DBDIR#$(VARDB)#g" \
93 -e "s#RUNDIR#$(VARRUN)#g" < dhcp-eval.5 >dhcp-eval.man5
95 # Dependencies (semi-automatically-generated)