* config/global.mk
* config/rules.mk
+ Added HB_CFLAGS_DYN variable to pass lib specific options
specially directed to compilation phase when building
to create a .dll. Currently this affects pcre and zlib since
these are included in harbour .dll.
* external/libhpdf/Makefile
* external/pcre/Makefile
* external/png/Makefile
* external/zlib/Makefile
+ Configured HB_CFLAGS_DYN for these libs to properly create
exported symbols in harbour .dll. This was a problem so far
for any non-mingw made harbour .dll.
39 lines
535 B
Makefile
39 lines
535 B
Makefile
#
|
|
# $Id$
|
|
#
|
|
|
|
ROOT := ../../
|
|
|
|
include $(TOP)$(ROOT)config/global.mk
|
|
|
|
LIBNAME := hbzlib
|
|
|
|
HB_BUILD_WARN := no
|
|
HB_BUILD_MODE := c
|
|
|
|
HB_CFLAGS_DYN := -DZLIB_DLL
|
|
|
|
C_SOURCES := \
|
|
adler32.c \
|
|
compress.c \
|
|
crc32.c \
|
|
deflate.c \
|
|
gzclose.c \
|
|
gzlib.c \
|
|
gzread.c \
|
|
gzwrite.c \
|
|
infback.c \
|
|
inffast.c \
|
|
inflate.c \
|
|
inftrees.c \
|
|
trees.c \
|
|
uncompr.c \
|
|
zutil.c \
|
|
|
|
ifneq ($(HB_HAS_ZLIB_LOCAL),)
|
|
include $(TOP)$(ROOT)config/lib.mk
|
|
else
|
|
HB_SKIP_REASON := unused
|
|
include $(TOP)$(ROOT)config/none.mk
|
|
endif
|