Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / distrib / utils / x_dhclient / Makefile
bloba73774e15a48397515115b499fe9549666e4a408
1 # $NetBSD: Makefile,v 1.15 2006/11/23 13:22:18 martin Exp $
3 NOMAN=
4 .include <bsd.own.mk>
6 RSRCDIR= ${NETBSDSRCDIR}/dist/dhcp
8 .PATH: ${RSRCDIR}/client
10 PROG= dhclient
11 SRCS= dhclient.c clparse.c
12 CPPFLAGS+= -DCLIENT_PATH='"PATH=/usr/bin:/usr/sbin:/bin:/sbin"' \
13 -DSMALL -I${RSRCDIR} -I${RSRCDIR}/includes
15 .if defined(HAVE_GCC) && ${HAVE_GCC} == 4
16 CPPFLAGS+= -fno-strict-aliasing
17 .endif
19 # common source
21 .PATH: ${RSRCDIR}/common
22 SRCS+= alloc.c bpf.c comapi.c conflex.c discover.c dispatch.c dns.c \
23 ethernet.c execute.c fddi.c inet.c memory.c options.c packet.c \
24 parse.c print.c socket.c tables.c tree.c
26 # omapip source
28 .PATH: ${RSRCDIR}/omapip
29 SRCS+= alloc.OM.c convert.c dispatch.OM.c errwarn.c handle.c hash.c \
30 result.c support.c
33 .SUFFIXES: .OM.c
35 .c.OM.c:
36 rm -f ${.TARGET}
37 cp ${RSRCDIR}/omapip/${.IMPSRC:T} ${.TARGET}
39 DPSRCS+= ${SRCS:M*.OM.c}
40 CLEANFILES+= ${SRCS:M*.OM.c}
42 .include <bsd.prog.mk>