go_dev.bat 4.41 KB
@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_dev.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 Device API library.
rem ************************************************************************
rem *END********************************************************************
if not exist ..\lib\device\aa3.met mkdir ..\lib\device\aa3.met
cd ..\lib\device\aa3.met

echo -arc8 -g -O -c -D__USB_DEVICE__ > dev_lib.cmd
echo -I ..\..\..\source\include >> dev_lib.cmd
echo -I ..\..\..\source\device\include >> dev_lib.cmd
echo -I ..\..\..\source\device\vusbd32 >> dev_lib.cmd
echo -I %usb_compiler_root%\inc >> dev_lib.cmd

echo hcarc ..\..\..\source\device\dev_mand.c > errors
if exist dev_mand.o del dev_mand.o
@echo on
hcarc ..\..\..\source\device\dev_mand.c @dev_lib.cmd >> errors
@echo off
echo dev_mand.o > dev_lib.cfn

echo hcarc ..\..\..\source\device\dev_shut.c >> errors
if exist dev_shut.o del dev_shut.o
@echo on
hcarc ..\..\..\source\device\dev_shut.c @dev_lib.cmd >> errors
@echo off
echo dev_shut.o >> dev_lib.cfn

echo hcarc ..\..\..\source\device\dev_unrg.c >> errors
if exist dev_unrg.o del dev_unrg.o
@echo on
hcarc ..\..\..\source\device\dev_unrg.c @dev_lib.cmd >> errors
@echo off
echo dev_unrg.o >> dev_lib.cfn

echo hcarc ..\..\..\source\device\dev_snd.c >> errors
if exist dev_snd.o del dev_snd.o
@echo on
hcarc ..\..\..\source\device\dev_snd.c @dev_lib.cmd >> errors
@echo off
echo dev_snd.o >> dev_lib.cfn

echo hcarc ..\..\..\source\device\dev_sts.c >> errors
if exist dev_sts.o del dev_sts.o
@echo on
hcarc ..\..\..\source\device\dev_sts.c @dev_lib.cmd >> errors
@echo off
echo dev_sts.o >> dev_lib.cfn

echo hcarc ..\..\..\source\device\dev_dini.c >> errors
if exist dev_dini.o del dev_dini.o
@echo on
hcarc ..\..\..\source\device\dev_dini.c @dev_lib.cmd >> errors
@echo off
echo dev_dini.o >> dev_lib.cfn

echo hcarc ..\..\..\source\device\dev_cncl.c >> errors
if exist dev_cncl.o del dev_cncl.o
@echo on
hcarc ..\..\..\source\device\dev_cncl.c @dev_lib.cmd >> errors
@echo off
echo dev_cncl.o >> dev_lib.cfn

echo hcarc ..\..\..\source\device\vusbd32\vusbd11ma.c >> errors
if exist vusbd11ma.o del vusbd11ma.o
@echo on
hcarc ..\..\..\source\device\vusbd32\vusbd11ma.c @dev_lib.cmd >> errors
@echo off
echo vusbd11ma.o >> dev_lib.cfn

echo hcarc ..\..\..\source\device\vusbd32\vusbd11sh.c >> errors
if exist vusbd11sh.o del vusbd11sh.o
@echo on
hcarc ..\..\..\source\device\vusbd32\vusbd11sh.c @dev_lib.cmd >> errors
@echo off
echo vusbd11sh.o >> dev_lib.cfn

echo hcarc ..\..\..\source\device\vusbd32\vusbd11un.c >> errors
if exist vusbd11un.o del vusbd11un.o
@echo on
hcarc ..\..\..\source\device\vusbd32\vusbd11un.c @dev_lib.cmd >> errors
@echo off
echo vusbd11un.o >> dev_lib.cfn

echo hcarc ..\..\..\source\device\vusbd32\vusbd11st.c >> errors
if exist vusbd11st.o del vusbd11st.o
@echo on
hcarc ..\..\..\source\device\vusbd32\vusbd11st.c @dev_lib.cmd >> errors
@echo off
echo vusbd11st.o >> dev_lib.cfn

echo hcarc ..\..\..\source\device\vusbd32\vusbd11di.c >> errors
if exist vusbd11di.o del vusbd11di.o
@echo on
hcarc ..\..\..\source\device\vusbd32\vusbd11di.c @dev_lib.cmd >> errors
@echo off
echo vusbd11di.o >> dev_lib.cfn

echo hcarc ..\..\..\source\arc.c >> errors
if exist arc.o del arc.o
@echo on
hcarc ..\..\..\source\arc.c @dev_lib.cmd >> errors
@echo off
echo arc.o >> dev_lib.cfn

if exist usbdev.a del usbdev.a

@echo on
ararc -ruv usbdev.a @dev_lib.cfn
ararc -t usbdev.a > usbdev.lst
@echo off

del dev_lib.cmd
del dev_lib.cfn

copy ..\..\..\source\include\types.h
copy ..\..\..\source\include\arc.h
copy ..\..\..\source\include\usb.h
copy ..\..\..\source\device\include\devapi.h

cd ..\..\..\build