]> git.sur5r.net Git - cc65/blobdiff - libsrc/conio/Makefile
The VIC20 doesn't have PALFLAG (Stefan Haubenthal)
[cc65] / libsrc / conio / Makefile
index 2fc751abaf1936e3461b7ce31b979eb228b98c9b..12c60a27b507f2b03a6a5adc846c649aabf83699 100644 (file)
@@ -4,23 +4,36 @@
 
 .SUFFIXES: .o .s .c
 
+#--------------------------------------------------------------------------
+# Rules
+
 %.o:           %.c
-       @echo $<
        @$(CC) $(CFLAGS) $<
        @$(AS) -o $@ $(AFLAGS) $(*).s
 
 %.o:   %.s
-       @echo $<
        @$(AS) -g -o $@ $(AFLAGS) $<
 
-C_OBJS =
+#--------------------------------------------------------------------------
+# Object files
+
+OBJS = _cursor.o       \
+        cprintf.o      \
+       cputhex.o       \
+       cputs.o         \
+       cursor.o        \
+       scrsize.o       \
+        vcprintf.o
+
+#--------------------------------------------------------------------------
+# Targets
 
-S_OBJS = cputs.o cursor.o cputhex.o scrsize.o
+.PHONY:        all clean zap
 
-all:   $(C_OBJS) $(S_OBJS)
+all:   $(OBJS)
 
 clean:
-       @rm -f *~
-       @rm -f $(C_OBJS:.o=.s)
-       @rm -f $(C_OBJS)
-       @rm -f $(S_OBJS)
+       @$(RM) *~ $(OBJS)
+
+zap:   clean
+