Skip to content

Commit

Permalink
Add 'package' target in Makefile which produces libhttp_parser.a
Browse files Browse the repository at this point in the history
  • Loading branch information
Salman authored and ry committed May 24, 2011
1 parent 2839784 commit fb23d15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Expand Up @@ -3,6 +3,7 @@ OPT_DEBUG=-O0 -g -Wall -Wextra -Werror -I. $(CPPFLAGS)
OPT_FAST=-O3 -DHTTP_PARSER_STRICT=0 -I. $(CPPFLAGS)

CC?=gcc
AR?=ar


test: test_g
Expand Down Expand Up @@ -32,11 +33,13 @@ test_fast: http_parser.o test.c http_parser.h
test-run-timed: test_fast
while(true) do time ./test_fast > /dev/null; done

package: http_parser.o
$(AR) rcs libhttp_parser.a http_parser.o

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

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

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

0 comments on commit fb23d15

Please sign in to comment.