Files
harbour-core/harbour/contrib/hbcurl/Makefile
Viktor Szakats 0323982efa 2009-04-14 09:47 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
+ contrib/hbcurl/hbcurls
  + contrib/hbcurl/hbcurls/Makefile
  * contrib/hbcurl/Makefile
    + Added generation of static flavour of hbcurl. This can 
      be used to link against static libcurl.

  * utils/hbmk2/hbmk2.prg
    ! Fixed target exe name with msvc.
    ! Added /debug link switch for msvc in -debug mode.
2009-04-14 07:48:30 +00:00

55 lines
798 B
Makefile

#
# $Id$
#
ROOT = ../../
LIBNAME=hbcurl
HB_INC_CURL_OK =
ifneq ($(HB_ARCHITECTURE),dos)
ifeq ($(HB_INC_CURL),)
ifeq ($(HB_XBUILD),)
HB_INC_CURL = /usr/include
endif
endif
HB_INC_CURL_OK += $(foreach d, $(HB_INC_CURL), $(if $(wildcard $(d)/curl/curl.h),$(d),))
endif
ifneq ($(strip $(HB_INC_CURL_OK)),)
HB_USER_CFLAGS += $(foreach d, $(HB_INC_CURL_OK), -I$(d))
C_SOURCES=\
hbcurl.c \
hbcurlm.c \
PRG_HEADERS=\
hbcurl.ch \
include $(TOP)$(ROOT)config/header.cf
INSTALL_RULE_HEADERS := $(INSTALL_RULE)
include $(TOP)$(ROOT)config/lib.cf
install::
$(INSTALL_RULE_HEADERS)
ifeq ($(HB_ARCHITECTURE),win)
DIRS += hbcurls
endif
ifeq ($(HB_ARCHITECTURE),wce)
DIRS += hbcurls
endif
ifneq ($(DIRS),)
include $(TOP)$(ROOT)config/dir.cf
endif
else
include $(TOP)$(ROOT)config/none.cf
endif