Mysoft

Untitled

Sep 18th, 2020 (edited)
930
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. setlocal
  3.  
  4. rem **** c:\mingw\compile.bat ****
  5. rem for npp_save
  6.  
  7. rem **** variables related to source/target *****
  8. set gcc=%~dp0\bin\gcc.exe
  9. set srcin=%~fn1
  10. set fout=%~dpn1.exe
  11.  
  12. rem **** here you can add compiler parameters ****
  13. set parms=
  14. rem **** here you can add library dependencies ****
  15. set libs=
  16.  
  17. %gcc% %srcin% %parms% %libs% -o %fout%
  18. if errorlevel 1 ( goto :eof )
  19.  
  20. rem *** only run output if there was no errors compiling ***
  21. cmd /c "%fout%"
  22.  
RAW Paste Data