2008-01-08 07:45:48 +08:00
|
|
|
# Makefile based on BSD's pmake.
|
|
|
|
# Our mk stubs also work with GNU make.
|
2008-01-08 17:51:23 +08:00
|
|
|
# Copyright 2008 Roy Marples <roy@marples.name>
|
2007-04-09 01:35:22 +08:00
|
|
|
|
2008-01-08 07:45:48 +08:00
|
|
|
PROG= dhcpcd
|
2008-04-12 00:14:55 +08:00
|
|
|
SRCS= common.c dhcp.c dhcpcd.c logger.c net.c signal.c
|
|
|
|
SRCS+= configure.c client.c
|
|
|
|
SRCS+= ${SRC_IF} ${SRC_SOCKET}
|
2008-04-13 07:00:23 +08:00
|
|
|
SCRIPT= dhcpcd.sh
|
2008-01-08 07:45:48 +08:00
|
|
|
MAN= dhcpcd.8
|
2007-11-20 04:23:30 +08:00
|
|
|
|
2008-04-12 00:14:55 +08:00
|
|
|
VERSION= 3.3.0-alpha1
|
|
|
|
CLEANFILES= dhcpcd.8
|
2007-09-04 20:48:40 +08:00
|
|
|
|
2008-01-08 18:51:03 +08:00
|
|
|
BINDIR= ${PREFIX}/sbin
|
2008-04-14 21:09:44 +08:00
|
|
|
SYSCONFDIR?= ${PREFIX}/etc
|
2007-09-04 20:48:40 +08:00
|
|
|
|
2008-04-12 00:14:55 +08:00
|
|
|
.SUFFIXES: .in
|
|
|
|
|
|
|
|
MK= mk
|
|
|
|
include ${MK}/prog.mk
|
|
|
|
|
|
|
|
CFLAGS+= -DVERSION=\"${VERSION}\"
|
2008-04-14 21:09:44 +08:00
|
|
|
CFLAGS+= -DSYSCONFDIR=\"${SYSCONFDIR}\"
|
|
|
|
CFLAGS+= -DDBDIR=\"${DBDIR}\"
|
2008-04-13 07:00:23 +08:00
|
|
|
LDADD+= ${LIBRT}
|
2006-11-28 04:23:22 +08:00
|
|
|
|
2008-01-18 02:49:26 +08:00
|
|
|
.in:
|
2008-04-14 21:09:44 +08:00
|
|
|
${SED} 's:@SYSCONFDIR@:${SYSCONFDIR}:g; s:@DBDIR@:${DBDIR}:g' $< > $@
|