summaryrefslogtreecommitdiff
path: root/deps/http_parser
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2009-10-03 22:43:54 +0200
committerRyan Dahl <ry@tinyclouds.org>2009-10-03 22:48:44 +0200
commit13793aed2022c6884b7b8b4dac6c649c28f2c070 (patch)
tree4fe9b55b8902098e35eb6fee9ee448fa99706663 /deps/http_parser
parentbf0d278a4501b03e74d9e02309d667af2182c2a3 (diff)
downloadnode-13793aed2022c6884b7b8b4dac6c649c28f2c070.tar.gz
Add Makefiles which were forgotten.
Diffstat (limited to 'deps/http_parser')
-rw-r--r--deps/http_parser/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/deps/http_parser/Makefile b/deps/http_parser/Makefile
new file mode 100644
index 000000000..afe722922
--- /dev/null
+++ b/deps/http_parser/Makefile
@@ -0,0 +1,27 @@
+#OPT=-O0 -g -Wall -Wextra -Werror
+OPT=-O2
+
+test: http_parser.o test.c
+ gcc $(OPT) http_parser.o test.c -o $@
+
+http_parser.o: http_parser.c http_parser.h Makefile
+ gcc $(OPT) -c http_parser.c
+
+http_parser.c: http_parser.rl Makefile
+ ragel -s -G2 http_parser.rl -o $@
+
+tags: http_parser.rl http_parser.h test.c
+ ctags $^
+
+clean:
+ rm -f *.o http_parser.c test http_parser.tar
+
+package: http_parser.c
+ @rm -rf /tmp/http_parser && mkdir /tmp/http_parser && \
+ cp LICENSE README.md Makefile http_parser.c http_parser.rl \
+ http_parser.h test.c /tmp/http_parser && \
+ cd /tmp && \
+ tar -cf http_parser.tar http_parser/
+ @echo /tmp/http_parser.tar
+
+.PHONY: clean package