- source/rtl/gtalleg
+ contrib/gtalleg
* TODO
* doc/dirstruc.txt
* include/hbgtcore.h
* contrib/gtalleg/Makefile
* contrib/gtalleg/make_b32.bat
* contrib/gtalleg/make_vc.bat
* contrib/gtalleg/make_gcc.sh
* contrib/make_b32_all.bat
* contrib/make_vc_all.bat
* contrib/make_gcc_all.sh
* contrib/Makefile
* config/hpux/gcc.cf
* config/hpux/global.cf
* config/darwin/gcc.cf
* config/darwin/global.cf
* config/dos/global.cf
* config/linux/gcc.cf
* config/linux/global.cf
* config/sunos/gcc.cf
* config/sunos/global.cf
* config/bsd/gcc.cf
* config/bsd/global.cf
* config/w32/global.cf
* harbour-ce-spec
* harbour-w32-spec
* harbour.spec
* GTALLEG moved to contrib to make it possible to build
using the non-GNU make system, also to align the build
process with other 3rd party package dependent parts
of Harbour.
HB_INC_ALLEGRO or HB_DIR_ALLEGRO may be used to point
to Allegro package directory. This is generally necessary
on non-*nix systems.
; NOTE: Review and test build processes and modified files,
and unmodified, but potentially related files:
bin/hb-func.sh
make_gnu.sh
make_rpm.sh
make_rpmce.sh
make_rpmw32.sh
93 lines
1.8 KiB
CFEngine3
93 lines
1.8 KiB
CFEngine3
#
|
|
# $Id$
|
|
#
|
|
|
|
include $(TOP)$(ROOT)config/$(HB_ARCHITECTURE)/global.cf
|
|
|
|
OBJ_EXT = .o
|
|
EXE_EXT =
|
|
LIB_PREF = lib
|
|
LIB_EXT = .a
|
|
|
|
CC = gcc
|
|
CC_IN = -c
|
|
CC_OUT = -o
|
|
CPPFLAGS = -I. -I$(HB_INC_COMPILE)
|
|
CFLAGS = -W -Wall
|
|
|
|
LD = gcc
|
|
LD_OUT = -o
|
|
|
|
# Add all libraries specified in CONTRIBS and LIBS.
|
|
ifeq ($(HB_LIB_COMPILE),)
|
|
LINKPATHS += -L$(LIB_DIR)
|
|
else
|
|
LINKPATHS += -L$(HB_LIB_COMPILE)
|
|
endif
|
|
|
|
LINKLIBS += -Wl,--start-group
|
|
|
|
LINKLIBS += $(foreach lib, $(CONTRIBS), -l$(subst lib,,$(lib)))
|
|
LINKLIBS += $(foreach lib, $(LIBS), -l$(lib))
|
|
|
|
# If LIBS specifies the rdd library, add all DB drivers.
|
|
ifeq ($(findstring rdd,$(LIBS)),rdd)
|
|
LINKLIBS += $(foreach drv, $(HB_DB_DRIVERS), -l$(drv))
|
|
endif
|
|
|
|
# Add the specified GT driver library and other RTLs
|
|
ifeq ($(findstring rtl,$(LIBS)),rtl)
|
|
|
|
LINKLIBS += $(foreach gt, $(HB_GT_LIBS), -l$(gt))
|
|
|
|
# screen driver libraries
|
|
ifeq ($(HB_CRS_LIB),)
|
|
HB_CRS_LIB=ncurses
|
|
endif
|
|
|
|
ifneq ($(findstring gtcrs, $(HB_GT_LIBS)),)
|
|
LINKLIBS += -l$(HB_CRS_LIB)
|
|
endif
|
|
|
|
ifneq ($(findstring gtsln, $(HB_GT_LIBS)),)
|
|
LINKLIBS += -lslang
|
|
# In BSD, slang still needs curses :(
|
|
ifeq ($(findstring gtcrs, $(HB_GT_LIBS)),)
|
|
LINKLIBS += -l$(HB_CRS_LIB)
|
|
endif
|
|
endif
|
|
|
|
ifneq ($(findstring gtxwc, $(HB_GT_LIBS)),)
|
|
LINKLIBS += -lX11
|
|
#LINKPATHS += -L/usr/X11R6/lib64
|
|
LINKPATHS += -L/usr/X11R6/lib
|
|
endif
|
|
|
|
# HB_GPM_MOUSE: use gpm mouse driver
|
|
# Actually, there is no gpm on BSD.
|
|
ifeq ($(HB_GPM_MOUSE),yes)
|
|
LINKLIBS += -lgpm
|
|
endif
|
|
|
|
LINKPATHS += -L/usr/local/lib
|
|
|
|
endif
|
|
|
|
ifneq ($(findstring -DHB_PCRE_REGEX, $(C_USR)),)
|
|
LINKLIBS += -lpcre
|
|
endif
|
|
|
|
ifneq ($(findstring -DHB_EXT_ZLIB, $(C_USR)),)
|
|
LINKLIBS += -lz
|
|
endif
|
|
|
|
LINKLIBS += -lm -Wl,--end-group
|
|
|
|
LDFLAGS += $(LINKPATHS)
|
|
|
|
AR = ar
|
|
ARFLAGS = $(A_USR)
|
|
AR_RULE = $(AR) $(ARFLAGS) r $(LIB_DIR)/$@ $(^F) || $(RM) $(LIB_DIR)/$@
|
|
|
|
include $(TOP)$(ROOT)config/rules.cf
|