浏览代码

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 年前
父节点
当前提交
e10d3136c8
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      Marlin/Makefile

+ 4
- 0
Marlin/Makefile 查看文件

@@ -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 $@

正在加载...
取消
保存