You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2011/06/05 11:18:54 UTC

svn commit: r1132281 - /incubator/mesos/trunk/third_party/libprocess/third_party/ry-http-parser-1c3624a/Makefile

Author: benh
Date: Sun Jun  5 09:18:54 2011
New Revision: 1132281

URL: http://svn.apache.org/viewvc?rev=1132281&view=rev
Log:
Missing file due to .gitignore issue.

Added:
    incubator/mesos/trunk/third_party/libprocess/third_party/ry-http-parser-1c3624a/Makefile

Added: incubator/mesos/trunk/third_party/libprocess/third_party/ry-http-parser-1c3624a/Makefile
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/third_party/libprocess/third_party/ry-http-parser-1c3624a/Makefile?rev=1132281&view=auto
==============================================================================
--- incubator/mesos/trunk/third_party/libprocess/third_party/ry-http-parser-1c3624a/Makefile (added)
+++ incubator/mesos/trunk/third_party/libprocess/third_party/ry-http-parser-1c3624a/Makefile Sun Jun  5 09:18:54 2011
@@ -0,0 +1,41 @@
+OPT_DEBUG=-O0 -g -Wall -Wextra -Werror -I.
+OPT_FAST=-O3 -DHTTP_PARSER_STRICT=0 -I.
+
+CC?=gcc
+
+
+test: test_g
+	./test_g
+
+test_g: http_parser_g.o test_g.o
+	$(CC) $(OPT_DEBUG) http_parser_g.o test_g.o -o $@
+
+test_g.o: test.c http_parser.h Makefile
+	$(CC) $(OPT_DEBUG) -c test.c -o $@
+
+test.o: test.c http_parser.h Makefile
+	$(CC) $(OPT_FAST) -c test.c -o $@
+
+http_parser_g.o: http_parser.c http_parser.h Makefile
+	$(CC) $(OPT_DEBUG) -c http_parser.c -o $@
+
+test-valgrind: test_g
+	valgrind ./test_g
+
+http_parser.o: http_parser.c http_parser.h Makefile
+	$(CC) $(OPT_FAST) -c http_parser.c
+
+test_fast: http_parser.o test.c http_parser.h
+	$(CC) $(OPT_FAST) http_parser.o test.c -o $@
+
+test-run-timed: test_fast
+	while(true) do time ./test_fast > /dev/null; done
+
+
+tags: http_parser.c http_parser.h test.c
+	ctags $^
+
+clean:
+	rm -f *.o test test_fast test_g http_parser.tar tags
+
+.PHONY: clean package test-run test-run-timed test-valgrind