Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

#116 : refactor to allow url with basic auth a:b@toto.com #118

Merged
merged 14 commits into from Jul 25, 2012
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -4,6 +4,7 @@ tags
test
test_g
test_fast
url_parser
*.mk
*.Makefile
*.so
Expand Down
8 changes: 7 additions & 1 deletion Makefile
Expand Up @@ -31,6 +31,12 @@ test_fast: http_parser.o test.o http_parser.h
test.o: test.c http_parser.h Makefile
$(CC) $(CPPFLAGS_FAST) $(CFLAGS_FAST) -c test.c -o $@

url_parser: http_parser_g.o url_parser.o
$(CC) $(CFLAGS_DEBUG) $(LDFLAGS) http_parser_g.o url_parser.o -o $@

url_parser.o: url_parser.c http_parser.h Makefile
$(CC) $(CPPFLAGS_DEBUG) $(CFLAGS_DEBUG) -c url_parser.c -o $@

http_parser.o: http_parser.c http_parser.h Makefile
$(CC) $(CPPFLAGS_FAST) $(CFLAGS_FAST) -c http_parser.c

Expand All @@ -53,6 +59,6 @@ tags: http_parser.c http_parser.h test.c
ctags $^

clean:
rm -f *.o *.a test test_fast test_g http_parser.tar tags libhttp_parser.so libhttp_parser.o
rm -f *.o *.a test test_fast test_g url_parser http_parser.tar tags libhttp_parser.so libhttp_parser.o

.PHONY: clean package test-run test-run-timed test-valgrind