Re-worked the makefiles and includes to target z80 and gbz80 as well
[fw/sdcc] / device / lib / z80 / Makefile
index edba5a5146f51b969640fce963dd71e22fd9f7d9..5ad79105d6ec9b7fa99421edb987965ec3c39cc2 100644 (file)
@@ -5,7 +5,7 @@ TOPDIR = ../../..
 SCC = $(TOPDIR)/bin/sdcc -mz80
 SAS = as-z80
 
-OBJ = div.o mul.o putchar.o string.o printf.o
+OBJ = div.o mul.o putchar.o string.o printf.o # asm_strings.o
 LIB = z80.lib
 CC = $(SCC)
 AS = $(SAS)
@@ -17,9 +17,10 @@ $(LIB): $(OBJ) Makefile _dummy
        rm -f $(LIB)
        for i in $(OBJ); do echo $$i >> $(LIB); done
 
+.c.o:
+       $(CC) $(CFLAGS) -c $@
+
 _dummy:
 
 clean:
-       rm -f $(OBJ) *~ $(CLEANSPEC)
-
-
+       rm -f $(OBJ) *~ $(CLEANSPEC) *.dump*