Makefile munging

Add EV_MULTIPLICITY=0 (until we add threads)
This commit is contained in:
Ryan Dahl 2011-05-12 18:35:02 -07:00
parent d2653df01b
commit d85168b299
3 changed files with 7 additions and 6 deletions

View File

@ -26,6 +26,9 @@ else
include config-unix.mk
endif
TESTS=test/echo-server.c test/test-*.c
BENCHMARKS=test/echo-server.c test/benchmark-*.c
all: uv.a test/run-tests test/run-benchmarks
test/run-tests$(E): test/*.h test/run-tests.c $(RUNNER_SRC) test/runner-unix.c $(TESTS) uv.a

View File

@ -26,8 +26,6 @@ E=.exe
CFLAGS=-g --std=gnu89
LINKFLAGS=-lm
TESTS=test/echo-server.c test/test-*.c
BENCHMARKS=test/echo-server.c test/benchmark-*.c
RUNNER_CFLAGS=$(CFLAGS) -D_GNU_SOURCE # Need _GNU_SOURCE for strdup?
RUNNER_LINKFLAGS=$(LINKFLAGS)

View File

@ -23,14 +23,14 @@ AR = $(PREFIX)ar
E=
CFLAGS=--std=gnu89 -g
LINKFLAGS=-lm
TESTS=test/echo-server.c test/test-*.c
BENCHMARKS=test/echo-server.c test/benchmark-*.c
ifeq (SunOS,$(uname_S))
LINKFLAGS+=-lsocket -lnsl
endif
RUNNER_CFLAGS=$(CFLAGS) -D_GNU_SOURCE # Need _GNU_SOURCE for strdup?
# Need _GNU_SOURCE for strdup?
RUNNER_CFLAGS=$(CFLAGS) -D_GNU_SOURCE -DEV_MULTIPLICITY=0
RUNNER_LINKFLAGS=$(LINKFLAGS) -pthread
RUNNER_LIBS=
RUNNER_SRC=test/runner-unix.c
@ -45,7 +45,7 @@ ev/ev.o: ev/config.h ev/ev.c
$(MAKE) -C ev
ev/config.h:
cd ev && ./configure
cd ev && CPPFLAGS=-DEV_MULTIPLICITY=0 ./configure
clean-platform:
$(MAKE) -C ev clean