]> git.sur5r.net Git - cc65/commitdiff
Made geos-apple's file-converter depend on apple2enh's library. 10/head
authorGreg King <gregdk@users.sf.net>
Thu, 9 May 2013 18:46:04 +0000 (14:46 -0400)
committerGreg King <gregdk@users.sf.net>
Thu, 9 May 2013 18:46:04 +0000 (14:46 -0400)
The geos-apple target will build that library if it doesn't exist.

libsrc/geos-apple/targetutil/Makefile.inc

index 84d65f955953c4818748f11bfeb177bd898b3c7d..b5b2d367189a7837ca0673d5ad868b5da5ce989e 100644 (file)
@@ -5,7 +5,10 @@ DEPS += ../wrk/$(TARGET)/convert.d
 ../wrk/$(TARGET)/convert.o: $(SRCDIR)/targetutil/convert.c | ../wrk/$(TARGET)
        $(COMPILE_recipe)
 
-../targetutil/convert.system: ../wrk/$(TARGET)/convert.o | ../targetutil
-       $(LD) -o $@ -C apple2enh-system.cfg $^ apple2enh.lib
+../lib/apple2enh.lib:
+       @$(MAKE) --no-print-directory apple2enh
+
+../targetutil/convert.system: ../wrk/$(TARGET)/convert.o ../lib/apple2enh.lib | ../targetutil
+       $(LD) -o $@ -C apple2enh-system.cfg $^
 
 $(TARGET): ../targetutil/convert.system