Skip to content

Commit

Permalink
add readme and initial code
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Feb 16, 2009
1 parent 9d7895c commit 6189072
Show file tree
Hide file tree
Showing 5 changed files with 993 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
EVDIR=$(HOME)/local/libev
V8INC = $(HOME)/src/v8/include
V8LIB = $(HOME)/src/v8/libv8.a

CFLAGS = -g -I$(V8INC) -Ideps/oi -DHAVE_GNUTLS=0 -Ideps/ebb
LDFLAGS = -lev #-lefence

ifdef EVDIR
CFLAGS += -I$(EVDIR)/include
LDFLAGS += -L$(EVDIR)/lib
endif

server: server.o deps/oi/oi_socket.o deps/ebb/ebb_request_parser.o
g++ $(CFLAGS) $(LDFLAGS) $(V8LIB) -o server $^

server.o: server.cc
g++ $(CFLAGS) -c $@ $<

ebb_request_parser.o: ebb_request_parser.c deps/ebb/ebb_request_parser.h
gcc $(CFLAGS) -c $@ $<

ebb_request_parser.c: deps/ebb/ebb_request_parser.rl
ragel -s -G2 $< -o $@

oi_socket.o: deps/oi/oi_socket.c deps/oi/oi_socket.h
gcc $(CFLAGS) -c $@ $<

clean:
rm -f *.o
rm -f server

.PHONY: clean test
4 changes: 4 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

git submodule init
git submodule update
make
Loading

0 comments on commit 6189072

Please sign in to comment.