* harbour/config/bsd/gcc.mk
* harbour/config/darwin/gcc.mk
* harbour/config/hpux/gcc.mk
* harbour/config/dos/djgpp.mk
* harbour/config/win/mingw.mk
* harbour/config/linux/gcc.mk
* harbour/config/linux/icc.mk
* harbour/config/linux/sunpro.mk
* harbour/config/os2/gcc.mk
* harbour/config/sunos/gcc.mk
* harbour/config/sunos/sunpro.mk
! replaced wrongly used 'findstring' functions with 'filter' functions.
Now findstring is used only in places where we are looking for
substrings not whole words.
* harbour/source/rdd/wacore.c
! fixed typo in comment (by Phil Krylov borrowed from xHarbour)
* harbour/ChangeLog
! fixed my typo in Latin translation of Phil Krylov family
name - sorry Phil.
87 lines
1.6 KiB
Makefile
87 lines
1.6 KiB
Makefile
#
|
|
# $Id$
|
|
#
|
|
|
|
ifeq ($(HB_BUILD_MODE),cpp)
|
|
HB_CMP := g++
|
|
else
|
|
HB_CMP := gcc
|
|
endif
|
|
|
|
OBJ_EXT := .o
|
|
LIB_PREF := lib
|
|
LIB_EXT := .a
|
|
|
|
CC := $(HB_CCACHE) $(HB_CCPREFIX)$(HB_CMP)
|
|
CC_IN := -c
|
|
CC_OUT := -o
|
|
|
|
CPPFLAGS := -I. -I$(HB_INC_COMPILE)
|
|
CFLAGS :=
|
|
LDFLAGS :=
|
|
|
|
ifneq ($(HB_BUILD_WARN),no)
|
|
CFLAGS += -Wall -W
|
|
endif
|
|
|
|
ifneq ($(HB_BUILD_OPTIM),no)
|
|
CFLAGS += -O3
|
|
endif
|
|
|
|
# uncomment this if you want to force relocateable code for .so libs
|
|
# it's necessary on some platforms but can reduce performance
|
|
#CFLAGS += -fPIC
|
|
|
|
ifeq ($(HB_BUILD_DEBUG),yes)
|
|
CFLAGS += -g
|
|
endif
|
|
|
|
LD := $(HB_CCACHE) $(HB_CCPREFIX)$(HB_CMP)
|
|
LD_OUT := -o
|
|
|
|
LIBPATHS := -L$(LIB_DIR)
|
|
LDLIBS := $(foreach lib,$(LIBS),-l$(lib))
|
|
|
|
ifneq ($(filter hbrtl, $(LIBS)),)
|
|
# Add the specified GT driver library
|
|
ifneq ($(filter gtcrs, $(LIBS)),)
|
|
ifeq ($(HB_CRS_LIB),)
|
|
HB_CRS_LIB := ncurses
|
|
endif
|
|
LDLIBS += -l$(HB_CRS_LIB)
|
|
endif
|
|
ifneq ($(filter gtsln, $(LIBS)),)
|
|
LDLIBS += -lslang
|
|
endif
|
|
ifneq ($(filter gtxwc, $(LIBS)),)
|
|
LDLIBS += -lX11
|
|
#LIBPATHS += -L/usr/X11R6/lib64
|
|
LIBPATHS += -L/usr/X11R6/lib
|
|
endif
|
|
|
|
# HB_GPM_MOUSE: use gpm mouse driver
|
|
ifeq ($(HB_GPM_MOUSE),yes)
|
|
LDLIBS += -lgpm
|
|
endif
|
|
|
|
ifneq ($(filter -DHB_PCRE_REGEX, $(HB_USER_CFLAGS)),)
|
|
LDLIBS += -lpcre
|
|
endif
|
|
|
|
ifneq ($(filter -DHB_EXT_ZLIB, $(HB_USER_CFLAGS)),)
|
|
LDLIBS += -lz
|
|
endif
|
|
|
|
LDLIBS += -lrt -ldl
|
|
endif
|
|
|
|
LDLIBS += -lm
|
|
|
|
LDFLAGS += $(LIBPATHS)
|
|
|
|
AR := $(HB_CCPREFIX)ar
|
|
ARFLAGS :=
|
|
AR_RULE = $(AR) $(ARFLAGS) $(HB_USER_AFLAGS) crs $(LIB_DIR)/$@ $(^F) || ( $(RM) $(LIB_DIR)/$@ && false )
|
|
|
|
include $(TOP)$(ROOT)config/rules.mk
|