2000-06-26 08:06:22 +00:00
|
|
|
# Makefile.dist
|
|
|
|
|
2002-02-19 11:04:34 +00:00
|
|
|
CATMANPAGES = dhcp-options.cat5 dhcp-eval.cat5
|
|
|
|
SEDMANPAGES = dhcp-options.man5 dhcp-eval.man5
|
2000-06-26 08:06:22 +00:00
|
|
|
SRC = raw.c parse.c nit.c icmp.c dispatch.c conflex.c upf.c bpf.c socket.c \
|
2002-02-19 11:04:34 +00:00
|
|
|
lpf.c dlpi.c packet.c tr.c ethernet.c memory.c print.c options.c \
|
|
|
|
inet.c tree.c tables.c alloc.c fddi.c ctrace.c \
|
|
|
|
dns.c resolv.c execute.c discover.c comapi.c
|
2000-06-26 08:06:22 +00:00
|
|
|
OBJ = raw.o parse.o nit.o icmp.o dispatch.o conflex.o upf.o bpf.o socket.o \
|
2002-02-19 11:04:34 +00:00
|
|
|
lpf.o dlpi.o packet.o tr.o ethernet.o memory.o print.o options.o \
|
|
|
|
inet.o tree.o tables.o alloc.o fddi.o ctrace.o \
|
|
|
|
dns.o resolv.o execute.o discover.o comapi.o
|
|
|
|
MAN = dhcp-options.5 dhcp-eval.5
|
2000-06-26 08:06:22 +00:00
|
|
|
|
2002-02-19 11:04:34 +00:00
|
|
|
INCLUDES = -I$(TOP) $(BINDINC) -I$(TOP)/includes
|
2000-06-26 08:06:22 +00:00
|
|
|
CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS)
|
|
|
|
|
|
|
|
all: libdhcp.a $(CATMANPAGES)
|
|
|
|
|
|
|
|
libdhcp.a: $(OBJ)
|
|
|
|
rm -f libdhcp.a
|
|
|
|
ar cruv libdhcp.a $(OBJ)
|
2002-02-19 11:04:34 +00:00
|
|
|
$(RANLIB) libdhcp.a
|
2000-06-26 08:06:22 +00:00
|
|
|
|
|
|
|
install: all
|
|
|
|
for dir in $(FFMANDIR); do \
|
|
|
|
foo=""; \
|
|
|
|
for bar in `echo $(DESTDIR)$${dir} |tr / ' '`; do \
|
|
|
|
foo=$${foo}/$$bar; \
|
|
|
|
if [ ! -d $$foo ]; then \
|
|
|
|
mkdir $$foo; \
|
|
|
|
chmod 755 $$foo; \
|
|
|
|
fi; \
|
|
|
|
done; \
|
|
|
|
done
|
|
|
|
$(MANINSTALL) $(MANFROM) dhcp-options.$(MANCAT)5 $(MANTO) \
|
|
|
|
$(DESTDIR)$(FFMANDIR)/dhcp-options$(FFMANEXT)
|
2002-02-19 11:04:34 +00:00
|
|
|
$(MANINSTALL) $(MANFROM) dhcp-eval.$(MANCAT)5 $(MANTO) \
|
|
|
|
$(DESTDIR)$(FFMANDIR)/dhcp-eval$(FFMANEXT)
|
2000-06-26 08:06:22 +00:00
|
|
|
|
2002-02-19 11:04:34 +00:00
|
|
|
depend:
|
|
|
|
$(MKDEP) $(INCLUDES) $(PREDEFINES) $(SRC)
|
2000-06-26 08:06:22 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f $(OBJ)
|
2002-02-19 11:04:34 +00:00
|
|
|
|
2000-06-26 08:06:22 +00:00
|
|
|
realclean: clean
|
2002-02-19 11:04:34 +00:00
|
|
|
-rm -f libdhcp.a $(CATMANPAGES) $(SEDMANPAGES) *~ #*
|
2000-06-26 08:06:22 +00:00
|
|
|
|
|
|
|
distclean: realclean
|
|
|
|
-rm -f Makefile
|
|
|
|
|
2002-02-19 11:04:34 +00:00
|
|
|
links:
|
|
|
|
@for foo in $(SRC) $(MAN); do \
|
|
|
|
if [ ! -b $$foo ]; then \
|
|
|
|
rm -f $$foo; \
|
|
|
|
fi; \
|
|
|
|
ln -s $(TOP)/common/$$foo $$foo; \
|
|
|
|
done
|
|
|
|
|
2000-06-26 08:06:22 +00:00
|
|
|
dhcp-options.cat5: dhcp-options.man5
|
|
|
|
nroff -man dhcp-options.man5 >dhcp-options.cat5
|
|
|
|
|
|
|
|
dhcp-options.man5: dhcp-options.5
|
|
|
|
sed -e "s#ETCDIR#$(ETC)#g" -e "s#DBDIR#$(VARDB)#g" \
|
|
|
|
-e "s#RUNDIR#$(VARRUN)#g" < dhcp-options.5 >dhcp-options.man5
|
|
|
|
|
2002-02-19 11:04:34 +00:00
|
|
|
dhcp-eval.cat5: dhcp-eval.man5
|
|
|
|
nroff -man dhcp-eval.man5 >dhcp-eval.cat5
|
2000-06-26 08:06:22 +00:00
|
|
|
|
2002-02-19 11:04:34 +00:00
|
|
|
dhcp-eval.man5: dhcp-eval.5
|
|
|
|
sed -e "s#ETCDIR#$(ETC)#g" -e "s#DBDIR#$(VARDB)#g" \
|
|
|
|
-e "s#RUNDIR#$(VARRUN)#g" < dhcp-eval.5 >dhcp-eval.man5
|
|
|
|
|
|
|
|
# Dependencies (semi-automatically-generated)
|