There is a way to compile just a single source file / driver and link the executable without running make. First, grab makefilelog.zip and unpack it into your fbalpha source dir.
here:
http://sharesend.com/8bapzu52the included makefile.mingw will echo all the commandlines to stdout, you'll need these to build the 2 scripts: cm and l.sh
first get a makelog.txt log, by running:
make mingw471 > makelog.txt 2>&1
now, make the linker script: l.sh by editing makelog.txt, searching for "g++" and cut and paste the entire g++ line into a new file called l.sh
second make a compile script called cm, this requires a bit more effort. in makelog.txt, look for something like:
Compiling src/burn/drv/capcom/d_cps1.cpp...
gcc -pipe -O1 -mwindows -fforce-addr -finline-limit=120 .... very long line ....
at the end of this line, it will be "src/burn/drv/capcom/d_cps1.cpp -o obj/47/3ds/burn/drv/capcom/d_cps1.o" cut this off and replace it with "src/burn/$1.cpp -o obj/47/3ds/burn/$1.o"
now take this new line and open the included "cm" script, and replace the "gcc" line in cm with the one you just made. save
using: for example, I was working on burn/drv/pre90s/d_galaga.cpp and I want to compile it and make a new fba executable.
"cm drv/pre90s/d_galaga" to compile it
"l.sh" to link it (aka make the exe)
look at the included l.sh first, you'll see how I also copy the new exe into my fba directory automatically.
I do all my work under bash in windows, if you would rather use dos/cmd instead of bash, you'll have to modify the scripts a bit.
best regards,
- dink
and load the included cm file and paste the end of it into