diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 19:29:22 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 19:29:22 -0800 |
commit | f7c5421560640d23fc10803b9d59a9ff1d83e467 (patch) | |
tree | d6ae69d0d3f4a4d760a3254ec326bca4a8afacfe /Makefile | |
parent | d97c47cad830d00c9da685cc4ea157d6185f6c97 (diff) | |
download | external_dhcpcd-f7c5421560640d23fc10803b9d59a9ff1d83e467.zip external_dhcpcd-f7c5421560640d23fc10803b9d59a9ff1d83e467.tar.gz external_dhcpcd-f7c5421560640d23fc10803b9d59a9ff1d83e467.tar.bz2 |
auto import from //depot/cupcake/@135843
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..a6b066b --- /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}/sys.mk +include ${MK}/os.mk +include ${MK}/prog.mk |