1996-05-04 02:43:35 +00:00
|
|
|
--- client/Makefile.FreeBSD.orig Mon Oct 9 14:34:12 1995
|
1997-05-30 18:52:45 +00:00
|
|
|
+++ client/Makefile.FreeBSD Fri May 30 22:46:17 1997
|
|
|
|
@@ -1,17 +1,26 @@
|
1996-05-04 02:43:35 +00:00
|
|
|
INCLUDE = ../server/dhcp.h dhcpc.h common.h ../server/common_subr.h dhcpc_subr.h
|
|
|
|
OBJ = dhcpc_subr.o flushroute.o getmac.o common_subr.o dhcpc.o
|
|
|
|
-LDFLAGS =
|
|
|
|
+LDFLAGS = -lkvm
|
|
|
|
+SBIN= ${PREFIX}/sbin
|
|
|
|
+LIBEXEC= ${PREFIX}/libexec
|
|
|
|
+MAN= ${PREFIX}/man
|
1997-05-30 18:52:45 +00:00
|
|
|
+CP= /bin/cp
|
|
|
|
+RM= /bin/rm
|
1996-05-04 02:43:35 +00:00
|
|
|
|
1997-04-04 02:20:28 +00:00
|
|
|
-CC = gcc
|
1996-05-04 02:43:35 +00:00
|
|
|
-CFLAGS = -Wall -g -I. -I../server #-DDEBUG
|
1997-04-04 02:20:28 +00:00
|
|
|
-#CC = cc
|
|
|
|
+#CC = gcc
|
1996-05-04 02:43:35 +00:00
|
|
|
+CFLAGS += -Wall -I. -I../server #-DDEBUG
|
1997-04-04 02:20:28 +00:00
|
|
|
+CC = cc
|
|
|
|
#CFLAGS = -g -I. -I../server #-DDEBUG
|
1996-05-04 02:43:35 +00:00
|
|
|
|
|
|
|
dhcpc: ${OBJ}
|
|
|
|
${CC} ${CFLAGS} -o dhcpc ${OBJ} ${LDFLAGS}
|
1997-05-30 18:52:45 +00:00
|
|
|
|
1996-05-04 02:43:35 +00:00
|
|
|
+install: dhcpc
|
1996-05-20 08:08:00 +00:00
|
|
|
+ ${INSTALL} -c -m 755 -s dhcpc ${SBIN}/dhcpc
|
1997-05-30 18:52:45 +00:00
|
|
|
+ ${CP} dhcpc.8 ${MAN}/man8/dhcpc.8
|
|
|
|
+
|
1996-05-04 02:43:35 +00:00
|
|
|
clean:
|
1997-05-30 18:52:45 +00:00
|
|
|
- rm -f *~ *.o *core* dhcpc
|
|
|
|
+ ${RM} -f *~ *.o *core* dhcpc
|
|
|
|
|
|
|
|
dhcpc.o: dhcpc.c config.h ${INCLUDE}
|
|
|
|
dhcpc_subr.o: dhcpc_subr.c ${INCLUDE}
|