Add support for compiling multiple .ino and .pde files · Issue #49 · sudar/Arduino-Makefile (original) (raw)

After c64f38a we can't compile if we had multiple .ino or .pde files. (The support for multiple files was anyways broken before #39 )

One approach is to concatenate all files together into one big .cpp file and compile that. Arduino IDE does this together with some more preprocessing at https://github.com/arduino/Arduino/blob/master/app/src/processing/app/preproc/PdePreprocessor.java

I am open for other suggestions as well.