summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2010-01-07 10:53:36 +0000
committerRobin Watts <robin.watts@artifex.com>2010-01-07 10:53:36 +0000
commita4e3c0888481263968f48b63d8dfe30acf5ff462 (patch)
tree756d81dd83ea1ca7bf64c4a064fffac4993d839b /main
parent5b40130739a5927ece1b3d74b3f28306b79a0253 (diff)
Changes to the MSVC makefiles to prepare for the prototype vs2005 solution
file. Firstly, we introduce an SBR symbol; if this is set when invoking the makefile, we add a new flag to the C compiler (held in SBRFLAGS) to cause the generation of the browse data for each source file. Next, we introduce a new bsc build target to combine those .sbr files into appropriate .bsc ones. The final change is enable debug builds to put their builds into debugobj rather than obj directories. With luck, this should cause no differences for anyone other than me. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10592 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'main')
-rw-r--r--main/pcl6_msvc.mak17
1 files changed, 17 insertions, 0 deletions
diff --git a/main/pcl6_msvc.mak b/main/pcl6_msvc.mak
index d8b67aae7..7445f7a99 100644
--- a/main/pcl6_msvc.mak
+++ b/main/pcl6_msvc.mak
@@ -6,8 +6,12 @@ MAKEFILE=$(MAKEFILE) ..\main\pcl6_msvc.mak
# The build process will put all of its output in this directory:
!ifndef GENDIR
+!if "$(DEBUG)"=="1"
+GENDIR=.\debugobj
+!else
GENDIR=.\obj
!endif
+!endif
# The sources are taken from these directories:
!ifndef GLSRCDIR
@@ -129,6 +133,10 @@ XPSGENDIR=$(GENDIR)
XPSOBJDIR=$(GENDIR)
!endif
+!ifndef SBRDIR
+SBRDIR=$(GENDIR)
+!endif
+
# Executable path\name w/o the .EXE extension
!ifndef TARGET_XE
TARGET_XE=$(GENDIR)\pcl6
@@ -209,6 +217,9 @@ XCFLAGS=$(XCFLAGS) $(PDL_INCLUDE_FLAGS)
TOP_OBJ=$(PCL_TOP_OBJ) $(PXL_TOP_OBJ) $(PSI_TOP_OBJ) $(XPS_TOP_OBJ)
!endif
+!ifdef SBR
+SBRFLAGS="/FR$(SBRDIR)\ "
+!endif
# Pick a font system technology. PCL and XL do not need to use the
# same scaler, but it is necessary to tinker with pl.mak to get it
@@ -392,3 +403,9 @@ $(PLOBJDIR)\dwreg.obj: $(GLSRC)dwreg.c $(AK) $(dwreg_h)
$(PLCCC_W) $(GLO_)dwreg.obj $(C_) $(GLSRC)dwreg.c
+!ifndef BSCFILE
+BSCFILE=$(GENDIR)\pcl.bsc
+!endif
+
+bsc:
+ bscmake /o $(BSCFILE) /v $(GENDIR)\*.sbr