diff options
| author | Roy Marples <roy@marples.name> | 2014-01-25 01:35:53 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2014-01-25 01:35:53 +0000 |
| commit | c73ed1716038133bb4a0efc4f5f96d6c10209c3d (patch) | |
| tree | bba9a15710296443d68c4ea70edfe5c9affecf8c /Makefile | |
| parent | 322ebc208b013485eecb47caa7a272afe289c0ee (diff) | |
| download | dhcpcd-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-- | Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -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 |
