dhcpcd/test/Makefile
Roy Marples c73ed17160 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.
2014-01-25 01:35:53 +00:00

34 lines
521 B
Makefile

include ../config.mk
PROG= test
SRCS= test.c
SRCS+= test_hmac_md5.c hmac_md5.c ${MD5_SRC}
CFLAGS?= -O2
CSTD?= c99
CFLAGS+= -std=${CSTD}
CPPFLAGS+= -I../crypt
.PATH: ../crypt
VPATH= . ../crypt
OBJS+= ${SRCS:.c=.o}
.c.o:
${CC} ${CFLAGS} ${CPPFLAGS} -c $< -o $@
all: ${PROG}
clean:
rm -f ${OBJS} ${PROG} ${PROG}.core ${CLEANFILES}
.depend: ${SRCS} ${COMPAT_SRCS}
${CC} ${CPPFLAGS} -MM ${SRCS} ${COMPAT_SRCS} > .depend
depend: .depend
${PROG}: ${DEPEND} ${OBJS}
${CC} ${LDFLAGS} -o $@ ${OBJS} ${LDADD}