diff options
author | Andreas Rumpf <andreas@andreas-desktop> | 2010-08-08 23:50:06 +0200 |
---|---|---|
committer | Andreas Rumpf <andreas@andreas-desktop> | 2010-08-08 23:50:06 +0200 |
commit | 040c57f0a566b257ab7fcca4c6557be4b3c76f24 (patch) | |
tree | a5fa842ab305997a8a00b74b17c894c47efe6081 /tools | |
parent | 25ff3913ec98af6aa920e94e15df88eb4021e224 (diff) | |
download | Nim-040c57f0a566b257ab7fcca4c6557be4b3c76f24.tar.gz |
added missing files
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/buildbat.tmpl | 19 |
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 |