In Debian we want library dependencies to work in the conventional way,
since many tools expect that and use it to generate package
dependencies.
Origin: vendor, Debian
LIB_JPEG=-ljpeg
endif
+ifdef LINK_TO_ZLIB
+CFLAGS_ZLIB=-DLINK_TO_ZLIB
+LIB_ZLIB=-lz
+endif
+
CFLAGS_PRELOAD=
ifneq ($(DP_MAKE_TARGET), mingw)
ifdef DP_PRELOAD_DEPENDENCIES
$(CFLAGS_FS) \
$(CFLAGS_WARNINGS) \
$(CFLAGS_LIBJPEG) \
+ $(CFLAGS_ZLIB) \
$(CFLAGS_D3D) \
-D_FILE_OFFSET_BITS=64 \
-D__KERNEL_STRICT_NAMES
-lm \
$(LIB_ODE) \
$(LIB_JPEG) \
+ $(LIB_ZLIB) \
$(LIB_CRYPTO) \
$(LIB_GMP) \
$(LIB_CRYPTO_RIJNDAEL)