]> git.sur5r.net Git - cc65/blobdiff - libsrc/dbg/Makefile
The spans do now contain the size of a span, no longer the end offset.
[cc65] / libsrc / dbg / Makefile
index 1dcf8b116d48ea60046e4185cd8371b5afbf415b..13ca1a17bd598d3864726b5b70d78fd338d86bdf 100644 (file)
@@ -4,23 +4,44 @@
 
 .SUFFIXES: .o .s .c
 
+#--------------------------------------------------------------------------
+# Programs and flags
+
+SYS    = none
+
+AS     = ../../src/ca65/ca65
+CC     = ../../src/cc65/cc65
+LD     = ../../src/ld65/ld65
+
+AFLAGS = -t $(SYS) --forget-inc-paths -I../../asminc
+CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include
+
+#--------------------------------------------------------------------------
+# Rules
+
 %.o:           %.c
-       @echo $<
        @$(CC) $(CFLAGS) $<
        @$(AS) -g -o $@ $(AFLAGS) $(*).s
 
 %.o:   %.s
-       @echo $<
        @$(AS) -g -o $@ $(AFLAGS) $<
 
+#--------------------------------------------------------------------------
+# Object files
+
 C_OBJS = dbg.o
 
 S_OBJS = asmtab.o dbgdasm.o dbgdump.o dbgisram.o dbgsupp.o
 
+#--------------------------------------------------------------------------
+# Targets
+
+.PHONY:        all clean zap
+
 all:   $(C_OBJS) $(S_OBJS)
 
 clean:
-       @rm -f *~
-       @rm -f $(C_OBJS:.o=.s)
-       @rm -f $(C_OBJS)
-       @rm -f $(S_OBJS)
+       @$(RM) *~ $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS)
+
+zap:   clean
+