summaryrefslogtreecommitdiff
path: root/Makefile.dist
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>1996-08-27 19:55:27 +0000
committerTed Lemon <source@isc.org>1996-08-27 19:55:27 +0000
commite0fb50460c359f94d1de4a36597a9f16c4eebe8e (patch)
treefe6eb1236c8e613ccdd0838e58d8e5aaf68be212 /Makefile.dist
parent9bd1bbac281cf2bde96c9c23cd0795b75a45539f (diff)
downloadisc-dhcp-e0fb50460c359f94d1de4a36597a9f16c4eebe8e.tar.gz
Add clean target; build dhcpxlt
Diffstat (limited to 'Makefile.dist')
-rw-r--r--Makefile.dist28
1 files changed, 27 insertions, 1 deletions
diff --git a/Makefile.dist b/Makefile.dist
index 5586a72a..727b5307 100644
--- a/Makefile.dist
+++ b/Makefile.dist
@@ -157,6 +157,7 @@ CSRC = options.c errwarn.c convert.c \
COBJ = options.o errwarn.o convert.o \
tree.o memory.o alloc.o print.o hash.o tables.o inet.o \
dispatch.o bpf.o packet.o raw.o nit.o socket.o
+XOBJ = dhcpxlt.o xconflex.o xerrwarn.o
SRCS = dhcpd.c dhcp.c bootp.c conflex.c confpars.c db.c
OBJS = dhcpd.o dhcp.o bootp.o conflex.o confpars.o db.o
PROGS = dhcpd dhclient
@@ -165,7 +166,7 @@ MAN = dhcpd.8 dhcpd.conf.5
DEBUG = -g
CFLAGS = $(DEBUG) $(PREDEFINES) $(INCLUDES) $(COPTS)
-all: dhcpd dhclient $(CATMANPAGES)
+all: dhcpd dhclient dhcpxlt $(CATMANPAGES)
install: dhcpd $(CATMANPAGES)
$(INSTALL) dhcpd $(BINDIR); $(CHMOD) 755 $(BINDIR)/dhcpd
@@ -182,6 +183,12 @@ install: dhcpd $(CATMANPAGES)
$(MANINSTALL) $(MANFROM) dhcpd.conf.cat5 $(MANTO) \
$(FFMANDIR)/dhcpd.conf$(FFMANEXT)
+clean:
+ -rm -f $(OBJS) $(COBJ) $(XOBJ) dhclient.o
+
+realclean: clean
+ -rm -f dhcpd dhclient dhcpxlt $(CATMANPAGES)
+
# These should only be done on 4.4 BSD-based systems, since the mandoc
# macros aren't available on older unices. Catted man pages are
# provided in the distribution so that this doesn't become a problem.
@@ -200,6 +207,25 @@ dhcpd: $(OBJS) $(COBJ)
dhclient: dhclient.o $(COBJ)
$(CC) -o dhclient dhclient.o $(COBJ) $(LIBS)
+dhcpxlt: dhcpxlt.o xerrwarn.o convert.o tables.o inet.o xconflex.o \
+ hash.o alloc.o
+ $(CC) -o dhcpxlt \
+ dhcpxlt.o xerrwarn.o convert.o tables.o inet.o xconflex.o \
+ hash.o alloc.o \
+ $(LIBS)
+
+xconflex.o: dhcpd.h cdefs.h osdep.h site.h $(CF) dhcp.h tree.h \
+ hash.h inet.h dhctoken.h conflex.c
+ @cp conflex.c xconflex.c
+ $(CC) $(CFLAGS) -c xconflex.c -DSAVE_COMMENTS
+ @-rm -f xconflex.c
+
+xerrwarn.o: dhcpd.h cdefs.h osdep.h site.h $(CF) dhcp.h tree.h \
+ hash.h inet.h errwarn.c
+ @cp errwarn.c xerrwarn.c
+ $(CC) $(CFLAGS) -c xerrwarn.c -DDEBUG
+ @-rm -f xerrwarn.c
+
# Dependencies (semi-automatically-generated)
options.o: dhcpd.h cdefs.h osdep.h site.h $(CF) dhcp.h tree.h \