Update of /cvsroot/monetdb/pathfinder/NT
In directory 
sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv28875/pathfinder/NT

Modified Files:
        Makefile 
Log Message:

Implemented build directory support for Windows,
i.e., like on Unix/Linux also on Windows we can now build in a separate
build directory as alternative to ...\<package>\NT, and thus keep the
latter clean from files generated during the build.

As net effect, this allows to have multiple builds (e.g., different
compilers and/or BITS/OIDS settings using only one source tree
checkout (but separate build and prefix directories for each build).

Caveat:
On Windows, the build directory must be a sibling of ...\<package>\NT .

In essence, instead of
        cd ...\<package>\NT
        nmake /nologo ...
we can now do
        mkdir ...\<package>\BUILD_DIR
        cd ...\<package>\BUILD_DIR
        nmake /nologo /f ..\NT\Makefile ...


Index: Makefile
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/NT/Makefile,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- Makefile    2 Feb 2010 15:27:22 -0000       1.27
+++ Makefile    24 Mar 2010 16:18:53 -0000      1.28
@@ -7,7 +7,7 @@
 
 prefix = $(MAKEDIR)
 
-!INCLUDE "$(TOPDIR)\rules.msc"
+!INCLUDE "$(TOPDIR)\..\NT\rules.msc"
 
 INSTALLER = MonetDB4-XQuery
 INSTALLER_PREREQ = "$(prefix)\banner.bmp" "$(prefix)\license.rtf" 
"$(prefix)\monetdb.ico"
@@ -28,22 +28,22 @@
 
 !IFDEF BITS32
 install-installer:
-       $(INSTALL) MonetDB4-XQuery\MonetDB4-XQuery-Installer.sln "$(prefix)"
-       $(INSTALL) MonetDB4-XQuery\MonetDB4-XQuery-Installer.vdproj "$(prefix)"
+       $(INSTALL) ..\NT\MonetDB4-XQuery\MonetDB4-XQuery-Installer.sln 
"$(prefix)"
+       $(INSTALL) ..\NT\MonetDB4-XQuery\MonetDB4-XQuery-Installer.vdproj 
"$(prefix)"
        -if exist "C:\Program Files (x86)" C:\cygwin\bin\sed.exe -i "s/Program 
Files/Program Files (x86)/" "$(prefix)\MonetDB4-XQuery-Installer.vdproj"
 !ENDIF
 !IFDEF BITS64
 install-installer:
-       $(INSTALL) MonetDB4-XQuery64\MonetDB4-XQuery-Installer.sln "$(prefix)"
-       $(INSTALL) MonetDB4-XQuery64\MonetDB4-XQuery-Installer.vdproj 
"$(prefix)"
+       $(INSTALL) ..\NT\MonetDB4-XQuery64\MonetDB4-XQuery-Installer.sln 
"$(prefix)"
+       $(INSTALL) ..\NT\MonetDB4-XQuery64\MonetDB4-XQuery-Installer.vdproj 
"$(prefix)"
 !ENDIF
 
 install: targetdirs pf_config.h all install-installer $(INSTALLER_PREREQ)
        $(MAKE) /nologo /f "$(SRCDIR)\Makefile.msc" "prefix=$(prefix)" 
"bits=$(bits)" install
-       if not "$(MAKEDIR)" == "$(prefix)" $(INSTALL) MXQserver.bat "$(prefix)"
-       if not "$(MAKEDIR)" == "$(prefix)" $(INSTALL) pf.bat "$(prefix)"
-       $(INSTALL) $(INSTALLER)\$(INSTALLER)$(IBITS).sln "$(prefix)"
-       $(INSTALL) $(INSTALLER)\$(INSTALLER)$(IBITS).vdproj "$(prefix)"
+       if not "$(MAKEDIR)" == "$(prefix)" $(INSTALL) ..\NT\MXQserver.bat 
"$(prefix)"
+       if not "$(MAKEDIR)" == "$(prefix)" $(INSTALL) ..\NT\pf.bat "$(prefix)"
+       $(INSTALL) ..\NT\$(INSTALLER)\$(INSTALLER)$(IBITS).sln "$(prefix)"
+       $(INSTALL) ..\NT\$(INSTALLER)\$(INSTALLER)$(IBITS).vdproj "$(prefix)"
        -devenv "$(prefix)\$(INSTALLER)$(IBITS).sln" /build
        if exist "$(prefix)\$(INSTALLER)$(IBITS).msi" del /f 
"$(prefix)\$(INSTALLER)$(IBITS).msi"
        if exist "$(prefix)\Debug\$(INSTALLER)$(IBITS).msi" $(INSTALL) /Y 
"$(prefix)"\Debug\$(INSTALLER)$(IBITS).msi "$(prefix)"
@@ -61,8 +61,8 @@
 
 all-msc: pf_config.h 
 
-pf_config.h: pf_config.h.in
-       $(CONFIGURE) pf_config.h.in > pf_config.h
+pf_config.h: ..\NT\pf_config.h.in
+       $(CONFIGURE) ..\NT\pf_config.h.in > pf_config.h
 
 unistd.h:
        $(ECHO) #ifndef UNISTD_H > unistd.h


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to