Added support for compiling .pde files in Arduino 1.0 environment
This commit is contained in:
parent
378b59fb95
commit
e046112c83
1 changed files with 3 additions and 1 deletions
|
@ -564,9 +564,11 @@ $(OBJDIR)/%.d: %.S
|
|||
$(OBJDIR)/%.d: %.s
|
||||
$(CC) -MM $(CPPFLAGS) $(ASFLAGS) $< -MF $@ -MT $(@:.d=.o)
|
||||
|
||||
#backward compatibility for .pde files
|
||||
# We should check for Arduino version, if the file is .pde because a .pde file might be used in Arduino 1.0
|
||||
# the pde -> cpp -> o file
|
||||
$(OBJDIR)/%.cpp: %.pde
|
||||
$(ECHO) '#include "WProgram.h"' > $@
|
||||
$(ECHO) '#if ARDUINO >= 100\n #include "Arduino.h"\n#else\n #include "WProgram.h"\n#endif' > $@
|
||||
$(CAT) $< >> $@
|
||||
|
||||
# the ino -> cpp -> o file
|
||||
|
|
Loading…
Reference in a new issue