dhcpcd/test/Makefile
Roy Marples c9beb7cc29 gmake-4 supports != shell assignment operator, like BSD make.
This breaks our hack to support both, so workaround by using GNUmakefile at
the toplevel.
Note that building a source release now requires BSD make or gmake-4
2014-04-23 16:00:50 +00:00

35 lines
535 B
Makefile

TOP?= ..
include ${TOP}/iconfig.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}