* harbour/config/lib.mk
* harbour/config/bin.mk
* harbour/config/header.mk
* harbour/config/dyn.mk
* harbour/config/doc.mk
* harbour/config/instsh.mk
! rewritten install rules so now they work without any problem when
more then one target .mk file is included, i.e. lib.mk and header.mk
* harbour/source/pp/Makefile
* harbour/source/dynlib/mt/Makefile
* harbour/source/dynlib/Makefile
* harbour/contrib/hbmysql/Makefile
* harbour/contrib/hbct/Makefile
* harbour/contrib/xhb/Makefile
* harbour/contrib/hbodbc/Makefile
* harbour/contrib/hbtpathy/Makefile
* harbour/contrib/hbsqlit3/Makefile
* harbour/contrib/hbmzip/Makefile
* harbour/contrib/hbblat/Makefile
* harbour/contrib/hbqt/Makefile
* harbour/contrib/hbxbp/Makefile
* harbour/contrib/xpp/Makefile
* harbour/contrib/hbnf/Makefile
* harbour/contrib/hbcurl/Makefile
* harbour/contrib/gtqtc/Makefile
* harbour/contrib/rddsql/sddmy/Makefile
* harbour/contrib/rddsql/sddpg/Makefile
* harbour/contrib/rddsql/sddfb/Makefile
* harbour/contrib/rddsql/sddodbc/Makefile
* harbour/contrib/hbhpdf/Makefile
* harbour/contrib/rddado/Makefile
* harbour/contrib/gtwvg/Makefile
* harbour/contrib/hbpgsql/Makefile
* harbour/contrib/hbclipsm/Makefile
* harbour/contrib/rddads/Makefile
* harbour/contrib/hbfimage/Makefile
* harbour/contrib/hbgd/Makefile
* harbour/contrib/hbtip/Makefile
* harbour/contrib/hbwin/Makefile
* harbour/contrib/hbvpdf/Makefile
* harbour/contrib/hbbtree/Makefile
* harbour/contrib/hbssl/Makefile
* harbour/external/libhpdf/Makefile
* removed not longer necessary workaround for overwritten by different
targets INSTALL_RULE
Possible TODO: clean up some other rules in config .mk files to remove
hacks from pp and dynlib Makefile(s).
Above modifications should fully resolve the problems with repeated
install actions and also build problems with some more restrictive
POSIX SHELLs.
122 lines
2.5 KiB
Makefile
122 lines
2.5 KiB
Makefile
#
|
|
# $Id$
|
|
#
|
|
|
|
ROOT := ../../
|
|
|
|
include $(TOP)$(ROOT)config/global.mk
|
|
|
|
HB_BUILD_WARN := no
|
|
HB_BUILD_MODE := c
|
|
|
|
LIBNAME := libhpdf
|
|
|
|
C_SOURCES := \
|
|
_hbhbpdf.c \
|
|
hpdf_annotation.c \
|
|
hpdf_array.c \
|
|
hpdf_binary.c \
|
|
hpdf_boolean.c \
|
|
hpdf_catalog.c \
|
|
hpdf_destination.c \
|
|
hpdf_dict.c \
|
|
hpdf_doc.c \
|
|
hpdf_doc_png.c \
|
|
hpdf_encoder.c \
|
|
hpdf_encoder_cns.c \
|
|
hpdf_encoder_cnt.c \
|
|
hpdf_encoder_jp.c \
|
|
hpdf_encoder_kr.c \
|
|
hpdf_encrypt.c \
|
|
hpdf_encryptdict.c \
|
|
hpdf_error.c \
|
|
hpdf_ext_gstate.c \
|
|
hpdf_font.c \
|
|
hpdf_font_cid.c \
|
|
hpdf_font_tt.c \
|
|
hpdf_font_type1.c \
|
|
hpdf_fontdef.c \
|
|
hpdf_fontdef_base14.c \
|
|
hpdf_fontdef_cid.c \
|
|
hpdf_fontdef_cns.c \
|
|
hpdf_fontdef_cnt.c \
|
|
hpdf_fontdef_jp.c \
|
|
hpdf_fontdef_kr.c \
|
|
hpdf_fontdef_tt.c \
|
|
hpdf_fontdef_type1.c \
|
|
hpdf_gstate.c \
|
|
hpdf_image.c \
|
|
hpdf_image_png.c \
|
|
hpdf_info.c \
|
|
hpdf_list.c \
|
|
hpdf_mmgr.c \
|
|
hpdf_name.c \
|
|
hpdf_null.c \
|
|
hpdf_number.c \
|
|
hpdf_objects.c \
|
|
hpdf_outline.c \
|
|
hpdf_page_label.c \
|
|
hpdf_page_operator.c \
|
|
hpdf_pages.c \
|
|
hpdf_real.c \
|
|
hpdf_streams.c \
|
|
hpdf_string.c \
|
|
hpdf_u3d.c \
|
|
hpdf_utils.c \
|
|
hpdf_xref.c \
|
|
|
|
# decide whether to build it locally
|
|
ifeq ($(HB_INC_LIBHARU),)
|
|
HB_INC_LIBHARU := yes
|
|
ifeq ($(HB_PLATFORM)-$(HB_COMPILER),win-watcom)
|
|
HB_INC_LIBHARU := no
|
|
endif
|
|
# NOTE: dos hosts can't build this lib due to long filename. [vszakats]
|
|
ifeq ($(HB_HOST_PLAT),dos)
|
|
HB_INC_LIBHARU := no
|
|
endif
|
|
ifeq ($(HB_COMPILER),pocc64)
|
|
HB_INC_LIBHARU := no
|
|
endif
|
|
ifeq ($(HB_PLATFORM),wce)
|
|
HB_INC_LIBHARU := no
|
|
endif
|
|
ifeq ($(HB_COMPILER),mingwarm)
|
|
HB_INC_LIBHARU := yes
|
|
endif
|
|
endif
|
|
|
|
ifneq ($(HB_INC_LIBHARU),no)
|
|
|
|
_DET_DSP_NAME := libpng
|
|
_DET_VAR_INC_ := HB_INC_PNG
|
|
_DET_VAR_HAS_ := HB_HAS_PNG
|
|
_DET_FLT_PLAT :=
|
|
_DET_FLT_COMP :=
|
|
_DET_INC_DEFP := /usr/include
|
|
ifneq ($(filter $(HB_PLATFORM),win wce os2 dos darwin),)
|
|
_DET_INC_DEFP += $(TOP)$(ROOT)external/libpng
|
|
endif
|
|
_DET_INC_HEAD := /png.h
|
|
include $(TOP)$(ROOT)config/detfun.mk
|
|
|
|
ifneq ($(HB_HAS_PNG),)
|
|
|
|
HB_CFLAGS += -I$(TOP)$(ROOT)source/hbzlib
|
|
HB_CFLAGS += $(foreach d,$(HB_HAS_PNG),-I$(d))
|
|
|
|
ifeq ($(HB_COMPILER),mingwarm)
|
|
HB_CFLAGS += -U__COREDLL__
|
|
endif
|
|
|
|
include $(TOP)$(ROOT)config/header.mk
|
|
include $(TOP)$(ROOT)config/lib.mk
|
|
|
|
else
|
|
HB_SKIP_REASON := $(_DET_RES_TEXT)
|
|
include $(TOP)$(ROOT)config/none.mk
|
|
endif
|
|
else
|
|
include $(TOP)$(ROOT)config/none.mk
|
|
endif
|