mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-30 13:57:50 +00:00
Blow away BSD-style Makefile - it's not worth it
This commit is contained in:
39
Makefile
39
Makefile
@@ -1,19 +1,36 @@
|
|||||||
SRCS = dhcpd.c options.c errwarn.c convert.c conflex.c confpars.c \
|
# Uncomment the library definitions for the platform you are using.
|
||||||
tree.c memory.c bootp.c dhcp.c alloc.c print.c socket.c \
|
# If there is no entry for your O.S., you may not need any special
|
||||||
hash.c tables.c inet.c db.c dispatch.c bpf.c packet.c raw.c \
|
# libraries.
|
||||||
nit.c
|
|
||||||
|
# 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
|
PROG = dhcpd
|
||||||
MAN=dhcpd.8 dhcpd.conf.5
|
MAN=dhcpd.8 dhcpd.conf.5
|
||||||
|
|
||||||
all: dhcpd dhclient
|
all: dhcpd
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
|
||||||
|
|
||||||
DEBUG=-g
|
DEBUG=-g
|
||||||
|
CFLAGS=$(DEBUG)
|
||||||
|
|
||||||
CFLAGS += $(DEBUG) -Wall -Wstrict-prototypes -Wno-unused \
|
dhcpd: $(OBJS) $(COBJ)
|
||||||
-Wno-implicit -Wno-comment \
|
$(CC) -o dhcpd $(OBJS) $(COBJ) $(LIBS)
|
||||||
-Wno-uninitialized -Werror
|
|
||||||
|
|
||||||
dhclient: dhclient.o $(COBJ)
|
dhclient: dhclient.o $(COBJ)
|
||||||
$(CC) -o dhclient dhclient.o $(COBJ)
|
$(CC) -o dhclient dhclient.o $(COBJ) $(LIBS)
|
||||||
|
33
Makefile.std
33
Makefile.std
@@ -1,33 +0,0 @@
|
|||||||
# 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
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
DEBUG=-g
|
|
||||||
CFLAGS=$(DEBUG)
|
|
||||||
|
|
||||||
dhcpd: $(OBJS) $(COBJ)
|
|
||||||
$(CC) -o dhcpd $(OBJS) $(COBJ) $(LIBS)
|
|
||||||
|
|
||||||
dhclient: dhclient.o $(COBJ)
|
|
||||||
$(CC) -o dhclient dhclient.o $(COBJ) $(LIBS)
|
|
Reference in New Issue
Block a user