From fb23d15ace64c102813d8a84546284598c5d1848 Mon Sep 17 00:00:00 2001 From: Salman Date: Thu, 19 May 2011 18:37:58 -0400 Subject: [PATCH] Add 'package' target in Makefile which produces libhttp_parser.a --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5608528..182e9d8 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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