Otherwise, to avoid the use of Makefiles, you could replicate their functionality in your code (it's a question of assembling the right command line arguments).
You have actually done this here if I am correct:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1157400799I was comparing what files are compiled in the makfile (
http://www.arduino.cc/en/uploads/Hacking/Makefile) and what are compiled in the command file link posted above.
makefile: pins_arduino.c, wiring.c, WInterrupts.c, foo.cpp, HardwareSerial.cpp, WRandom.cpp (note: I couldn't figure out what $(ASRC) points to)
command file: buffer.c, pins_arduino.c, Serial.c, uart.c, wiring.c, foo.cpp, HardwareSerial.cpp, WRandom.cpp
The command file has the following extra files: buffer.c, uart.c
The makfile has the following extra files: WInterrupts.c
Just curious if the command file needs more object files or has too many or both.
Thanks
fillalph