# GNU Make does not automagically include .depend
# Luckily it does read GNUmakefile over Makefile so we can work around it
-.PHONY: .depend.depend
+# Nasty hack so that make clean works without configure being run
+CONFIG_MK?=$(shell test -e config.mk && echo config.mk || echo config-null.mk)
include Makefile
-include .depend
CSTD?= c99
MKDIRS=
-# Nasty hack so that make clean works without configure being run
-_CONFIG_MK_SH= test -e config.mk && echo config.mk || echo config-null.mk
-_CONFIG_MK!= ${_CONFIG_MK_SH}
-CONFIG_MK= ${_CONFIG_MK}$(shell ${_CONFIG_MK_SH})
-include ${CONFIG_MK}
+TOP?= .
+include ${TOP}/iconfig.mk
CFLAGS+= -std=${CSTD}
SED_SCRIPT= -e 's:@SCRIPT@:${SCRIPT}:g'
SED_SYS= -e 's:@SYSCONFDIR@:${SYSCONFDIR}:g'
-_DEPEND_SH= test -e .depend && echo ".depend" || echo ""
-_DEPEND!= ${_DEPEND_SH}
-DEPEND= ${_DEPEND}$(shell ${_DEPEND_SH})
-
-_VERSION_SH= sed -n 's/\#define VERSION[[:space:]]*"\(.*\)".*/\1/p' defs.h
-_VERSION!= ${_VERSION_SH}
-VERSION= ${_VERSION}$(shell ${_VERSION_SH})
+DEPEND!= test -e .depend && echo ".depend" || echo ""
+VERSION!= sed -n 's/\#define VERSION[[:space:]]*"\(.*\)".*/\1/p' defs.h
FOSSILID?= current
the binary has to run on older versions which lack support, such as getline.
./configure --without-getline
+Building for distribution (ie making a dhcpcd source tarball) now requires
+gmake-4 or any BSD make.
+
Hooks
-----
TOP?= ../
include ${TOP}/Makefile.inc
-include ${TOP}/config.mk
+include ${TOP}/iconfig.mk
SCRIPTSDIR= ${LIBEXECDIR}/dhcpcd-hooks
SCRIPTS= 01-test 02-dump