dhcpcd/Makefile

30 lines
630 B
Makefile
Raw Normal View History

# 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>
PROG= dhcpcd
SRCS= common.c dhcp.c dhcpcd.c logger.c net.c signal.c
SRCS+= configure.c client.c
SRCS+= ${SRC_IF} ${SRC_SOCKET}
SCRIPT= dhcpcd.sh
MAN= dhcpcd.8
2007-11-20 04:23:30 +08:00
VERSION= 3.3.0-alpha1
CLEANFILES= dhcpcd.8
2008-01-08 18:51:03 +08:00
BINDIR= ${PREFIX}/sbin
2008-04-14 21:09:44 +08:00
SYSCONFDIR?= ${PREFIX}/etc
.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}\"
LDADD+= ${LIBRT}
2006-11-28 04:23:22 +08:00
.in:
2008-04-14 21:09:44 +08:00
${SED} 's:@SYSCONFDIR@:${SYSCONFDIR}:g; s:@DBDIR@:${DBDIR}:g' $< > $@