Files
harbour-core/harbour/source/rtl/gtcrs/Makefile
Viktor Szakats 38d9c0e799 2009-07-14 18:03 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* bin/hb-func.sh
  * make_gnu.sh
    * Moved lib detection logic to hb-func.sh.
    ; It'd be better to have a way to gather such information
      along the make process in some .cfg files.

  * source/rtl/gtcrs/Makefile
    - Deleted some header locations which weren't checked anyway
      before these changes. Please review.

  * config/djg-make.exe
    + Updated to 3.81 (from 3.79.1) found in djgpp 2.04 (beta)
      (doesn't resolve the dos/watcom problem with hbpp)
2009-07-14 16:05:06 +00:00

66 lines
1.4 KiB
Makefile

#
# $Id$
#
ROOT = ../../../
LIBNAME=gtcrs
C_SOURCES=\
gtcrs.c \
ifeq ($(HB_INC_CURSES),)
ifeq ($(HB_XBUILD),)
ifeq ($(HB_NCURSES_194),yes)
HB_INC_CURSES = /usr/include/ncur194
else
HB_INC_CURSES = /usr/include /usr/local/include /sw/include /opt/local/include
endif
endif
endif
ifeq ($(HB_WITHOUT_GTCRS),yes)
HB_INC_CURSES =
endif
HB_INC_CURSES_OK += $(foreach d, $(HB_INC_CURSES), $(if $(wildcard $(d)/curses.h),$(d),))
HB_INC_CURSES_OK:=$(strip $(HB_INC_CURSES_OK))
ifeq ($(HB_INC_CURSES_OK),)
ifeq ($(HB_ARCHITECTURE),dos)
HB_INC_CURSES_OK += $(foreach d, $(subst ;, ,$(PATH)), $(if $(wildcard $(d)/../include/curses.h),$(d)/../include,))
HB_INC_CURSES_OK:=$(strip $(HB_INC_CURSES_OK))
endif
endif
ifneq ($(HB_INC_CURSES_OK),)
HB_INC_GPM_OK =
ifneq ($(HB_GPM_MOUSE),no)
ifneq ($(HB_COMMERCE),yes)
HB_INC_GPM = /usr/include /usr/local/include
HB_INC_GPM_OK += $(foreach d, $(HB_INC_GPM), $(if $(wildcard $(d)/gpm.h),$(d),))
endif
endif
ifeq ($(HB_GT_CRS_BCEHACK),yes)
HB_USER_CFLAGS += -DHB_GT_CRS_BCEHACK
endif
ifneq ($(strip $(HB_INC_GPM_OK)),)
HB_USER_CFLAGS += -DHAVE_GPM_H
ifeq ($(HB_GPM_NOICE_DISABLE),yes)
HB_USER_CFLAGS += -DHB_GPM_NOICE_DISABLE
endif
endif
ifeq ($(HB_NCURSES_194),yes)
HB_USER_CFLAGS += -DHB_NCURSES_194
endif
HB_USER_CFLAGS += $(foreach d, $(HB_INC_CURSES_OK), -I$(d))
include $(TOP)$(ROOT)config/lib.cf
else
include $(TOP)$(ROOT)config/none.cf
endif