summaryrefslogtreecommitdiffstats
path: root/make.bat
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-12-17 15:15:12 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-12-17 15:15:12 (GMT)
commit6505abff80c988faf734b2e4c31cd2a94c2c10b5 (patch)
tree8face58cec7cf3e5e23acec30b6af55f5bed931c /make.bat
parentfe67b8eb68129713327965c201f2d7226b83202f (diff)
downloadDoxygen-6505abff80c988faf734b2e4c31cd2a94c2c10b5.zip
Doxygen-6505abff80c988faf734b2e4c31cd2a94c2c10b5.tar.gz
Doxygen-6505abff80c988faf734b2e4c31cd2a94c2c10b5.tar.bz2
Release-1.2.3-20001217
Diffstat (limited to 'make.bat')
-rw-r--r--make.bat52
1 files changed, 40 insertions, 12 deletions
diff --git a/make.bat b/make.bat
index cbb2273..880d8d5 100644
--- a/make.bat
+++ b/make.bat
@@ -1,19 +1,47 @@
+@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
+perl wintools\make.pl %CC%
-type makeconfig Makefile.win.in >Makefile
-type makeconfig qtools\Makefile.in >qtools\Makefile
-type makeconfig src\Makefile.in >src\Makefile
-type makeconfig examples\Makefile.win.in >examples\Makefile
-type makeconfig doc\Makefile.win.in >doc\Makefile
+type makeconfig > Makefile
+type Makefile.win_%MAKE%.in >>Makefile
+type makeconfig > qtools\Makefile
+type qtools\Makefile.in >>qtools\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
-REM build in release mode (replace release with debug to add debug info)
-type qtools\qtools.pro.in | sed "s/\$extraopts/release/g" >qtools\qtools.pro
-type src\doxygen.pro.in | sed "s/\$extraopts/release/g" >src\doxygen.pro
-type src\doxytag.pro.in | sed "s/\$extraopts/release/g" >src\doxytag.pro
-type src\doxysearch.pro.in | sed "s/\$extraopts/release/g" >src\doxysearch.pro
+REM build in release or debug mode
+type qtools\qtools.pro.in | sed "s/\$extraopts/%MODE%/g" >qtools\qtools.pro
+type src\doxygen.pro.in | sed "s/\$extraopts/%MODE%/g" >src\doxygen.pro
+type src\doxytag.pro.in | sed "s/\$extraopts/%MODE%/g" >src\doxytag.pro
+type src\doxysearch.pro.in | sed "s/\$extraopts/%MODE%/g" >src\doxysearch.pro
REM run make
-nmake
+%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
+