]> git.sur5r.net Git - cc65/commitdiff
Added the extra dependency file's directory as an order-only prerequisite. 456/head
authorGreg King <gregdk@users.sf.net>
Thu, 29 Jun 2017 17:34:10 +0000 (13:34 -0400)
committerGreg King <gregdk@users.sf.net>
Thu, 29 Jun 2017 17:56:29 +0000 (13:56 -0400)
The extra dependency files are put into different places than the extra object files' location.  Therefore, the rule must pre-make two directories.

libsrc/Makefile

index e106aa239e079ba9d0fc023504d44e3a09c9df92..89d4b7752e9bc07628f6698d59b17e984b6cfca3 100644 (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 $@ $<