36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
*** client/Makefile.OpenBSD.orig Wed Apr 29 15:32:20 1998
|
|
--- client/Makefile.OpenBSD Wed Apr 29 15:32:20 1998
|
|
***************
|
|
*** 0 ****
|
|
--- 1,30 ----
|
|
+ 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
|
|
+
|
|
+ CC = gcc
|
|
+ CFLAGS = -Wall -g -I. -I../server -DRETRY_FOREVER #-DDEBUG
|
|
+ #CC = cc
|
|
+ #CFLAGS = -g -I. -I../server -DRETRY_FOREVER #-DDEBUG
|
|
+ LDFLAGS = -lkvm
|
|
+
|
|
+ SBIN = /usr/local/sbin
|
|
+ LIBEXEC = /usr/local/libexec
|
|
+ MAN = /usr/local/man
|
|
+
|
|
+ dhcpc: ${OBJ}
|
|
+ ${CC} ${CFLAGS} -o dhcpc ${OBJ} ${LDFLAGS}
|
|
+
|
|
+ install: dhcpc
|
|
+ ${INSTALL} -m 755 -s dhcpc ${SBIN}/dhcpc
|
|
+ cp dhcpc.8 ${MAN}/man8/dhcpc.8
|
|
+ gzip ${MAN}/man8/dhcpc.8
|
|
+
|
|
+ clean:
|
|
+ rm -f *~ *.o *core* dhcpc
|
|
+
|
|
+ dhcpc.o: dhcpc.c config.h ${INCLUDE}
|
|
+ dhcpc_subr.o: dhcpc_subr.c ${INCLUDE}
|
|
+ common_subr.o: ../server/common_subr.c ../server/dhcp.h dhcpc.h common.h ../server/common_subr.h
|
|
+ ${CC} ${CFLAGS} -c ../server/common_subr.c
|
|
+ getmac.o: ../server/getmac.c
|
|
+ ${CC} ${CFLAGS} -c ../server/getmac.c
|