Allow that zlib and expat can be linked dynamically without changing the makefile by specifying "=0":

make BUILD_ZLIB=0 BUILD_EXPAT=0

This was possible before as well but this is more what users (and myself) would expect.
This commit is contained in:
Couriersud 2010-01-17 20:36:46 +00:00
parent ecec9ae9b1
commit b423367224

View File

@ -524,7 +524,7 @@ VERSIONOBJ = $(OBJ)/version.o
LIBS =
# add expat XML library
ifdef BUILD_EXPAT
ifeq ($(BUILD_EXPAT),1)
CCOMFLAGS += -I$(SRC)/lib/expat
EXPAT = $(OBJ)/libexpat.a
else
@ -533,7 +533,7 @@ EXPAT =
endif
# add ZLIB compression library
ifdef BUILD_ZLIB
ifeq ($(BUILD_ZLIB),1)
CCOMFLAGS += -I$(SRC)/lib/zlib
ZLIB = $(OBJ)/libz.a
else