NetBSD/distrib/utils/x_dhclient/Makefile

46 lines
1015 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.2 2000/06/12 02:36:18 jtk Exp $
PROG= dhclient
MKMAN= no
LDSTATIC?= -static
RSRCDIR= ${.CURDIR}/../../../usr.sbin/dhcp
.PATH: ${RSRCDIR}/client ${RSRCDIR}/common ${RSRCDIR}/minires ${RSRCDIR}/omapip
.NOPATH: ${PROG}
SRCS= dhclient.c clparse.c
.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>