source: anotherchoice/tags/jsp-1.4.4-full-UTF8/tools/C5402DSK/configure.vbs@ 26

Last change on this file since 26 was 26, checked in by ykominami, 12 years ago

initial

File size: 1.1 KB
Line 
1Dim fs
2Dim InFile, OutFile
3Dim str
4Dim cmd
5Dim Ws
6Dim ccs
7
8Const ForReading = 1, ForWriting = 2, ForAppending = 3
9
10msgbox "TOPPERS/JSP をビルドするのに必
11要なファイルを作成します."
12
13Set fs = CreateObject("Scripting.FileSystemObject")
14fs.copyfile "..\..\sample\sample1.c", ".\"
15fs.copyfile "..\..\sample\sample1.h", ".\"
16
17Set InFile = fs.OpenTextFile("..\..\sample\sample1.cfg", ForReading, False)
18
19Set OutFile = fs.OpenTextFile(".\sample1.cfg", ForWriting, True)
20
21While not InFile.AtEndOfStream
22 str = InFile.ReadLine
23 str = Replace(str,"@(SRCDIR)", "../../")
24 OutFile.WriteLine str
25Wend
26
27InFile.Close
28OutFile.Close
29
30set Ws = WScript.CreateObject("WScript.Shell")
31path = "c:\ti\c5400\cgtools\"
32cmd = """" + path + "bin\ar500.exe"" -x """ + path + "lib\rts.src"" ldiv.asm udiv.asm lmpy.asm"
33Ws.run cmd, 0, true
34
35cmd = "cl /E /D_MACRO_ONLY /EP /I ""../../kernel"" /I ""../../include"" /I ""../../config/tms320c54x"" /I ""../../config/tms320c54x/c5402dsk"" sample1.cfg > sample1_i.cfg"
36Ws.run "cmd /c" & cmd, 0, true
37
38cmd = "..\..\cfg\cfg.exe -s sample1_i.cfg -c -v -lj -obj --ZERO ""x y[1]"""
39Ws.run cmd, 0, true
40
41msgbox "正常に終了しました"
42
Note: See TracBrowser for help on using the repository browser.