]> git.sur5r.net Git - cc65/blobdiff - libsrc/cbm/Makefile
Added --forget-inc-paths to the assembler command line to avoid problems if
[cc65] / libsrc / cbm / Makefile
index c8643855c497fc377fe381ee8f0378556e9c4a87..99bf8c1d43132d76ecd12a622755f19f4eb8aadb 100644 (file)
@@ -4,6 +4,21 @@
 
 .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
        @$(CC) $(CFLAGS) $<
        @$(AS) -o $@ $(AFLAGS) $(*).s
 %.o:   %.s
        @$(AS) -g -o $@ $(AFLAGS) $<
 
-C_OBJS =       cbm_load.o      \
+#--------------------------------------------------------------------------
+# Object files
+
+C_OBJS =               cbm_dir.o       \
+                cbm_load.o     \
                cbm_save.o
 
 S_OBJS =       c_acptr.o       \
@@ -48,10 +67,10 @@ S_OBJS =    c_acptr.o       \
                 filedes.o       \
                 filename.o      \
                 filevars.o      \
-               getenv.o        \
                gotox.o         \
                gotoxy.o        \
                gotoy.o         \
+                initcwd.o       \
                 open.o          \
                 oserrlist.o     \
                oserror.o       \
@@ -59,12 +78,21 @@ S_OBJS =    c_acptr.o       \
                 rwcommon.o      \
                 scratch.o       \
                 sysremove.o     \
-                systime.o       \
-               where.o         \
+                sysrename.o     \
+                toascii.o       \
+               wherex.o        \
+                wherey.o        \
                 write.o
 
+#--------------------------------------------------------------------------
+# Targets
+
+.PHONY:        all clean zap
+
 all:   $(C_OBJS) $(S_OBJS)
 
 clean:
-       @rm -f *~ *.bck $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS)
+       @$(RM) *~ *.bck $(C_OBJS:.o=.s) $(C_OBJS) $(S_OBJS)
+
+zap:   clean