summary refs log tree commit diff stats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/buildbat.tmpl19
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/buildbat.tmpl b/tools/buildbat.tmpl
new file mode 100755
index 000000000..2bb0766a2
--- /dev/null
+++ b/tools/buildbat.tmpl
@@ -0,0 +1,19 @@
+#! stdtmpl(subsChar='?') | standard
+#proc GenerateBuildBatchScript(c: TConfigData): string = 
+#  result = "@echo on\nREM Generated by niminst\n"
+SET CC=gcc
+SET LINKER=gcc
+SET COMP_FLAGS=-w -O3 -fno-strict-aliasing
+SET LINK_FLAGS=
+
+REM call the compiler:
+
+#  var linkCmd = ""
+#  for f in items(c.cfiles[1][1]):
+%CC% %COMP_FLAGS% -Ibuild -c ?{f} -o ?{changeFileExt(f, "o")}
+#    linkCmd.add(" " & changeFileExt(f, "o"))
+#  end for
+
+%LINKER% %LINK_FLAGS% -o ?{c.binPaths[0]}\?{toLower(c.name)}.exe ?linkCmd
+
+ECHO SUCCESS