Jelajahi Sumber

* Run batch using COMSPEC for go32v2 and watcom

git-svn-id: trunk@8562 -
pierre 18 tahun lalu
induk
melakukan
3c096a9549
2 mengubah file dengan 198 tambahan dan 180 penghapusan
  1. 183 179
      utils/fpcm/fpcmake.inc
  2. 15 1
      utils/fpcm/fpcmake.ini

File diff ditekan karena terlalu besar
+ 183 - 179
utils/fpcm/fpcmake.inc


+ 15 - 1
utils/fpcm/fpcmake.ini

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

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini