* config/rules.cf
* config/win/global.cf
* config/lib.cf
* config/bin.cf
* Make files changed to:
- add Harbour option -n1 for all lib .prgs.
- add Harbour option -n for all binary .prgs.
- use HB_GCMODE to override -gc mode for binaries.
- add C -DHB_DYNLIB option when HB_DLL envvar is set to 'yes'.
; This means that now 'set HB_DLL=yes' setting works as planned,
and will compile Harbour to allow the creation of .dlls
and will also create those (msvc, bcc32, owatcom).
(MinGW has been covered before these changes already.)
; TOFIX: .dlls still need tweaking to work properly.
owatcom doesn't create usable binaries when
using HB_DLL=yes f.e., also hbrun-dll cannot be
built with msvc/bcc32.
* config/win/owatcom.cf
% Removed DOS hack.
* bin/hb-mkdyn.bat
! Fixes to recent changes.
50 lines
793 B
CFEngine3
50 lines
793 B
CFEngine3
#
|
|
# $Id$
|
|
#
|
|
|
|
ifneq ($(HB_ARCHITECTURE),)
|
|
ifneq ($(HB_COMPILER),)
|
|
|
|
include $(TOP)$(ROOT)config/global.cf
|
|
include $(TOP)$(ROOT)config/c.cf
|
|
include $(TOP)$(ROOT)config/prg.cf
|
|
|
|
HB_GCMODE=0
|
|
HB_NFLAG=-n
|
|
|
|
EXE_NAME=
|
|
|
|
ifneq ($(C_MAIN),)
|
|
ifeq ($(EXE_NAME),)
|
|
EXE_NAME = $(C_MAIN:.c=$(EXE_EXT))
|
|
endif
|
|
endif
|
|
|
|
ifneq ($(PRG_MAIN),)
|
|
ifeq ($(EXE_NAME),)
|
|
EXE_NAME = $(PRG_MAIN:.prg=$(EXE_EXT))
|
|
endif
|
|
endif
|
|
|
|
EXE_ARCH = $(ARCH_DIR)/$(EXE_NAME)
|
|
LIB_DIR = $(TOP)$(ROOT)lib/$(ARCH_DIR)
|
|
|
|
ALL_OBJS = $(ALL_C_OBJS) $(ALL_PRG_OBJS)
|
|
|
|
first:: dirbase descend
|
|
|
|
descend:: dirbase
|
|
+@$(MK) -C $(ARCH_DIR) -f $(GRANDP)Makefile TOP=$(GRANDP) $(EXE_NAME) $(HB_USER_MAKEFLAGS)
|
|
|
|
$(EXE_NAME) : $(ALL_OBJS)
|
|
$(LD_RULE)
|
|
|
|
|
|
INSTALL_OBJS = $(EXE_ARCH)
|
|
INSTALL_DIR = $(HB_BIN_INSTALL)
|
|
|
|
include $(TOP)$(ROOT)config/install.cf
|
|
|
|
endif
|
|
endif
|