From: cuz Date: Sun, 11 Aug 2002 12:39:10 +0000 (+0000) Subject: Add rule to make zeropage.o in runtime dir if it is missing X-Git-Tag: V2.12.0~2240 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=12741467f8f8981d3cdae227b6a1ffaec293ea62;p=cc65 Add rule to make zeropage.o in runtime dir if it is missing git-svn-id: svn://svn.cc65.org/cc65/trunk@1387 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/c64/Makefile b/libsrc/c64/Makefile index d19c7cd81..636f7abfd 100644 --- a/libsrc/c64/Makefile +++ b/libsrc/c64/Makefile @@ -11,8 +11,8 @@ %.o: %.s @$(AS) -g -o $@ $(AFLAGS) $< -%.tgi: %.o - @$(LD) -t module -o $@ $< ../runtime/zeropage.o +%.tgi: %.o ../runtime/zeropage.o + @$(LD) -t module -o $@ $^ OBJS = _scrsize.o \ break.o \ @@ -32,8 +32,15 @@ OBJS = _scrsize.o \ TGIS = c64-320-200-2.tgi +#-------------------------------------------------------------------------- +# Targets + all: $(OBJS) $(TGIS) +../runtime/zeropage.o: + $(MAKE) -C $(dir $@) $(notdir $@) + + clean: @rm -f $(OBJS) $(TGIS:.tgi=.o)