Files
harbour-core/harbour/external/png/Makefile
Viktor Szakats b88202cabe 2010-06-15 18:43 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* INSTALL
  * config/global.mk
  * config/detfun.mk
  * config/detect.mk
  * external/sqlite3/Makefile
  * external/png/Makefile
  * external/jpeg/Makefile
  * external/bzip2/Makefile
  * external/libhpdf/Makefile
  * contrib/hbsqlit3/Makefile
  * contrib/hbmzip/Makefile
  * contrib/hbbz2/Makefile
  * contrib/hbhpdf/Makefile
  * contrib/sddsqlt3/Makefile
  * contrib/hbwin/Makefile
    + Added HB_ROOT variable which can be used to specify Harbour
      source tree root as an absolute directory, when using
      older than 3.81 GNU Make version (f.e. on QNX).
    + Changed the way locally hosted source directories are
      specified for detection function, in order to support
      HB_ROOT functionality.
2010-06-15 16:44:38 +00:00

70 lines
1.4 KiB
Makefile

#
# $Id$
#
ROOT := ../../
include $(TOP)$(ROOT)config/global.mk
LIBNAME := png
HB_BUILD_WARN := no
HB_BUILD_MODE := c
C_SOURCES := \
png.c \
pngerror.c \
pngget.c \
pngmem.c \
pngpread.c \
pngread.c \
pngrio.c \
pngrtran.c \
pngrutil.c \
pngset.c \
pngtrans.c \
pngwio.c \
pngwrite.c \
pngwtran.c \
pngwutil.c \
ifeq ($(filter $(HB_COMPILER),poccarm xcc),)
_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 /boot/develop/headers/3rdparty
_DET_INC_LOCL := external/png
_DET_INC_HEAD := /png.h
include $(TOP)$(ROOT)config/detfun.mk
ifneq ($(HB_HAS_PNG_LOCAL),)
ifneq ($(HB_HAS_ZLIB),)
HB_CFLAGS += $(foreach d,$(HB_HAS_ZLIB),-I$(d))
HB_CFLAGS_DYN := -DPNG_BUILD_DLL
ifeq ($(HB_COMPILER),djgpp)
HB_CFLAGS += -DPNG_NO_SNPRINTF
endif
ifeq ($(HB_COMPILER),watcom)
HB_CFLAGS += -DPNG_NO_SETJMP
endif
include $(TOP)$(ROOT)config/lib.mk
else
HB_SKIP_REASON := $(_DET_RES_TEXT)
include $(TOP)$(ROOT)config/none.mk
endif
else
HB_SKIP_REASON := unused
include $(TOP)$(ROOT)config/none.mk
endif
else
HB_SKIP_REASON := compiler not supported
include $(TOP)$(ROOT)config/none.mk
endif