* device/lib/Makefile.in, device/lib/ds390/Makefile.in,
[fw/sdcc] / device / lib / hc08 / Makefile.in
index 1df65adfe745bf50e9444633bf2e35f3282138ed..339428a64d1110427ed561ae1477952d62a7d1b4 100644 (file)
@@ -11,7 +11,8 @@ TOPDIR = ../../..
 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
 
@@ -64,14 +65,11 @@ else
        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