1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-22 12:30:41 +00:00

Added the extra dependency file's directory as an order-only prerequisite.

The extra dependency files are put into different places than the extra object files' location.  Therefore, the rule must pre-make two directories.
This commit is contained in:
Greg King 2017-06-29 13:34:10 -04:00
parent d1501731e4
commit 141c25b42b

View File

@ -280,7 +280,7 @@ endef # COMPILE_recipe
../libwrk/$(TARGET)/%.o: %.c | ../libwrk/$(TARGET)
$(COMPILE_recipe)
$(EXTRA_OBJPAT): $(EXTRA_SRCPAT) | ../lib
$(EXTRA_OBJPAT): $(EXTRA_SRCPAT) | ../libwrk/$(TARGET) ../lib
@echo $(TARGET) - $(<F)
@$(CA65) -t $(TARGET) $(CA65FLAGS) --create-dep $(@:../lib/%.o=../libwrk/$(TARGET)/%.d) -o $@ $<