compiles, but doesn't do anything. working on adding void* pointers to the two callba...
[ebb.git] / Makefile
blob8ba2fe76211c1bebd0cb48cae339809132240f70
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 tcp_server_test.o drum.o
9 LIBS = -lev `pkg-config --libs glib-2.0`
10 EXE = test_server
12 %.o : %.c Makefile
13 $(CC) $(ALL_CFLAGS) -c $< -o $@
15 all: $(EXE) mongrel_parser
17 $(EXE): $(OBJS) Makefile parser.o
18 $(CC) $(ALL_CFLAGS) $(OBJS) mongrel/parser.o -o $(EXE) $(LIBS)
20 parser.o: mongrel_parser
22 mongrel_parser:
23 $(MAKE) -C ./mongrel
25 test: test_server test.rb
26 ruby test.rb
28 .PHONY : clean
29 clean:
30 rm -f $(OBJS) $(EXE)
31 $(MAKE) -C ./mongrel clean