|
@ -10,22 +10,23 @@ ifdef EVDIR |
|
|
LDFLAGS += -L$(EVDIR)/lib |
|
|
LDFLAGS += -L$(EVDIR)/lib |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
server: server.o deps/oi/oi_socket.o deps/ebb/ebb_request_parser.o |
|
|
server: server.o oi_socket.o ebb_request_parser.o |
|
|
g++ $(CFLAGS) $(LDFLAGS) $(V8LIB) -o server $^ |
|
|
g++ $(LDFLAGS) $(V8LIB) $^ -o server |
|
|
|
|
|
|
|
|
server.o: server.cc |
|
|
server.o: server.cc |
|
|
g++ $(CFLAGS) -c $@ $< |
|
|
g++ $(CFLAGS) -c $< |
|
|
|
|
|
|
|
|
ebb_request_parser.o: ebb_request_parser.c deps/ebb/ebb_request_parser.h |
|
|
ebb_request_parser.o: ebb_request_parser.c deps/ebb/ebb_request_parser.h |
|
|
gcc $(CFLAGS) -c $@ $< |
|
|
gcc $(CFLAGS) -c $< |
|
|
|
|
|
|
|
|
ebb_request_parser.c: deps/ebb/ebb_request_parser.rl |
|
|
ebb_request_parser.c: deps/ebb/ebb_request_parser.rl |
|
|
ragel -s -G2 $< -o $@ |
|
|
ragel -s -G2 $< -o $@ |
|
|
|
|
|
|
|
|
oi_socket.o: deps/oi/oi_socket.c deps/oi/oi_socket.h |
|
|
oi_socket.o: deps/oi/oi_socket.c deps/oi/oi_socket.h |
|
|
gcc $(CFLAGS) -c $@ $< |
|
|
gcc $(CFLAGS) -c $< |
|
|
|
|
|
|
|
|
clean: |
|
|
clean: |
|
|
|
|
|
rm -f ebb_request_parser.c |
|
|
rm -f *.o |
|
|
rm -f *.o |
|
|
rm -f server |
|
|
rm -f server |
|
|
|
|
|
|
|
|