aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 15 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index f83b13e..5b4639c 100644
--- a/Makefile
+++ b/Makefile
@@ -60,6 +60,10 @@ HOSTCFLAGS=-Wall
# The game binary:
XEX=taipan.xex
+# All the C and asm sources for taimain.xex:
+TAIMAIN_C_SRC=taipan.c sounds.c
+TAIMAIN_ASM_SRC=rand.s draw_lorcha.s timed_getch.s jsleep.s portstat.s clrtobot.s
+
# Default rule for plain 'make' command is to build the binary.
all: $(XEX)
@@ -111,9 +115,11 @@ comptitle.xex: titledata.xex titlecomp.pl comptitle.s.in
newtitle.xex: newtitle.s ver.dat help.dat
cl65 -l newtitle.lst -m newtitle.map -o newtitle.xex -t none newtitle.s
+# Version number in Atari screen-data form
ver.dat: text2screen.pl
echo "$(VERSION)" | perl text2screen.pl > ver.dat
+# Help text for the title screen
help.dat: help.txt text2screen.pl
perl text2screen.pl < help.txt > help.dat
@@ -122,14 +128,16 @@ help.dat: help.txt text2screen.pl
# The main executable. All the C and asm code goes here, except the init
# segment in newtitle.s.
-taimain.xex: taipan.c rand.s draw_lorcha.s timed_getch.s jsleep.s portstat.s clrtobot.s
- cl65 --mapfile taipan.map $(CFLAGS) -o taimain.xex taipan.c rand.s draw_lorcha.s timed_getch.s jsleep.s portstat.s clrtobot.s
+taimain.xex: $(TAIMAIN_C_SRC) $(TAIMAIN_ASM_SRC)
+ cl65 -m taipan.map $(CFLAGS) -o taimain.xex $(TAIMAIN_C_SRC) $(TAIMAIN_ASM_SRC)
+
+#cl65 --mapfile taipan.map $(CFLAGS) -o taimain.xex taipan.c sounds.c rand.s draw_lorcha.s timed_getch.s jsleep.s portstat.s clrtobot.s
# With newer cc65s, I have to do this to get an assembly listing of just
# taipan.c. This rule not used as part of the main build, it's only for
# debugging.
taipan.lst: taipan.c
- cl65 --mapfile taipan.map $(CFLAGS) -c -o /dev/null -l taipan.lst -T taipan.c
+ cl65 -m taipan.map $(CFLAGS) -c -o /dev/null -l taipan.lst -T taipan.c
# The font gets loaded into RAM, in the area reserved by the
# -D__RESERVED_MEMORY__ option to cl65. To actually use the font,
@@ -187,6 +195,10 @@ lorchatest: lorchatest.c draw_lorcha.s taifont.xex
cat taifont.xex lorchatest1.xex > lorchatest.xex
atari800 -nobasic lorchatest.xex
+soundtest: sounds.c
+ cl65 -DTESTXEX -t atari -o sounds.xex sounds.c
+ atari800 -nobasic sounds.xex
+
# former textmode title screen, was generated by TITLE.LST. Replaced
# by graphical title screen.
#title.xex: TITLE.DAT