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`
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
25 test: test_server
test.rb
31 $(MAKE
) -C .
/mongrel
clean