summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2014-01-25 01:35:53 +0000
committerRoy Marples <roy@marples.name>2014-01-25 01:35:53 +0000
commitc73ed1716038133bb4a0efc4f5f96d6c10209c3d (patch)
treebba9a15710296443d68c4ea70edfe5c9affecf8c /Makefile
parent322ebc208b013485eecb47caa7a272afe289c0ee (diff)
downloaddhcpcd-c73ed1716038133bb4a0efc4f5f96d6c10209c3d.tar.xz
Implement RFC 1321 MD5 Message-Digest if not provided in libc.
Implement RFC 2104 HMAC Keyed Hashing. Implement RFC 3118 Authentication for DHCP Messages and RFC 3315 Authentication options.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4d831ab4..b6fe6dea 100644
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,15 @@ MKDIRS=
include config.mk
CFLAGS+= -std=${CSTD}
+SRCS+= ${DHCPCD_SRCS}
+
+.PATH: ./crypt
+
+VPATH= . ./crypt
+
+CPPFLAGS+= -I./crypt
+SRCS+= auth.c hmac_md5.c ${MD5_SRC}
+
OBJS+= ${SRCS:.c=.o} ${COMPAT_SRCS:.c=.o}
SCRIPT= ${LIBEXECDIR}/dhcpcd-run-hooks
@@ -58,7 +67,7 @@ HOST_SH?= /bin/sh
CLEANFILES+= *.tar.bz2
-.PHONY: import import-bsd dev
+.PHONY: import import-bsd dev test
.SUFFIXES: .in
@@ -95,6 +104,9 @@ depend: .depend
${PROG}: ${DEPEND} ${OBJS}
${CC} ${LDFLAGS} -o $@ ${OBJS} ${LDADD}
+test:
+ cd $@; ${MAKE} $@; ./$@
+
_embeddedinstall: dhcpcd-definitions.conf
${INSTALL} -d ${DESTDIR}${SCRIPTSDIR}
${INSTALL} -m ${CONFMODE} dhcpcd-definitions.conf ${DESTDIR}${SCRIPTSDIR}
@@ -126,7 +138,7 @@ install: proginstall _maninstall _confinstall
clean:
rm -f ${OBJS} ${PROG} ${PROG}.core ${CLEANFILES}
- for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@; cd ..; done
+ for x in ${SUBDIRS} test; do cd $$x; ${MAKE} $@; cd ..; done
distclean: clean
rm -f .depend config.h config.mk