Files
harbour-core/harbour/source/rtl/gtcrs/Makefile
Przemyslaw Czerpak 4e8c876b3e 2009-07-16 20:58 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gtcrs/Makefile
    * test for HB_COMPILER=djgpp instead of HB_ARCHITECTURE=dos to
      activate trick used to detect PDCURSES in DJGPP builds when
2009-07-16 18:58:10 +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_COMPILER),djgpp)
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