added missing files

This commit is contained in:
Andreas Rumpf 2010-08-08 23:50:06 +02:00
commit 040c57f0a5
4 changed files with 190 additions and 0 deletions

19
tools/buildbat.tmpl Executable file
View file

@ -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