|
@@ -112,8 +112,8 @@ CDEFS = -DF_CPU=$(F_CPU)
|
112
|
112
|
CXXDEFS = -DF_CPU=$(F_CPU)
|
113
|
113
|
|
114
|
114
|
# Add all the source directories as include directories too
|
115
|
|
-CINCS = ${patsubst %,-I%,${subst :, ,${VPATH}}}
|
116
|
|
-CXXINCS = ${patsubst %,-I%,${subst :, ,${VPATH}}}
|
|
115
|
+CINCS = ${addprefix -I ,${VPATH}}
|
|
116
|
+CXXINCS = ${addprefix -I ,${VPATH}}
|
117
|
117
|
|
118
|
118
|
# Compiler flag to set the C Standard level.
|
119
|
119
|
# c89 - "ANSI" C
|
|
@@ -185,7 +185,7 @@ applet:
|
185
|
185
|
# ..and the .o depends from the .cpp
|
186
|
186
|
#applet/%.o: applet/%.cpp
|
187
|
187
|
|
188
|
|
-applet/%.cpp: %.pde
|
|
188
|
+applet/%.cpp: %.pde $(MAKEFILE)
|
189
|
189
|
# Here is the "preprocessing".
|
190
|
190
|
# It creates a .cpp file based with the same name as the .pde file.
|
191
|
191
|
# On top of the new .cpp file comes the WProgram.h header.
|
|
@@ -264,16 +264,11 @@ applet/$(TARGET).elf: applet/$(TARGET).cpp applet/core.a Configuration.h
|
264
|
264
|
applet/core.a: $(OBJ)
|
265
|
265
|
@for i in $(OBJ); do echo " AR $$i"; $(AR) rcs applet/core.a $$i; done
|
266
|
266
|
|
267
|
|
-applet/%.o: %.c
|
|
267
|
+applet/%.o: %.c Configuration.h Configuration_adv.h $(MAKEFILE)
|
268
|
268
|
@echo " CC $@"
|
269
|
269
|
@$(CC) -MMD -c $(ALL_CFLAGS) $< -o $@
|
270
|
270
|
|
271
|
|
-applet/%.o: %.cpp
|
272
|
|
- @echo " CXX $@"
|
273
|
|
- @$(CXX) -MMD -c $(ALL_CXXFLAGS) $< -o $@
|
274
|
|
-
|
275
|
|
-# special rule for autogenerated files...
|
276
|
|
-applet/%.o: applet/%.cpp
|
|
271
|
+applet/%.o: %.cpp Configuration.h Configuration_adv.h $(MAKEFILE)
|
277
|
272
|
@echo " CXX $@"
|
278
|
273
|
@$(CXX) -MMD -c $(ALL_CXXFLAGS) $< -o $@
|
279
|
274
|
|