libuv/Makefile

47 lines
1.1 KiB
Makefile
Raw Normal View History

2011-04-15 08:11:13 +00:00
all: oio.a
2011-04-14 18:19:36 +00:00
TESTS=test/echo-server.c \
test/test-pass-always.c \
test/test-fail-always.c \
test/test-ping-pong.c \
2011-04-15 17:32:28 +00:00
test/test-callback-stack.c \
test/test-timeout.c
2011-04-14 18:19:36 +00:00
test/test-runner: test/*.h test/test-runner.c test/test-runner-unix.c $(TESTS) oio.a
$(CC) -ansi -g -lm -o test/test-runner test/test-runner.c test/test-runner-unix.c $(TESTS) oio.a
2011-04-07 09:02:54 +00:00
test/echo-demo: test/echo-demo.c test/echo.o oio.a
$(CC) -ansi -g -o test/echo-demo test/echo-demo.c test/echo.o oio.a -lm
2011-03-28 10:17:52 +00:00
2011-04-07 09:02:54 +00:00
test/test-ping-pong: test/test-ping-pong.c test/echo.o oio.a
$(CC) -ansi -g -o test/test-ping-pong test/test-ping-pong.c test/echo.o oio.a -lm
2011-04-07 09:02:54 +00:00
oio.a: oio-unix.o ev/ev.o
$(AR) rcs oio.a oio-unix.o ev/ev.o
2011-03-28 10:17:52 +00:00
2011-04-07 09:02:54 +00:00
oio-unix.o: oio-unix.c oio.h oio-unix.h
$(CC) -ansi -g -c oio-unix.c -o oio-unix.o
test/echo.o: test/echo.c test/echo.h
$(CC) -ansi -g -c test/echo.c -o test/echo.o
2011-03-28 10:17:52 +00:00
2011-03-28 10:26:00 +00:00
ev/ev.o: ev/config.h ev/ev.c
$(MAKE) -C ev
ev/config.h:
cd ev && ./configure
2011-03-28 10:17:52 +00:00
2011-03-28 10:32:02 +00:00
2011-04-15 08:11:13 +00:00
.PHONY: clean distclean test
test: test/test-runner
test/test-runner
2011-03-28 10:32:02 +00:00
clean:
2011-04-14 18:19:36 +00:00
$(RM) -f *.o *.a test/test-runner
2011-03-28 10:32:02 +00:00
$(MAKE) -C ev clean
distclean:
2011-03-28 10:54:18 +00:00
$(RM) -f *.o *.a
2011-03-28 10:32:02 +00:00
$(MAKE) -C ev clean