SCC = $(TOPDIR)/bin/sdcc -mhc08
SAS = $(TOPDIR)/bin/as6808
-PORTDIR = ../build/hc08
+# override PORTDIR defined by super (parent) makefile
+override PORTDIR = ../build/hc08
include $(srcdir)/../incl.mk
cp $(OBJ) $(HC08OBJECTS) $(PORTDIR)
endif
-%.rel: ../%.c
- $(CC) $(CFLAGS) -c $<
-
%.rel: %.c
$(CC) $(CFLAGS) -c $<
-%.rel: %.asm
- $(AS) $(ASFLAGS) $@ $<
+%.rel: ../%.c
+ $(CC) $(CFLAGS) -c $<
clean:
rm -f *.rel *.sym *.lst *~ $(CLEANSPEC) *.dump* *.asm *.lib