]> git.sur5r.net Git - cc65/blobdiff - libsrc/atari/Makefile
Fixed problems with the startup code (Greg King): Interrupts must be hooked
[cc65] / libsrc / atari / Makefile
index cb327f3b21eee48ac5f065e7d02606a4a9dce4fd..5a2386374efc964ea4c1c829008596c36fc2f448 100644 (file)
@@ -4,17 +4,35 @@
 # NUMDRVS - number of supported drives (max. 16)
 #           4 bytes for each device are statically allocated
 # LINEBUF - support line buffered reads from E: (the number specifies
-#           the length of the buffer
+#           the length of the buffer)
 # UCASE_FILENAME - all filenames get uppercased
 # DEFAULT_DEVICE - if the string passed to the uppercase function doesn't
-#                  include a device (":" at position 2 or 3), provide "D:"
-#                  as a default device
+#                  include a device (":" at position 2 or 3), provide "Dn:"
+#                  as a default disk device
+#                  n is the value of DEFAULT_DEVICE, unless DYNAMIC_DD is
+#                  also set, in which case it's overridden by a runtime
+#                  check (on SpartaDOS only)
 #                  needs UCASE_FILENAME to be defined, otherwise no effect
+# DYNAMIC_DD     - determine default disk device at runtime (SpartaDOS only)
+#                  needs DEFAULT_DEVICE to be defined, otherwise no effect
 
-ATARIDEFS = -DNUMDRVS=4 -DUCASE_FILENAME=1 -DDEFAULT_DEVICE=1 -DLINEBUF=80
+ATARIDEFS =  -DNUMDRVS=4 -DUCASE_FILENAME=1 -DDEFAULT_DEVICE=1 -DLINEBUF=80
+ATARIDEFS += -DDYNAMIC_DD=1
 
 .SUFFIXES: .o .s .c
 
+#--------------------------------------------------------------------------
+# Programs and flags
+
+SYS    = atari
+
+AS     = ../../src/ca65/ca65
+CC     = ../../src/cc65/cc65
+LD     = ../../src/ld65/ld65
+
+AFLAGS = -t $(SYS) -I../../asminc
+CFLAGS = -Osir -g -T -t $(SYS) --forget-inc-paths -I . -I ../../include
+
 #--------------------------------------------------------------------------
 # Rules
 
@@ -53,6 +71,7 @@ OBJS =        _scrsize.o      \
        dio_cts.o       \
        dio_stc.o       \
        diopncls.o      \
+       dioqsize.o      \
        dioread.o       \
        diowrite.o      \
        diowritev.o     \
@@ -65,7 +84,6 @@ OBJS =        _scrsize.o      \
        gotoy.o         \
        gotoxy.o        \
        graphics.o      \
-       graphuse.o      \
        joy_stddrv.o    \
        kbhit.o         \
        lseek.o         \
@@ -84,10 +102,12 @@ OBJS =     _scrsize.o      \
        scroll.o        \
        setcolor.o      \
        siocall.o       \
+       sysmkdir.o      \
        sysremove.o     \
+       sysrmdir.o      \
        systime.o       \
+       sysuname.o      \
        tvtype.o        \
-        sysuname.o      \
        ucase_fn.o      \
        wherex.o        \
        wherey.o        \