1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/net/wide-dhcp/files/patch-ae

36 lines
986 B
Plaintext
Raw Normal View History

--- server/Makefile.FreeBSD.orig Mon Nov 6 16:18:41 1995
+++ server/Makefile.FreeBSD Fri May 30 22:47:17 1997
@@ -1,16 +1,27 @@
OBJ = dhcps.o database.o hash.o ctime.o getmac.o common_subr.o \
interface.o delarp.o
-LDFLAGS =
-CC = gcc
-CFLAGS = -g -Wall #-DCOMPAT_RFC1541 #-DNOICMPCHK
-#CC = cc
+LDFLAGS = -lkvm
+#CC = gcc
+CFLAGS += -Wall #-DCOMPAT_RFC1541 #-DNOICMPCHK
+CC = cc
#CFLAGS = -g #-DCOMPAT_RFC1541 #-DNOICMPCHK
+SBIN= ${PREFIX}/sbin
+LIBEXEC= ${PREFIX}/libexec
+MAN= ${PREFIX}/man
+CP= /bin/cp
+RM= /bin/rm
dhcps: ${OBJ}
${CC} ${CFLAGS} -o dhcps ${OBJ} ${LDFLAGS}
+install: dhcps
+ ${INSTALL} -c -m 755 -s dhcps ${SBIN}/dhcps
+ ${CP} dhcpdb.pool.5 ${MAN}/man5/dhcpdb.pool.5
+ ${CP} dhcpdb.relay.5 ${MAN}/man5/dhcpdb.relay.5
+ ${CP} dhcps.8 ${MAN}/man8/dhcps.8
+
clean:
- rm -f *~ *.o *core* dhcps
+ ${RM} -f *~ *.o *core* dhcps
dhcps.o: dhcps.c dhcp.h common.h common_subr.h hash.h dhcps.h
database.o: database.c dhcp.h common.h hash.h database.h