Selaa lähdekoodia

Create an explicit rule for building applet/Marlin.cpp.

It would seem that the pattern matches do not work when the source
file is created when make is running. The result of this is that it is
necessary to run "make" twice to build the firmware.

This adds an explicit rule without a pattern match for building
applet/Marlin.cpp it corrects the make behaviour at the cost of adding
a little redundancy in the Makefile.
Jonathan Bastien-Filiatrault 12 vuotta sitten
vanhempi
commit
e10d3136c8
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4
    0
      Marlin/Makefile

+ 4
- 0
Marlin/Makefile Näytä tiedosto

@@ -277,6 +277,10 @@ applet/%.o: %.c Configuration.h Configuration_adv.h $(MAKEFILE)
277 277
 	$(Pecho) "  CC    $@"
278 278
 	$P $(CC) -MMD -c $(ALL_CFLAGS) $< -o $@
279 279
 
280
+applet/Marlin.o: applet/Marlin.cpp Configuration.h Configuration_adv.h $(MAKEFILE)
281
+	$(Pecho) "  CXX   $@"
282
+	$P $(CXX) -MMD -c $(ALL_CXXFLAGS) $< -o $@
283
+
280 284
 applet/%.o: %.cpp Configuration.h Configuration_adv.h $(MAKEFILE)
281 285
 	$(Pecho) "  CXX   $@"
282 286
 	$P $(CXX) -MMD -c $(ALL_CXXFLAGS) $< -o $@

Loading…
Peruuta
Tallenna