@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\fxlc95000eval\*.h)  do copy /Y /B ..\..\..\mqx\source\include\dontchg.h + %%F ..\%%~nF%%~xF

rem  Processor-specific PSP files

rem copy /Y ..\..\..\mqx\source\psp\coldfire\mcf51JM.h  .
rem copy /Y ..\..\..\mqx\source\psp\coldfire\mcf51ac_adc.h  .
rem copy /Y ..\..\..\mqx\source\psp\coldfire\mcf51xx_i2c.h  .
rem copy /Y ..\..\..\mqx\source\psp\coldfire\mcf51xx_ictl.h  .
rem copy /Y ..\..\..\mqx\source\psp\coldfire\mcf51xx_sci.h  .
rem copy /Y ..\..\..\mqx\source\psp\coldfire\mcf51xx_rtc.h  .
rem copy /Y ..\..\..\mqx\source\psp\coldfire\mcf51xx_spi.h  .
rem copy /Y ..\..\..\mqx\source\psp\coldfire\mcf5xxx_spi16.h .
rem copy /Y ..\..\..\mqx\source\psp\coldfire\mcf51xx_ftsr.h  .
rem copy /Y ..\..\..\mqx\source\psp\coldfire\mcf51xx_pmc.h  .
rem copy /Y ..\..\..\mqx\source\psp\coldfire\mcf522x_usbotg.h  .

