diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2003-12-15 18:58:39 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2003-12-15 18:58:39 (GMT) |
commit | 4369f8dfd78c7d6666a604026017cfe6e4c9fbc4 (patch) | |
tree | 1cb1b44f09351116c7ebe409fef462341fac2ff3 /make.bat | |
parent | e25c1a6e6ea8548f91c3b18ed8337e8f8661e0e2 (diff) | |
download | Doxygen-4369f8dfd78c7d6666a604026017cfe6e4c9fbc4.zip Doxygen-4369f8dfd78c7d6666a604026017cfe6e4c9fbc4.tar.gz Doxygen-4369f8dfd78c7d6666a604026017cfe6e4c9fbc4.tar.bz2 |
Release-1.3.5-20031215
Diffstat (limited to 'make.bat')
-rw-r--r-- | make.bat | 120 |
1 files changed, 60 insertions, 60 deletions
@@ -1,60 +1,60 @@ -@echo off -REM make script for Microsoft Visual C++ -REM ...and MINGW and Borland 5.5 also! - -if "%1"=="bcc" SET CC=borland -if "%1"=="mingw" SET CC=mingw -if "%1"=="msvc" SET CC=msvc -if "%1"=="" goto USAGE - -if "%CC%"=="msvc" SET MAKE=nmake -if not "%CC%"=="msvc" SET MAKE=make - -SET MODE=release -if "%2"=="debug" SET MODE=debug - -REM use perl to create the config file -perl wintools\make.pl %CC% - -type makeconfig > Makefile -type Makefile.win_%MAKE%.in >>Makefile -type makeconfig > qtools\Makefile -type qtools\Makefile.in >>qtools\Makefile -type makeconfig > libpng\Makefile -type libpng\Makefile.in >>libpng\Makefile -type makeconfig > libmd5\Makefile -type libmd5\Makefile.in >>libmd5\Makefile -type makeconfig > src\Makefile -type src\Makefile.in >>src\Makefile -type makeconfig > examples\Makefile -type examples\Makefile.win.in >>examples\Makefile -type makeconfig > doc\Makefile -type doc\Makefile.win_%MAKE%.in >>doc\Makefile -type makeconfig > addon\doxywizard\Makefile -type addon\doxywizard\Makefile.win_%MAKE%.in >>addon\doxywizard\Makefile -type makeconfig > addon\doxmlparser\src\Makefile -type addon\doxmlparser\src\Makefile.in >>addon\doxmlparser\src\Makefile - -REM build in release or debug mode -REM sed is used to replace $extraopts by either debug or release while copying -sed "s/\$extraopts/%MODE%/g" qtools\qtools.pro.in >qtools\qtools.pro -sed "s/\$extraopts/%MODE%/g" libpng\libpng.pro.in >libpng\libpng.pro -sed "s/\$extraopts/%MODE%/g" libmd5\libmd5.pro.in >libmd5\libmd5.pro -sed "s/\$extraopts/%MODE%/g" src\libdoxygen.pro.in >src\libdoxygen.pro -sed "s/\$extraopts/%MODE%/g" src\libdoxycfg.pro.in >src\libdoxycfg.pro -sed "s/\$extraopts/%MODE%/g" src\doxygen.pro.in >src\doxygen.pro -sed "s/\$extraopts/%MODE%/g" src\doxytag.pro.in >src\doxytag.pro -sed "s/\$extraopts/%MODE%/g" addon\doxywizard\doxywizard.pro.in >addon\doxywizard\doxywizard.pro - -REM run make -%MAKE%.exe -goto END - -:USAGE -echo "Call with '%0 [bcc|mingw|msvc] [debug]'!" -echo " bcc: compile with Borland C++" -echo " mingw: compile with GCC for windows (see www.mingw.org)" -echo " msvc: compile with Microsoft Visual C++" - -:END - +@echo off
+REM make script for Microsoft Visual C++
+REM ...and MINGW and Borland 5.5 also!
+
+if "%1"=="bcc" SET CC=borland
+if "%1"=="mingw" SET CC=mingw
+if "%1"=="msvc" SET CC=msvc
+if "%1"=="" goto USAGE
+
+if "%CC%"=="msvc" SET MAKE=nmake
+if not "%CC%"=="msvc" SET MAKE=make
+
+SET MODE=release
+if "%2"=="debug" SET MODE=debug
+
+REM use perl to create the config file
+perl wintools\make.pl %CC%
+
+type makeconfig > Makefile
+type Makefile.win_%MAKE%.in >>Makefile
+type makeconfig > qtools\Makefile
+type qtools\Makefile.in >>qtools\Makefile
+type makeconfig > libpng\Makefile
+type libpng\Makefile.in >>libpng\Makefile
+type makeconfig > libmd5\Makefile
+type libmd5\Makefile.in >>libmd5\Makefile
+type makeconfig > src\Makefile
+type src\Makefile.in >>src\Makefile
+type makeconfig > examples\Makefile
+type examples\Makefile.win.in >>examples\Makefile
+type makeconfig > doc\Makefile
+type doc\Makefile.win_%MAKE%.in >>doc\Makefile
+type makeconfig > addon\doxywizard\Makefile
+type addon\doxywizard\Makefile.win_%MAKE%.in >>addon\doxywizard\Makefile
+type makeconfig > addon\doxmlparser\src\Makefile
+type addon\doxmlparser\src\Makefile.in >>addon\doxmlparser\src\Makefile
+
+REM build in release or debug mode
+REM sed is used to replace $extraopts by either debug or release while copying
+sed "s/\$extraopts/%MODE%/g" qtools\qtools.pro.in >qtools\qtools.pro
+sed "s/\$extraopts/%MODE%/g" libpng\libpng.pro.in >libpng\libpng.pro
+sed "s/\$extraopts/%MODE%/g" libmd5\libmd5.pro.in >libmd5\libmd5.pro
+sed "s/\$extraopts/%MODE%/g" src\libdoxygen.pro.in >src\libdoxygen.pro
+sed "s/\$extraopts/%MODE%/g" src\libdoxycfg.pro.in >src\libdoxycfg.pro
+sed "s/\$extraopts/%MODE%/g" src\doxygen.pro.in >src\doxygen.pro
+sed "s/\$extraopts/%MODE%/g" src\doxytag.pro.in >src\doxytag.pro
+sed "s/\$extraopts/%MODE%/g" addon\doxywizard\doxywizard.pro.in >addon\doxywizard\doxywizard.pro
+
+REM run make
+%MAKE%.exe
+goto END
+
+:USAGE
+echo "Call with '%0 [bcc|mingw|msvc] [debug]'!"
+echo " bcc: compile with Borland C++"
+echo " mingw: compile with GCC for windows (see www.mingw.org)"
+echo " msvc: compile with Microsoft Visual C++"
+
+:END
+
|