Permalink
Browse files

add readme and initial code

  • Loading branch information...
ry committed Feb 16, 2009
1 parent 9d7895c commit 61890720c8a22a7f1577327b32a180a2d267d765
Showing with 993 additions and 0 deletions.
  1. +32 −0 Makefile
  2. +4 −0 README
  3. +606 −0 js_http_request_processor.cc
  4. +104 −0 js_http_request_processor.h
  5. +247 −0 server.cc
View
@@ -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
View
4 README
@@ -0,0 +1,4 @@
+
+git submodule init
+git submodule update
+make
Oops, something went wrong.

0 comments on commit 6189072

Please sign in to comment.