2009-08-18 23:32 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/config/win/bcc.mk
    * eliminated IF EXIST command and updated to work with non NT shells.
      Now only OS2 gcc.mk and watcom.mk uses directly IF & FOR shell
      commands.
This commit is contained in:
Przemyslaw Czerpak
2009-08-18 21:32:51 +00:00
parent 7681ac96e8
commit 2e24252ab6
2 changed files with 14 additions and 2 deletions

View File

@@ -17,6 +17,12 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-08-18 23:32 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/config/win/bcc.mk
* eliminated IF EXIST command and updated to work with non NT shells.
Now only OS2 gcc.mk and watcom.mk uses directly IF & FOR shell
commands.
2009-08-18 22:56 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.mk
* config/globsh.mk

View File

@@ -52,18 +52,24 @@ ARFLAGS := /P64
ifneq ($(HB_SHELL),sh)
ifeq ($(HB_SHELL),nt)
LINECONT := ^&
else
LINECONT := &
endif
# NOTE: Command-line limit length defeating methods found below
# are only needed to support pre-Windows XP systems, where
# limit is 2047 chars. [vszakats]
# NOTE: The empty line directly before 'endef' HAVE TO exist!
define lib_object
@$(ECHO) -+$(subst /,\,$(file)) ^& >> __lib__.tmp
@$(ECHO) $(ECHOQUOTE)-+$(subst /,\,$(file)) $(LINECONT)$(ECHOQUOTE) >> __lib__.tmp
endef
define create_library
@if exist __lib__.tmp del __lib__.tmp
@$(ECHO) $(ECHOQUOTE)-+ $(LINECONT)$(ECHOQUOTE) > __lib__.tmp
$(foreach file,$(^F),$(lib_object))
@$(ECHO) -+>> __lib__.tmp
$(AR) $(ARFLAGS) $(HB_USER_AFLAGS) "$(subst /,\,$(LIB_DIR)/$@)" @__lib__.tmp