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

31 lines
692 B

OPT=-O0 -g -Wall -Wextra -Werror
#OPT=-O3 -DHTTP_PARSER_STRICT=0
test: http_parser.o test.c
gcc $(OPT) http_parser.o test.c -o $@
15 years ago
test-run: test
./test
test-run-timed: test
time ./test > /dev/null
http_parser.o: http_parser.c http_parser.h Makefile
gcc $(OPT) -c http_parser.c
tags: http_parser.c http_parser.h test.c
ctags $^
clean:
16 years ago
rm -f *.o http_parser.c test http_parser.tar
16 years ago
package: http_parser.c
@rm -rf /tmp/http_parser && mkdir /tmp/http_parser && \
cp LICENSE README.md Makefile http_parser.c \
16 years ago
http_parser.h test.c /tmp/http_parser && \
cd /tmp && \
tar -cf http_parser.tar http_parser/
@echo /tmp/http_parser.tar
15 years ago
.PHONY: clean package test-run test-run-timed