|
|
@ -19,8 +19,13 @@
|
|
|
|
# IN THE SOFTWARE.
|
|
|
|
# IN THE SOFTWARE.
|
|
|
|
|
|
|
|
|
|
|
|
PLATFORM ?= $(shell sh -c 'uname -s | tr "[A-Z]" "[a-z]"')
|
|
|
|
PLATFORM ?= $(shell sh -c 'uname -s | tr "[A-Z]" "[a-z]"')
|
|
|
|
|
|
|
|
ifeq (darwin,$(PLATFORM))
|
|
|
|
|
|
|
|
SONAME ?= libhttp_parser.2.5.0.dylib
|
|
|
|
|
|
|
|
SOEXT ?= dylib
|
|
|
|
|
|
|
|
else
|
|
|
|
SONAME ?= libhttp_parser.so.2.5.0
|
|
|
|
SONAME ?= libhttp_parser.so.2.5.0
|
|
|
|
|
|
|
|
SOEXT ?= so
|
|
|
|
|
|
|
|
endif
|
|
|
|
CC?=gcc
|
|
|
|
CC?=gcc
|
|
|
|
AR?=ar
|
|
|
|
AR?=ar
|
|
|
|
|
|
|
|
|
|
|
@ -113,12 +118,12 @@ tags: http_parser.c http_parser.h test.c
|
|
|
|
install: library
|
|
|
|
install: library
|
|
|
|
$(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
|
|
|
|
$(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
|
|
|
|
$(INSTALL) -D $(SONAME) $(LIBDIR)/$(SONAME)
|
|
|
|
$(INSTALL) -D $(SONAME) $(LIBDIR)/$(SONAME)
|
|
|
|
ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.so
|
|
|
|
ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.$(SOEXT)
|
|
|
|
|
|
|
|
|
|
|
|
install-strip: library
|
|
|
|
install-strip: library
|
|
|
|
$(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
|
|
|
|
$(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
|
|
|
|
$(INSTALL) -D -s $(SONAME) $(LIBDIR)/$(SONAME)
|
|
|
|
$(INSTALL) -D -s $(SONAME) $(LIBDIR)/$(SONAME)
|
|
|
|
ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.so
|
|
|
|
ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.$(SOEXT)
|
|
|
|
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
uninstall:
|
|
|
|
rm $(INCLUDEDIR)/http_parser.h
|
|
|
|
rm $(INCLUDEDIR)/http_parser.h
|
|
|
|