diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-10-21 07:00:00 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-10-21 07:00:00 -0700 |
commit | e95877ecfa1170d77b1ec1f66752725cdda01b64 (patch) | |
tree | 81940f62fdf7891f127a1d1ffa712ac1ea1c4c5c /Makefile | |
download | external_dhcpcd-e95877ecfa1170d77b1ec1f66752725cdda01b64.zip external_dhcpcd-e95877ecfa1170d77b1ec1f66752725cdda01b64.tar.gz external_dhcpcd-e95877ecfa1170d77b1ec1f66752725cdda01b64.tar.bz2 |
Initial Contribution
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f93d256 --- /dev/null +++ b/Makefile @@ -0,0 +1,51 @@ +# Makefile based on BSD make. +# Our mk stubs also work with GNU make. +# Copyright 2008 Roy Marples <roy@marples.name> + +PROG= dhcpcd +SRCS= common.c dhcp.c dhcpcd.c logger.c net.c signals.c +SRCS+= configure.c client.c +SRCS+= ${SRC_IF} ${SRC_PF} + +LIBEXECDIR?= ${PREFIX}/system/etc/dhcpcd +SCRIPT= ${LIBEXECDIR}/dhcpcd-run-hooks +HOOKDIR= ${LIBEXECDIR}/dhcpcd-hooks + +BINDIR= ${PREFIX}/sbin +DBDIR= /data/misc/dhcp +SYSCONFDIR?= ${PREFIX}/system/etc/dhcpcd + +MAN= dhcpcd.conf.5 dhcpcd.8 dhcpcd-run-hooks.8 +CLEANFILES= dhcpcd.conf.5 dhcpcd.8 dhcpcd-run-hooks.8 + +SCRIPTS= dhcpcd-run-hooks +SCRIPTSDIR= ${LIBEXECDIR} +CLEANFILES+= dhcpcd-run-hooks + +FILES= dhcpcd.conf +FILESDIR= ${SYSCONFDIR} + +CPPFLAGS+= -DDBDIR=\"${DBDIR}\" +CPPFLAGS+= -DSCRIPT=\"${SCRIPT}\" +CPPFLAGS+= -DSYSCONFDIR=\"${SYSCONFDIR}\" +LDADD+= ${LIBRT} + +SUBDIRS= dhcpcd-hooks + +.SUFFIXES: .in .sh.in + +SED_DBDIR= -e 's:@DBDIR@:${DBDIR}:g' +SED_HOOKDIR= -e 's:@HOOKDIR@:${HOOKDIR}:g' +SED_SCRIPT= -e 's:@SCRIPT@:${SCRIPT}:g' +SED_SYS= -e 's:@SYSCONFDIR@:${SYSCONFDIR}:g' + +.in: + ${SED} ${SED_DBDIR} ${SED_HOOKDIR} ${SED_SCRIPT} ${SED_SYS} $< > $@ + +.sh.in.sh: + ${SED} ${SED_HOOKDIR} ${SED_SCRIPT} ${SED_SYS} $< > $@ + +MK= mk +include ${MK}/os.mk +include ${MK}/sys.mk +include ${MK}/prog.mk |