

@echo ### Copying files to local build directory

@if exist .\rtwtypes.h del /Q /F .\rtwtypes.h > NUL
@if exist .\RTW rmdir /Q /S .\RTW > NUL
@mkdir .\RTW > NUL



	@if exist .\ControlCoreClassic rmdir /Q /S .\ControlCoreClassic > NUL
	@mkdir .\ControlCoreClassic > NUL
	@mkdir .\ControlCoreClassic\API > NUL


	@xcopy "C:\Documents and Settings\All Users\MotoHawk\2009b_beta4\Toolchains\7.8\rtw_lib_single\API" .\RTW /E /I /Y > NUL
	@xcopy "C:\Documents and Settings\All Users\MotoHawk\2009b_beta4\Toolchains\7.8\rtw_lib_single\API\MPC555" .\RTW /E /I /Y > NUL
	@xcopy C:\PROGRA~1\Woodward\MotoHawk\\PPCLib\ControlCoreClassic\Framework\MultiTask\API .\ControlCoreClassic\API\Framework /E /I /Y > NUL
	@xcopy C:\PROGRA~1\Woodward\MotoHawk\\PPCLib\ControlCoreClassic\GlobalDefinitions\MotoTron .\ControlCoreClassic\API\Framework /E /I /Y > NUL
	@xcopy C:\PROGRA~1\Woodward\MotoHawk\\PPCLib\ControlCoreClassic\ModuleDefinitions\Motorola .\ControlCoreClassic\API\Framework /E /I /Y > NUL
	@xcopy C:\PROGRA~1\Woodward\MotoHawk\\PPCLib\ControlCoreClassic\MotoTronProtocol\MultiTarget\API .\ControlCoreClassic\API\MotoTronProtocol /E /I /Y > NUL
	@xcopy C:\PROGRA~1\Woodward\MotoHawk\\PPCLib\ControlCoreClassic\MotoTronSpecific\MultiTarget\API .\ControlCoreClassic\API\MotoTronSpecific /E /I /Y > NUL
	@xcopy C:\PROGRA~1\Woodward\MotoHawk\\PPCLib\ControlCoreClassic\FileSystem\smxFFS\API .\ControlCoreClassic\API\FileSystem /E /I /Y > NUL
	@xcopy C:\PROGRA~1\Woodward\MotoHawk\\PPCLib\ControlCoreClassic\FileSystem\ucFS\API .\ControlCoreClassic\API\FileSystem /E /I /Y > NUL



	@mkdir .\ControlCoreClassic\Archives > NUL

	@copy C:\PROGRA~1\Woodward\MotoHawk\\PPCLib\ControlCoreClassic\TDB_Includes.h .\ControlCoreClassic\API > NUL
	@copy C:\PROGRA~1\Woodward\MotoHawk\\PPCLib\ControlCoreClassic\Framework\MultiTask\Archives\gcc-powerpc-eabi\4_4_0\PCM.a .\ControlCoreClassic\Archives > NUL
	@copy C:\PROGRA~1\Woodward\MotoHawk\\PPCLib\ControlCoreClassic\Framework\MultiTask\Source\TPU\Generic\Archives\gcc-powerpc-eabi\4_4_0\TPU_ISDL.a .\ControlCoreClassic\Archives > NUL
	@copy C:\PROGRA~1\Woodward\MotoHawk\\PPCLib\ControlCoreClassic\MotoTronProtocol\MultiTarget\Archives\gcc-powerpc-eabi\4_4_0\MPC5xxKeySuite_K10E15M6C255CK2BB1.a .\ControlCoreClassic\Archives > NUL
	@copy C:\PROGRA~1\Woodward\MotoHawk\\PPCLib\ControlCoreClassic\MotoTronSpecific\MultiTarget\Archives\gcc-powerpc-eabi\4_4_0\MotoTronSpecific.a .\ControlCoreClassic\Archives > NUL
	
@if exist .\TDB rmdir /Q /S .\TDB > NUL
@mkdir .\TDB
@copy C:\PROGRA~1\Woodward\MotoHawk\MOTOCO~1\TDB\*.* .\TDB > NUL
@echo > .\TDB\TableDB.c


@if exist .\Target rmdir /Q /S .\Target > NUL
@mkdir .\Target




