go.bat
2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
@echo off
rem HEADER******************************************************************
rem ************************************************************************
rem ***
rem *** Copyright (c) 1989-2002 ARC International.
rem *** All rights reserved
rem ***
rem *** This software embodies materials and concepts which are
rem *** confidential to ARC International and is made
rem *** available solely pursuant to the terms of a written license
rem *** agreement with ARC International
rem ***
rem *** $Workfile: go.bat$
rem *** $Revision: 1.1 $
rem *** $Date: 2003/02/17 20:49:00 $
rem ***
rem *** Description:
rem *** This file contains the command lines required to build the
rem *** USB 1.1 otg demo example.
rem ************************************************************************
rem *END********************************************************************
if not exist aa3.met mkdir aa3.met
cd aa3.met
echo -arc8 -g -O -c -D__USB_OTG__ -DHOSTLINK_IO > demo.cmd
echo -I ..\ >> demo.cmd
echo -I ..\..\..\..\lib\otg\aa3.met >> demo.cmd
echo -I %usb_compiler_root%\inc >> demo.cmd
echo hcarc ..\demo.c > errors
if exist demo.o del demo.o
@echo on
hcarc ..\demo.c @demo.cmd >> errors
@echo off
echo demo.o > demo.lfn
echo hcarc ..\demo_d.c >> errors
if exist demo_d.o del demo_d.o
@echo on
hcarc ..\demo_d.c @demo.cmd >> errors
@echo off
echo demo_d.o >> demo.lfn
echo hcarc ..\demo_h.c >> errors
if exist demo_h.o del demo_h.o
@echo on
hcarc ..\demo_h.c @demo.cmd >> errors
@echo off
echo demo_h.o >> demo.lfn
echo hcarc ..\devreqst.c >> errors
if exist devreqst.o del devreqst.o
@echo on
hcarc ..\devreqst.c @demo.cmd >> errors
@echo off
echo devreqst.o >> demo.lfn
echo ..\..\..\..\lib\otg\aa3.met\usbotg.a >> demo.lfn
echo %usb_compiler_root%\lib\le\libct.a >> demo.lfn
if exist demo.out del demo.out
@echo on
hcarc -m -Bgrouplib -Hheap=0x70000 -Hstack=0x20000 -Bbase=0x100 @demo.lfn -o demo.out > demo.map
@echo off
del demo.cmd
del demo.lfn
cd ..\