* config/rules.cf
* config/global.cf
* config/win/bcc.cf
* config/linux/watcom.cf
* config/instsh.cf
* config/dirsh.cf
* config/globsh.cf
* HB_SHELL value 'bash' -> 'sh'
* config/win/bcc.cf
* config/win/xcc.cf
* config/win/pocc.cf
* config/wce/poccarm.cf
% Deleted comment banner.
90 lines
1.8 KiB
CFEngine3
90 lines
1.8 KiB
CFEngine3
#
|
|
# $Id$
|
|
#
|
|
|
|
# GNU MAKE file for Borland/CodeGear C/C++ 32-bit (4.x-)
|
|
|
|
OBJ_EXT = .obj
|
|
EXE_EXT = .exe
|
|
LIB_PREF =
|
|
LIB_EXT = .lib
|
|
|
|
CC = bcc32.exe
|
|
CC_IN = -c
|
|
CC_OUT = -o
|
|
CPPFLAGS = -I. -I$(HB_INC_COMPILE)
|
|
CFLAGS = -q -tWM
|
|
|
|
ifneq ($(HB_BUILD_WARN),no)
|
|
CFLAGS += -w -w-sig- -Q
|
|
endif
|
|
|
|
ifneq ($(HB_BUILD_OPTIM),no)
|
|
# for some reason -6 generates the exact same code as -4
|
|
# with both 5.5 and 5.8. -5 seems to be significantly slower
|
|
# than both.
|
|
CFLAGS += -d -6 -O2 -OS -Ov -Oi -Oc
|
|
endif
|
|
|
|
ifeq ($(HB_BUILD_MODE),cpp)
|
|
CFLAGS += -P
|
|
endif
|
|
|
|
ifeq ($(HB_BUILD_DEBUG),yes)
|
|
CFLAGS += -y -v
|
|
endif
|
|
|
|
LD = bcc32.exe
|
|
LDFLAGS = -O2
|
|
LD_OUT = -e
|
|
|
|
# Add all libraries specified in LIBS.
|
|
LINKPATHS += -L$(LIB_DIR)
|
|
LIBLIST += $(foreach lib, $(LIBS), $(lib)$(LIB_EXT))
|
|
|
|
# If LIBS specifies the RDD library, add all DB drivers.
|
|
ifeq ($(findstring hbrdd,$(LIBS)),hbrdd)
|
|
LIBLIST += $(foreach drv, $(HB_DB_DRIVERS), $(drv)$(LIB_EXT))
|
|
endif
|
|
|
|
# Add the specified GT driver library
|
|
ifeq ($(findstring hbrtl,$(LIBS)),hbrtl)
|
|
LIBLIST += $(foreach gt, $(HB_GT_LIBS), $(gt)$(LIB_EXT))
|
|
endif
|
|
|
|
# It's probably not necessary in native Windows but I need it
|
|
# for my Linux box because -L<path> seems to not work with WINE
|
|
LINKLIBS = $(foreach lib, $(LIBLIST), $(LIB_DIR)/$(lib))
|
|
|
|
LDFLAGS = $(LINKPATHS)
|
|
|
|
# create library rules
|
|
AR = tlib.exe
|
|
ARFLAGS = /P64 $(HB_USER_AFLAGS)
|
|
|
|
ifneq ($(HB_SHELL),sh)
|
|
|
|
# NOTE: The empty line below HAVE TO exist!
|
|
define lib_object
|
|
@echo -+$(subst /,\,$(file)) ^& >> __lib__.tmp
|
|
|
|
endef
|
|
|
|
define create_library
|
|
@if exist __lib__.tmp del __lib__.tmp
|
|
$(foreach file, $(^F), $(lib_object))
|
|
@echo -+>> __lib__.tmp
|
|
$(AR) $(ARFLAGS) "$(subst /,\,$(LIB_DIR)/$@)" @__lib__.tmp
|
|
endef
|
|
|
|
AR_RULE = $(create_library)
|
|
|
|
else # sh
|
|
|
|
AROBJS = $(foreach file, $(^F), -+$(file))
|
|
AR_RULE = $(AR) $(ARFLAGS) "$(subst /,\,$(LIB_DIR)/$@)" $(AROBJS)
|
|
|
|
endif
|
|
|
|
include $(TOP)$(ROOT)config/rules.cf
|