Files
harbour-core/harbour/config/win/bcc.cf
Viktor Szakats 27f7edb625 2009-03-31 11:46 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* INSTALL
    * Moved Windows CE compilers into a separate section.

  * bin/hb-mkdyn.bat
    * Changes made to allow wce arch. (provision for wce arch)

  * mpkg_win.bat
    * Allows to override HB_ARCHITECTURE. (provision for wce arch)
    + Include arch in target directory. (provision for wce arch)

  * include/hbatomic.h
    - Turned off inline asm for _MSC_VER compilers in 64-bit mode. (pocc64, msvc64)
      These target don't support inline asm.
      This fixes previously reported regressions with these targets.

  * utils/hbmk2/hbmk2.prg
    % win/owatcom: Pentium Pro scheduling.
    * win/owatcom: Temply set back stack calling convention.

  * external/libhpdf/Makefile
    - Disabled for pocc64 due to errors, even internal compiler error:
      ---
      can't spill register variable: rcx (3) image
      ../../hpdf_image.c(480): fatal error: Internal error: best_spillee.
      ---

  * config/win/bcc.cf
    + Added comment about -4, -5, -6.

  * ChangeLog
    ! Minor fix to prev entry.
2009-03-31 09:58:43 +00:00

115 lines
2.5 KiB
CFEngine3

#
# $Id$
#
# The Harbour Project
# GNU MAKE file for Borland/CodeGear C/C++ 32-bit (4.x-)
include $(TOP)$(ROOT)config/$(HB_ARCHITECTURE)/global.cf
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_DEBUG),yes)
CFLAGS += -y -v
endif
LD = bcc32.exe
LDFLAGS = -O2
LD_OUT = -e
# Add all libraries specified in CONTRIBS and LIBS.
ifeq ($(HB_LIB_COMPILE),)
LINKPATHS += -L$(LIB_DIR)
else
LINKPATHS += -L$(HB_LIB_COMPILE)
endif
LIBLIST = $(foreach lib, $(CONTRIBS), $(lib)$(LIB_EXT))
LIBLIST += $(foreach lib, $(LIBS), $(lib)$(LIB_EXT))
# If LIBS specifies the rdd library, add all DB drivers.
ifeq ($(findstring rdd,$(LIBS)),rdd)
LIBLIST += $(foreach drv, $(HB_DB_DRIVERS), $(drv)$(LIB_EXT))
endif
# Add the specified GT driver library
ifeq ($(findstring rtl,$(LIBS)),rtl)
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
ifeq ($(HB_LIB_COMPILE),)
LINKLIBS += $(foreach lib, $(LIBLIST), $(LIB_DIR)/$(lib))
else
LINKLIBS += $(foreach lib, $(LIBLIST), $(HB_LIB_COMPILE)/$(lib))
endif
# HB_SCREEN_LIB: empty, or one of ncurses, slang
# HB_SCREEN_LIB=ncurses
# HB_SCREEN_LIB=slang
ifneq ($(HB_SCREEN_LIB),)
LINKLIBS += $(HB_SCREEN_LIB)
endif
# Add the optional user path(s)
ifneq ($(LNK_USR_PATH),)
LINKPATHS += $(foreach path, $(LNK_USR_PATH), -L$(path))
endif
# Add the optional user libarary (or libraries)
ifneq ($(LNK_USR_LIB),)
LINKLIBS += $(foreach lib, $(LNK_USR_LIB), $(lib)$(LIB_EXT))
endif
LDFLAGS = $(LINKPATHS)
# create library rules
AR = tlib.exe
ARFLAGS = /P64 $(HB_USER_AFLAGS)
ifneq ($(SHLVL),) # shell
AROBJS = $(foreach file, $(^F), -+$(file))
AR_RULE = $(AR) $(ARFLAGS) "$(subst /,\,$(LIB_DIR)/$@)" $(AROBJS)
else
#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) $(subst /,\,$(LIB_DIR)/$@) $(ARFLAGS) @__lib__.tmp
endef
AR_RULE = $(create_library)
endif
include $(TOP)$(ROOT)config/rules.cf