libuv/Makefile

34 lines
718 B
Makefile
Raw Normal View History

2011-04-10 21:59:41 +00:00
all: 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
.PHONY: clean distclean
clean:
2011-03-28 10:54:18 +00:00
$(RM) -f *.o *.a
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