Mercurial > hg > dhcpcd
changeset 4144:5df571e59e25 draft
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.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Tue, 03 Oct 2017 15:50:27 +0100 |
| parents | bb9bb396ab37 |
| children | 7e27559d009a |
| files | tests/eloop-bench/Makefile |
| diffstat | 1 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/eloop-bench/Makefile Tue Oct 03 12:00:52 2017 +0100 +++ b/tests/eloop-bench/Makefile Tue Oct 03 15:50:27 2017 +0100 @@ -9,9 +9,9 @@ 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+= -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 @@ depend: ${PROG}: ${DEPEND} ${OBJS} - ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LDADD} + ${CC} ${LDFLAGS} -o $@ ${OBJS} test: ${PROG} ./${PROG}
