diff options
| author | Roy Marples <roy@marples.name> | 2017-10-03 15:50:27 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2017-10-03 15:50:27 +0100 |
| commit | 9f23d8c75a9cf46e0c5ce46f0c4a5828e5312404 (patch) | |
| tree | 1876d62f151935787a66b0a363d676b3f3c65eb5 /tests | |
| parent | a4ba00e9b0d83f4df2786feba2e9e159a421866e (diff) | |
| download | dhcpcd-9f23d8c75a9cf46e0c5ce46f0c4a5828e5312404.tar.xz | |
Compile eloop with config.h by default and bring in compat modules.
This allows us to build this test AND dhcpcd exactly the same,
which is important as they build eloop.o in the same place.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/eloop-bench/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/eloop-bench/Makefile b/tests/eloop-bench/Makefile index 90d25878..a0d30983 100644 --- a/tests/eloop-bench/Makefile +++ b/tests/eloop-bench/Makefile @@ -9,9 +9,9 @@ CFLAGS?= -O2 CSTD?= c99 CFLAGS+= -std=${CSTD} -CPPFLAGS+= -DNO_CONFIG_H -CPPFLAGS+= -DQUEUE_H=../compat/queue.h -CPPFLAGS+= -I${TOP}/src +#CPPFLAGS+= -DNO_CONFIG_H +#CPPFLAGS+= -DQUEUE_H=../compat/queue.h +CPPFLAGS+= -I${TOP} -I${TOP}/src # Default is to let eloop decide #CPPFLAGS+= -DHAVE_KQUEUE @@ -19,8 +19,10 @@ CPPFLAGS+= -I${TOP}/src #CPPFLAGS+= -DHAVE_PSELECT #CPPFLAGS+= -DHAVE_EPOLL #CPPFLAGS+= -DHAVE_PPOLL +CPPFLAGS+= -DWARN_SELECT -OBJS+= ${SRCS:.c=.o} +PCOMPAT_SRCS= ${COMPAT_SRCS:compat/%=${TOP}/compat/%} +OBJS+= ${SRCS:.c=.o} ${PCOMPAT_SRCS:.c=.o} .c.o: Makefile ${CC} ${CFLAGS} ${CPPFLAGS} -c $< -o $@ @@ -36,7 +38,7 @@ distclean: clean depend: ${PROG}: ${DEPEND} ${OBJS} - ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LDADD} + ${CC} ${LDFLAGS} -o $@ ${OBJS} test: ${PROG} ./${PROG} |
