generalnmx
Playful/Fascist Mod
This all started when .NET had problems with *nix makefiles when I was using it as my IDE. After a while trying to solve the problem, I decided to switch to batch files. Now after repeated tweaks, I think they are ready for public consumption. It's surprising the power you can get out of simple DOS batch files. They have only been tested on Windows XP, but I see no cause for problems on earlier versions. Note that this is currently setup for Gamepark's SDK and GCC 3.4.0.
Quick rundown:
makebat.bat - This is like your Makefile file, it goes in your project directory.
gccsetup.bat - This is like your gp_sdk.mk, it has all the environment variables and is only a big file of "SET" commands. This goes in whatever BIN directory is in your PATH (IE, c:\devkitARM_r6a\bin)
compbat.bat - This file compiles C and C++ files, and accepts multiple files as arguments. All warnings and errors go into the "cerr.txt" file in your Temporary Files directory, but they are also outputted to the screen. This goes in whatever BIN directory is in your PATH.
gcc2vs.exe - A cute little file made by DJWillis which converts gcc-style errors into Visual Studio-style errors. VERY useful if you are using VS as your IDE. This goes in whatever BIN directory is in your PATH.
Changes planned for future versions:
- New version of gccsetup.bat and makebat.bat for Mirko's SDK.
- Compiling all files in your project directory automatically.
- Only compiling if the source file was modified (if there is an object file present).
- Option in makebat.bat and gccsetup.bat to output a *nix compatible makefile to a given filename.
- Various bug fixes.
- Other cool stuff.
Quick rundown:
makebat.bat - This is like your Makefile file, it goes in your project directory.
gccsetup.bat - This is like your gp_sdk.mk, it has all the environment variables and is only a big file of "SET" commands. This goes in whatever BIN directory is in your PATH (IE, c:\devkitARM_r6a\bin)
compbat.bat - This file compiles C and C++ files, and accepts multiple files as arguments. All warnings and errors go into the "cerr.txt" file in your Temporary Files directory, but they are also outputted to the screen. This goes in whatever BIN directory is in your PATH.
gcc2vs.exe - A cute little file made by DJWillis which converts gcc-style errors into Visual Studio-style errors. VERY useful if you are using VS as your IDE. This goes in whatever BIN directory is in your PATH.
Changes planned for future versions:
- New version of gccsetup.bat and makebat.bat for Mirko's SDK.
- Compiling all files in your project directory automatically.
- Only compiling if the source file was modified (if there is an object file present).
- Option in makebat.bat and gccsetup.bat to output a *nix compatible makefile to a given filename.
- Various bug fixes.
- Other cool stuff.