2001-10-05 05:17:27 +04:00
|
|
|
# $NetBSD: Makefile,v 1.10 2001/10/05 01:17:30 jmc Exp $
|
2000-05-13 00:53:21 +04:00
|
|
|
|
|
|
|
PROG= dhclient
|
|
|
|
MKMAN= no
|
2000-07-24 11:59:28 +04:00
|
|
|
CPPFLAGS+= -DCLIENT_PATH='"PATH=/usr/bin:/usr/sbin:/bin:/sbin"'
|
2000-05-13 00:53:21 +04:00
|
|
|
|
|
|
|
LDSTATIC?= -static
|
|
|
|
|
2001-08-03 18:15:48 +04:00
|
|
|
RSRCDIR= ${.CURDIR}/../../../dist/dhcp
|
2001-04-06 08:09:55 +04:00
|
|
|
.PATH: ${RSRCDIR}/client ${RSRCDIR}/common ${RSRCDIR}/dst ${RSRCDIR}/omapip
|
2000-05-13 00:53:21 +04:00
|
|
|
.NOPATH: ${PROG}
|
|
|
|
|
2000-06-12 06:36:18 +04:00
|
|
|
SRCS= dhclient.c clparse.c
|
2000-05-13 00:53:21 +04:00
|
|
|
|
2001-04-06 22:53:33 +04:00
|
|
|
#.include "Src-dst"
|
|
|
|
#DSTOBJS+= ${DSTSRCS:N*.h:N*.sh:N*.fth:R:S/$/.o/g}
|
|
|
|
#SRCS+= ${DSTSRCS}
|
2000-05-13 00:53:21 +04:00
|
|
|
|
|
|
|
.include "Src-omapip"
|
|
|
|
OMOBJS+= ${OMSRCS:N*.h:N*.sh:N*.fth:R:S/$/.o/g}
|
|
|
|
SRCS+= ${OMSRCS}
|
|
|
|
|
|
|
|
.include "Src-common"
|
|
|
|
COMOBJS+= ${COMSRCS:N*.h:N*.sh:N*.fth:R:S/$/.o/g}
|
|
|
|
SRCS+= ${COMSRCS}
|
|
|
|
|
2000-06-26 16:34:05 +04:00
|
|
|
CPPFLAGS+=-DSMALL -I${RSRCDIR} -I${RSRCDIR}/includes
|
2000-12-27 11:12:01 +03:00
|
|
|
.if ${MACHINE} != "sparc64"
|
2001-10-05 05:17:27 +04:00
|
|
|
DBG= -Os
|
2000-12-27 11:12:01 +03:00
|
|
|
.endif
|
2000-05-13 00:53:21 +04:00
|
|
|
|
|
|
|
all: ${PROG}
|
|
|
|
|
2001-04-06 08:09:55 +04:00
|
|
|
${DSTOBJS}:
|
2000-05-13 00:53:21 +04:00
|
|
|
${CC} ${CFLAGS} ${CPPFLAGS} -DMINIRES_LIB -c ${.IMPSRC}
|
|
|
|
|
2000-10-18 22:26:00 +04:00
|
|
|
.SUFFIXES: .OM.c
|
2000-05-13 00:53:21 +04:00
|
|
|
|
2000-10-18 22:26:00 +04:00
|
|
|
.c.OM.c:
|
|
|
|
cp ${RSRCDIR}/omapip/$*.c $@
|
2000-05-13 00:53:21 +04:00
|
|
|
|
2000-10-18 22:26:00 +04:00
|
|
|
CLEANFILES+= ${SRCS:M*.OM.c}
|
2000-05-13 00:53:21 +04:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|