summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>1996-05-16 23:53:18 +0000
committerTed Lemon <source@isc.org>1996-05-16 23:53:18 +0000
commitdd4f610d15db1cc62d17d5487db70d767920da01 (patch)
treeca4afca55dafd4a8d84a9366e8541ad039324a7f /Makefile
parent58f7243dba7307dc4f91aab620bb256561254837 (diff)
downloadisc-dhcp-dd4f610d15db1cc62d17d5487db70d767920da01.tar.gz
Blow away BSD-style Makefile - it's not worth it
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile39
1 files changed, 28 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index e6946445..a9542b87 100644
--- a/Makefile
+++ b/Makefile
@@ -1,19 +1,36 @@
-SRCS = dhcpd.c options.c errwarn.c convert.c conflex.c confpars.c \
- tree.c memory.c bootp.c dhcp.c alloc.c print.c socket.c \
- hash.c tables.c inet.c db.c dispatch.c bpf.c packet.c raw.c \
- nit.c
+# Uncomment the library definitions for the platform you are using.
+# If there is no entry for your O.S., you may not need any special
+# libraries.
+
+# SunOS 4.1
+#LIBS = -lresolv
+
+# Solaris 2.5 (with gcc)
+#LIBS = -lresolv
+#CC=gcc -Wall -Wstrict-prototypes -Wno-unused -Wno-implicit -Wno-comment \
+# -Wno-uninitialized -Werror
+
+# DEC Alpha/OSF1
+LIBS=
+
+CSRC = options.c errwarn.c convert.c conflex.c confpars.c \
+ tree.c memory.c alloc.c print.c hash.c tables.c inet.c db.c \
+ dispatch.c bpf.c packet.c raw.c nit.o
+COBJ = options.o errwarn.o convert.o conflex.o confpars.o \
+ tree.o memory.o alloc.o print.o hash.o tables.o inet.o db.o \
+ dispatch.o bpf.o packet.o raw.o nit.o
+SRCS = dhcpd.c socket.c dhcp.c bootp.c
+OBJS = dhcpd.o socket.o dhcp.o bootp.o
PROG = dhcpd
MAN=dhcpd.8 dhcpd.conf.5
-all: dhcpd dhclient
-
-.include <bsd.prog.mk>
+all: dhcpd
DEBUG=-g
+CFLAGS=$(DEBUG)
-CFLAGS += $(DEBUG) -Wall -Wstrict-prototypes -Wno-unused \
- -Wno-implicit -Wno-comment \
- -Wno-uninitialized -Werror
+dhcpd: $(OBJS) $(COBJ)
+ $(CC) -o dhcpd $(OBJS) $(COBJ) $(LIBS)
dhclient: dhclient.o $(COBJ)
- $(CC) -o dhclient dhclient.o $(COBJ)
+ $(CC) -o dhclient dhclient.o $(COBJ) $(LIBS)