|
@@ -9,7 +9,7 @@ Last-Update: 2013-06-13
|
|
|
CFLAGS_DEBUG = $(CFLAGS) -O0 -g $(CFLAGS_DEBUG_EXTRA)
|
|
|
CFLAGS_FAST = $(CFLAGS) -O3 $(CFLAGS_FAST_EXTRA)
|
|
|
CFLAGS_LIB = $(CFLAGS_FAST) -fPIC
|
|
|
-+LDFLAGS += $(shell dpkg-buildflags --get LDFLAGS)
|
|
|
++LDFLAGS +=-Wl,-soname,libhttp_parser.so.0
|
|
|
|
|
|
test: test_g test_fast
|
|
|
./test_g
|
|
@@ -31,7 +31,16 @@ Last-Update: 2013-06-13
|
|
|
|
|
|
library: libhttp_parser.o
|
|
|
- $(CC) -shared -o libhttp_parser.so libhttp_parser.o
|
|
|
-+ $(CC) $(LDFLAGS) -shared -o libhttp_parser.so libhttp_parser.o
|
|
|
++ $(CC) $(LDFLAGS) -shared -o libhttp_parser.so.0 libhttp_parser.o
|
|
|
|
|
|
package: http_parser.o
|
|
|
$(AR) rcs libhttp_parser.a http_parser.o
|
|
|
+@@ -66,7 +67,7 @@
|
|
|
+
|
|
|
+ clean:
|
|
|
+ rm -f *.o *.a tags test test_fast test_g \
|
|
|
+- http_parser.tar libhttp_parser.so \
|
|
|
++ http_parser.tar libhttp_parser.so.0 \
|
|
|
+ url_parser url_parser_g parsertrace parsertrace_g
|
|
|
+
|
|
|
+ contrib/url_parser.c: http_parser.h
|