Sha256: 5af723a1e5e08486ef648d379880661d4142d16c109dae01aaa4ace0de12a9a9

Contents?: true

Size: 929 Bytes

Versions: 35

Compression:

Stored size: 929 Bytes

Contents

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

Version data entries

35 entries across 19 versions & 2 rubygems

Version Path
http_parser.rb-0.5.3 ext/ruby_http_parser/vendor/http-parser/Makefile
http_parser.rb-0.5.3 ext/ruby_http_parser/vendor/http-parser-java/Makefile
http_parser.rb-0.5.3-x86-mswin32-60 ext/ruby_http_parser/vendor/http-parser-java/Makefile
http_parser.rb-0.5.3-x86-mswin32-60 ext/ruby_http_parser/vendor/http-parser/Makefile
http_parser.rb-0.5.3-x86-mingw32 ext/ruby_http_parser/vendor/http-parser-java/Makefile
http_parser.rb-0.5.3-x86-mingw32 ext/ruby_http_parser/vendor/http-parser/Makefile
http_parser.rb-0.5.3-java ext/ruby_http_parser/vendor/http-parser-java/Makefile
http_parser.rb-0.5.3-java ext/ruby_http_parser/vendor/http-parser/Makefile
http_parser.rb-0.5.2-x86-mswin32-60 ext/ruby_http_parser/vendor/http-parser-java/Makefile
http_parser.rb-0.5.2-x86-mswin32-60 ext/ruby_http_parser/vendor/http-parser/Makefile
http_parser.rb-0.5.2-x86-mingw32 ext/ruby_http_parser/vendor/http-parser-java/Makefile
http_parser.rb-0.5.2-x86-mingw32 ext/ruby_http_parser/vendor/http-parser/Makefile
http_parser.rb-0.5.2 ext/ruby_http_parser/vendor/http-parser-java/Makefile
http_parser.rb-0.5.2 ext/ruby_http_parser/vendor/http-parser/Makefile
http_parser.rb-0.5.2-java ext/ruby_http_parser/vendor/http-parser-java/Makefile
http_parser.rb-0.5.2-java ext/ruby_http_parser/vendor/http-parser/Makefile
http_parser.rb-0.5.1 ext/ruby_http_parser/vendor/http-parser/Makefile
http_parser.rb-0.5.1 ext/ruby_http_parser/vendor/http-parser-java/Makefile
http_parser.rb-0.5.1-x86-mswin32-60 ext/ruby_http_parser/vendor/http-parser/Makefile
http_parser.rb-0.5.1-x86-mswin32-60 ext/ruby_http_parser/vendor/http-parser-java/Makefile