fdf92566aa
Install docs and sample files into ${PREFIX}/share/{doc,examples}/dhcp respectively. Submitted-by: sanpei@yy.cs.keio.ac.jp
35 lines
881 B
Plaintext
35 lines
881 B
Plaintext
--- client/Makefile.FreeBSD.orig Mon Oct 9 14:34:12 1995
|
|
+++ client/Makefile.FreeBSD Fri May 30 22:46:17 1997
|
|
@@ -1,17 +1,26 @@
|
|
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
|
|
+CP= /bin/cp
|
|
+RM= /bin/rm
|
|
|
|
-CC = gcc
|
|
-CFLAGS = -Wall -g -I. -I../server #-DDEBUG
|
|
-#CC = cc
|
|
+#CC = gcc
|
|
+CFLAGS += -Wall -I. -I../server #-DDEBUG
|
|
+CC = cc
|
|
#CFLAGS = -g -I. -I../server #-DDEBUG
|
|
|
|
dhcpc: ${OBJ}
|
|
${CC} ${CFLAGS} -o dhcpc ${OBJ} ${LDFLAGS}
|
|
|
|
+install: dhcpc
|
|
+ ${INSTALL} -c -m 755 -s dhcpc ${SBIN}/dhcpc
|
|
+ ${CP} dhcpc.8 ${MAN}/man8/dhcpc.8
|
|
+
|
|
clean:
|
|
- rm -f *~ *.o *core* dhcpc
|
|
+ ${RM} -f *~ *.o *core* dhcpc
|
|
|
|
dhcpc.o: dhcpc.c config.h ${INCLUDE}
|
|
dhcpc_subr.o: dhcpc_subr.c ${INCLUDE}
|