Skip to content
This repository
tag: v0.3
Fetching contributors…

Cannot retrieve contributors at this time

file 31 lines (19 sloc) 0.647 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
OPT_DEBUG=-O0 -g -Wall -Wextra -Werror
OPT_FAST=-O3 -DHTTP_PARSER_STRICT=0


http_parser_g.o: http_parser.c http_parser.h Makefile
gcc $(OPT_DEBUG) -c http_parser.c

test_g: http_parser_g.o test.c
gcc $(OPT_DEBUG) http_parser.o test.c -o $@

test-run: test_g
./test_g


http_parser.o: http_parser.c http_parser.h Makefile
gcc $(OPT_FAST) -c http_parser.c

test: http_parser.o test.c
gcc $(OPT_FAST) http_parser.o test.c -o $@

test-run-timed: test
while(true) do time ./test > /dev/null; done


tags: http_parser.c http_parser.h test.c
ctags $^

clean:
rm -f *.o test test_g http_parser.tar

.PHONY: clean package test-run test-run-timed
Something went wrong with that request. Please try again.