From 12741467f8f8981d3cdae227b6a1ffaec293ea62 Mon Sep 17 00:00:00 2001 From: cuz Date: Sun, 11 Aug 2002 12:39:10 +0000 Subject: [PATCH] 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 --- libsrc/c64/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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) -- 2.39.5