summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-09-09 09:56:26 +0000
committerRoy Marples <roy@marples.name>2016-09-09 09:56:26 +0000
commit98cc5e0b723fa5b40711f5529d240510dfdb09bb (patch)
tree73b7856c7132f75954863d9c7421461af2eba51f /Makefile
parent4faac32f3a6b1120bed7272bdea473da886a64d0 (diff)
downloaddhcpcd-98cc5e0b723fa5b40711f5529d240510dfdb09bb.tar.xz
Add the --small configure option which currently removes non essential options
from being parsed out into dhcpcd-run-hooks and removes support for DHCPv6 Prefix Delegation. This is mainly to build a tiny dhcpcd for install media size there are more extreme space limitations.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index b960a120..a73fd34d 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,7 @@ CSTD?= c99
CFLAGS+= -std=${CSTD}
SRCS+= ${DHCPCD_SRCS}
+DHCPCD_DEFS?= dhcpcd-definitions.conf
SRCS+= auth.c
CPPFLAGS+= -I./crypt
@@ -85,10 +86,10 @@ dev:
CLEANFILES+= dhcpcd-embedded.h dhcpcd-embedded.c
-dhcpcd-embedded.h: genembedh dhcpcd-definitions.conf dhcpcd-embedded.h.in
+dhcpcd-embedded.h: genembedh ${DHCPCD_DEFS} dhcpcd-embedded.h.in
${HOST_SH} ${.ALLSRC} $^ > $@
-dhcpcd-embedded.c: genembedc dhcpcd-definitions.conf dhcpcd-embedded.h
+dhcpcd-embedded.c: genembedc ${DHCPCD_DEFS} dhcpcd-embedded.h
${HOST_SH} ${.ALLSRC} $^ > $@
if-options.c: dhcpcd-embedded.h
@@ -104,9 +105,9 @@ ${PROG}: ${DEPEND} ${OBJS}
test:
cd $@; ${MAKE} $@; ./$@
-_embeddedinstall: dhcpcd-definitions.conf
+_embeddedinstall: ${DHCPCD_DEFS}
${INSTALL} -d ${DESTDIR}${SCRIPTSDIR}
- ${INSTALL} -m ${CONFMODE} dhcpcd-definitions.conf ${DESTDIR}${SCRIPTSDIR}
+ ${INSTALL} -m ${CONFMODE} ${DHCPCD_DEFS} ${DESTDIR}${SCRIPTSDIR}
_proginstall: ${PROG}
${INSTALL} -d ${DESTDIR}${SBINDIR}