@echo off

rem make sure we are in target directory
call "%~dp0/verify_dir.bat" %1
if %ERRORLEVEL% NEQ 0 exit 1

rem  Common non-private header files

call "%~dp0\psp_mcf.bat" %1 %2

rem  Configuration header files

for %%F in (..\..\..\config\common\*.h)     do copy /Y /B ..\..\..\mqx\source\include\dontchg.h + %%F ..\%%~nF%%~xF
for %%F in (..\..\..\config\m54455evb\*.h)  do copy /Y /B ..\..\..\mqx\source\include\dontchg.h + %%F ..\%%~nF%%~xF

rem  Processor-specific PSP files

copy /Y ..\..\..\mqx\source\psp\coldfire\mcf5445.h  .
copy /Y ..\..\..\mqx\source\psp\coldfire\mcf5xxx_dspi.h  .
copy /Y ..\..\..\mqx\source\psp\coldfire\mcf5xxx_fec.h  .
copy /Y ..\..\..\mqx\source\psp\coldfire\mcf5xxx_usbotg.h  .
copy /Y ..\..\..\mqx\source\psp\coldfire\mcf54xx_rtc.h  .
copy /Y ..\..\..\mqx\source\psp\coldfire\mcf54xx_ictl.h  .
copy /Y ..\..\..\mqx\source\psp\coldfire\mcf5xxx_pit.h  .
copy /Y ..\..\..\mqx\source\psp\coldfire\mcf54xx_uart.h  .
copy /Y ..\..\..\mqx\source\psp\coldfire\mcf54xx_sdramc.h  .
copy /Y ..\..\..\mqx\source\psp\coldfire\mcf5xxx_fb.h  .
copy /Y ..\..\..\mqx\source\psp\coldfire\mcf54xx_ccm.h  .
copy /Y ..\..\..\mqx\source\psp\coldfire\mcf54xx_i2c.h  .
