go_host.bat
3.75 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
@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_host.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 Host API application.
rem ************************************************************************
rem *END********************************************************************
if not exist ..\lib\host\aa3.met mkdir ..\lib\host\aa3.met
cd ..\lib\host\aa3.met
echo -arc8 -g -O -c -D__USB_HOST__ -D__VUSB32_BDT_HACK__ > host_lib.cmd
echo -I ..\..\..\source\include >> host_lib.cmd
echo -I ..\..\..\source\host\include >> host_lib.cmd
echo -I ..\..\..\source\host\vusbh32 >> host_lib.cmd
echo -I %usb_compiler_root%\inc >> host_lib.cmd
echo hcarc ..\..\..\source\host\host_mnd.c > errors
if exist host_mnd.o del host_mnd.o
@echo on
hcarc ..\..\..\source\host\host_mnd.c @host_lib.cmd >> errors
@echo off
echo host_mnd.o > host_lib.cfn
echo hcarc ..\..\..\source\host\host_shu.c >> errors
if exist host_shu.o del host_shu.o
@echo on
hcarc ..\..\..\source\host\host_shu.c @host_lib.cmd >> errors
@echo off
echo host_shu.o >> host_lib.cfn
echo hcarc ..\..\..\source\host\host_cnl.c >> errors
if exist host_cnl.o del host_cnl.o
@echo on
hcarc ..\..\..\source\host\host_cnl.c @host_lib.cmd >> errors
@echo off
echo host_cnl.o >> host_lib.cfn
echo hcarc ..\..\..\source\host\host_snd.c >> errors
if exist host_snd.o del host_snd.o
@echo on
hcarc ..\..\..\source\host\host_snd.c @host_lib.cmd >> errors
@echo off
echo host_snd.o >> host_lib.cfn
echo hcarc ..\..\..\source\host\host_rcv.c >> errors
if exist host_rcv.o del host_rcv.o
@echo on
hcarc ..\..\..\source\host\host_rcv.c @host_lib.cmd >> errors
@echo off
echo host_rcv.o >> host_lib.cfn
echo hcarc ..\..\..\source\host\host_din.c >> errors
if exist host_din.o del host_din.o
@echo on
hcarc ..\..\..\source\host\host_din.c @host_lib.cmd >> errors
@echo off
echo host_din.o >> host_lib.cfn
echo hcarc ..\..\..\source\host\host_unr.c >> errors
if exist host_unr.o del host_unr.o
@echo on
hcarc ..\..\..\source\host\host_unr.c @host_lib.cmd >> errors
@echo off
echo host_unr.o >> host_lib.cfn
echo hcarc ..\..\..\source\host\vusbh32\vusbh11ma.c >> errors
if exist vusbd11ma.o del vusbd11ma.o
@echo on
hcarc ..\..\..\source\host\vusbh32\vusbh11ma.c @host_lib.cmd >> errors
@echo off
echo vusbh11ma.o >> host_lib.cfn
echo hcarc ..\..\..\source\host\vusbh32\vusbh11sh.c >> errors
if exist vusbd11sh.o del vusbd11sh.o
@echo on
hcarc ..\..\..\source\host\vusbh32\vusbh11sh.c @host_lib.cmd >> errors
@echo off
echo vusbh11sh.o >> host_lib.cfn
echo hcarc ..\..\..\source\arc.c >> errors
if exist arc.o del arc.o
@echo on
hcarc ..\..\..\source\arc.c @host_lib.cmd >> errors
@echo off
echo arc.o >> host_lib.cfn
if exist usbhost.a del usbhost.a
@echo on
ararc -rvs usbhost.a @host_lib.cfn
ararc -t usbhost.a > usbhost.lst
@echo off
del host_lib.cmd
del host_lib.cfn
copy ..\..\..\source\include\types.h
copy ..\..\..\source\include\arc.h
copy ..\..\..\source\include\usb.h
copy ..\..\..\source\host\include\hostapi.h
cd ..\..\..\build