@echo off

set COMMON_DIR=..\..\common
set APPS_DIR=..\..\apps
set LIBUSB_DIR=..\..\lib\other\libUSB
set LIBUSB_CVS_DIR=.\libusb_src
set INSTALL_DIR=.\Install

copy sources_tstfind sources
copy %APPS_DIR%\tstfind\tstfind.c .
copy %COMMON_DIR%\owerr.c .
copy %COMMON_DIR%\crcutil.c .
copy %COMMON_DIR%\ioutil.c .
copy %COMMON_DIR%\ownet.h .
copy %LIBUSB_DIR%\*.c .
copy %LIBUSB_DIR%\*.h .
copy %LIBUSB_CVS_DIR%\src\usb.h .
copy %INSTALL_DIR%\%1\libusb0.lib .

build

call make_clean.bat

