2000-06-12 06:36:18 +04:00
|
|
|
# $NetBSD: Makefile,v 1.2 2000/06/12 02:36:18 jtk Exp $
|
2000-05-13 00:53:21 +04:00
|
|
|
|
|
|
|
PROG= dhclient
|
|
|
|
MKMAN= no
|
|
|
|
|
|
|
|
LDSTATIC?= -static
|
|
|
|
|
|
|
|
RSRCDIR= ${.CURDIR}/../../../usr.sbin/dhcp
|
|
|
|
.PATH: ${RSRCDIR}/client ${RSRCDIR}/common ${RSRCDIR}/minires ${RSRCDIR}/omapip
|
|
|
|
.NOPATH: ${PROG}
|
|
|
|
|
2000-06-12 06:36:18 +04:00
|
|
|
SRCS= dhclient.c clparse.c
|
2000-05-13 00:53:21 +04:00
|
|
|
|
|
|
|
.include "Src-minires"
|
|
|
|
MINIOBJS+= ${MINISRCS:N*.h:N*.sh:N*.fth:R:S/$/.o/g}
|
|
|
|
SRCS+= ${MINISRCS}
|
|
|
|
|
|
|
|
.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}
|
|
|
|
|
|
|
|
CPPFLAGS+=-I${RSRCDIR} -I${RSRCDIR}/includes
|
|
|
|
COPTS+= -Os
|
|
|
|
|
|
|
|
all: ${PROG}
|
|
|
|
|
|
|
|
${MINIOBJS}:
|
|
|
|
${CC} ${CFLAGS} ${CPPFLAGS} -DMINIRES_LIB -c ${.IMPSRC}
|
|
|
|
|
|
|
|
OMalloc.c: ${RSRCDIR}/omapip/alloc.c
|
|
|
|
cp ${RSRCDIR}/omapip/alloc.c OMalloc.c
|
|
|
|
|
|
|
|
OMdispatch.c: ${RSRCDIR}/omapip/dispatch.c
|
|
|
|
cp ${RSRCDIR}/omapip/dispatch.c OMdispatch.c
|
|
|
|
|
|
|
|
OMsupport.c: ${RSRCDIR}/omapip/support.c
|
|
|
|
cp ${RSRCDIR}/omapip/support.c OMsupport.c
|
|
|
|
|
|
|
|
CLEANFILES+= OMalloc.c OMdispatch.c OMsupport.c
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|