You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
http-parser/Makefile

34 lines
760 B

OPT_DEBUG=-O0 -g -Wall -Wextra -Werror
OPT_FAST=-O3 -DHTTP_PARSER_STRICT=0
test: test_debug
./test_debug
test_debug: http_parser_debug.o test.c
gcc $(OPT_DEBUG) http_parser.o test.c -o $@
http_parser_debug.o: http_parser.c http_parser.h Makefile
gcc $(OPT_DEBUG) -c http_parser.c
15 years ago
test-valgrind: test_debug
valgrind ./test_debug
15 years ago
http_parser.o: http_parser.c http_parser.h Makefile
gcc $(OPT_FAST) -c http_parser.c
test_fast: http_parser.o test.c
gcc $(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_debug http_parser.tar tags
16 years ago
.PHONY: clean package test-run test-run-timed test-valgrind