I'm happy with the status now. Here are the stats:
[ebb.git] / Makefile
blob702f2a2d39fe9d8e420a399c803329e7135c4c9a
1 SHELL = /bin/sh
3 CC = gcc
4 CFLAGS = `pkg-config --cflags glib-2.0` -I/opt/libev-2.01/include -L/opt/libev-2.01/lib
6 ALL_CFLAGS = -g -Wall -O6 $(CFLAGS)
8 OBJS = tcp_server.o drum.o
9 LIBS = -lev `pkg-config --libs glib-2.0` -lpthread
10 #EXE = test_server drum_test
11 TESTS = tcp_server_test drum_test
13 %.o : %.c Makefile
14 $(CC) $(ALL_CFLAGS) -c $< -o $@
16 all: $(TESTS) $(OBJS) mongrel_parser
18 %_test : $(OBJS) Makefile parser.o
19 $(CC) $(ALL_CFLAGS) $(OBJS) mongrel/parser.o $@.c -o $@ $(LIBS)
21 parser.o: mongrel_parser
23 mongrel_parser:
24 $(MAKE) -C ./mongrel
26 test: test_server test.rb
27 ruby test.rb
29 .PHONY : clean
30 clean:
31 rm -f $(OBJS) $(TESTS)
32 $(MAKE) -C ./mongrel clean