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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user