aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/build.bat
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2004-12-20 05:06:19 +0000
committerThomas Grill <xovo@users.sourceforge.net>2004-12-20 05:06:19 +0000
commit6dacabe813f4ccab33669b5dd3e3b5f61be500af (patch)
tree81abcc117357483b0a0dc0a1a7ba5b118964775f /externals/grill/flext/build.bat
parent5370cdab3db6ddfa60fef41ca22756284fa700dd (diff)
simplified make system
updated make system for BCC updated make system updated build system svn path=/trunk/; revision=2416
Diffstat (limited to 'externals/grill/flext/build.bat')
-rw-r--r--externals/grill/flext/build.bat41
1 files changed, 41 insertions, 0 deletions
diff --git a/externals/grill/flext/build.bat b/externals/grill/flext/build.bat
new file mode 100644
index 00000000..93b03ed4
--- /dev/null
+++ b/externals/grill/flext/build.bat
@@ -0,0 +1,41 @@
+@set flext=%~dp0
+
+@rem Arguments:
+@rem %1 - platform (win/lnx/mac)
+@rem %2 - system (pd/max)
+@rem %3 - compiler (msvc/gcc/mingw/cygwin/bcc/icc)
+@rem %4 - target (all/all-debug/all-shared/all-shared-debug/clean/install)
+
+@set platform=%1
+@set rtsys=%2
+@set compiler=%3
+@set target=%4
+
+@rem --- The subbatch knowns which make utility to use ---
+@set subbatch=%flext%buildsys\build-%compiler%.bat
+
+@if "%platform%"=="" goto syntax
+@if "%rtsys%"=="" goto syntax
+@if "%compiler%"=="" goto syntax
+
+@if not exist %subbatch% goto syntax
+
+@call %subpatch% %subbatch% %platform% %rtsys% %target% %5 %6 %7 %8 %9
+
+@goto end
+
+@rem -----------------------------------------
+:syntax
+
+@echo .
+@echo SYNTAX: build [platform] [system] [compiler] {target}
+@echo platform ... win / lnx / mac
+@echo system ... pd / max
+@echo compiler ... msvc / gcc / mingw / cygwin / bcc / icc
+@echo target ... all (default) / all-debug / all-shared / all-shared-debug /
+@echo clean / install
+@echo .
+@echo Please make sure that your make program and compiler can be accessed with the
+@echo system path and that all relevant environment variables are properly set.
+
+:end