Explorar el Código

* Run batch using COMSPEC for go32v2 and watcom

git-svn-id: trunk@8562 -
pierre hace 18 años
padre
commit
3c096a9549
Se han modificado 2 ficheros con 198 adiciones y 180 borrados
  1. 183 179
      utils/fpcm/fpcmake.inc
  2. 15 1
      utils/fpcm/fpcmake.ini

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 183 - 179
utils/fpcm/fpcmake.inc


+ 15 - 1
utils/fpcm/fpcmake.ini

@@ -11,6 +11,7 @@
 BSDs = freebsd netbsd openbsd darwin
 BSDs = freebsd netbsd openbsd darwin
 UNIXs = linux $(BSDs) solaris qnx
 UNIXs = linux $(BSDs) solaris qnx
 LIMIT83fs = go32v2 os2 emx watcom
 LIMIT83fs = go32v2 os2 emx watcom
+OSNeedsComspecToRunBatch = go32v2 watcom
 
 
 #Empty target for rules that always should run. Needed if
 #Empty target for rules that always should run. Needed if
 #the target is non-phoney, and there is non-phony prereqisites.
 #the target is non-phoney, and there is non-phony prereqisites.
@@ -94,6 +95,12 @@ SRCBATCHEXT=.bat
 endif
 endif
 endif
 endif
 
 
+ifdef COMSPEC
+ifneq ($(findstring $(OS_SOURCE),$(OSNeedsComspecToRunBatch)),)
+RUNBATCH=$(COMSPEC) /C
+endif
+endif
+
 # Path Separator, the subst trick is necessary for the \ that can't exists
 # Path Separator, the subst trick is necessary for the \ that can't exists
 # at the end of a line
 # at the end of a line
 ifdef inUnix
 ifdef inUnix
@@ -1262,7 +1269,7 @@ endif
 
 
 ifndef CROSSBOOTSTRAP
 ifndef CROSSBOOTSTRAP
 ifneq ($(BINUTILSPREFIX),)
 ifneq ($(BINUTILSPREFIX),)
-override FPCOPT+=-XP$(BINUTILSPREFIX) 
+override FPCOPT+=-XP$(BINUTILSPREFIX)
 endif
 endif
 ifneq ($(BINUTILSPREFIX),)
 ifneq ($(BINUTILSPREFIX),)
 override FPCOPT+=-Xr$(RLINKPATH)
 override FPCOPT+=-Xr$(RLINKPATH)
@@ -1455,9 +1462,13 @@ ifeq (,$(findstring -s ,$(COMPILER)))
 EXECPPAS=
 EXECPPAS=
 else
 else
 ifeq ($(FULL_SOURCE),$(FULL_TARGET))
 ifeq ($(FULL_SOURCE),$(FULL_TARGET))
+ifdef RUNBATCH
+EXECPPAS:=@$(RUNBATCH) $(PPAS)
+else
 EXECPPAS:=@$(PPAS)
 EXECPPAS:=@$(PPAS)
 endif
 endif
 endif
 endif
+endif
 
 
 
 
 [loaderrules]
 [loaderrules]
@@ -1885,6 +1896,9 @@ else
 endif
 endif
 ifdef inUnix
 ifdef inUnix
         /bin/sh $(ZIPWRAPPER)
         /bin/sh $(ZIPWRAPPER)
+else
+ifdef RUNBATCH
+        $(RUNBATCH) (ZIPWRAPPER)
 else
 else
         $(ZIPWRAPPER)
         $(ZIPWRAPPER)
 endif
 endif

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio