aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-01-07 08:12:21 -0500
committerB. Watson <yalhcru@gmail.com>2016-01-07 08:12:21 -0500
commitb3532358b55af97983418e6edbf76029bc2e7162 (patch)
tree71b05fe7f9ebc70fab2954775a49164e3bc9153b /Makefile
parentebbc4a225ba2ecf3b7d54510884976c4e7a961cc (diff)
downloadtaipan-b3532358b55af97983418e6edbf76029bc2e7162.tar.gz
update readme, dike out unused sounds
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5b4639c..730ddc3 100644
--- a/Makefile
+++ b/Makefile
@@ -61,6 +61,7 @@ HOSTCFLAGS=-Wall
XEX=taipan.xex
# All the C and asm sources for taimain.xex:
+TAIMAIN_HDRS=sounds.h
TAIMAIN_C_SRC=taipan.c sounds.c
TAIMAIN_ASM_SRC=rand.s draw_lorcha.s timed_getch.s jsleep.s portstat.s clrtobot.s
@@ -128,7 +129,7 @@ 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: $(TAIMAIN_C_SRC) $(TAIMAIN_ASM_SRC)
+taimain.xex: $(TAIMAIN_C_SRC) $(TAIMAIN_ASM_SRC) $(TAIMAIN_HDRS)
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
@@ -139,6 +140,10 @@ taimain.xex: $(TAIMAIN_C_SRC) $(TAIMAIN_ASM_SRC)
taipan.lst: taipan.c
cl65 -m taipan.map $(CFLAGS) -c -o /dev/null -l taipan.lst -T taipan.c
+# Another such rule for sounds.c:
+sounds.lst: sounds.c sounds.h
+ cl65 -m sounds.map $(CFLAGS) -c -o /dev/null -l sounds.lst -T sounds.c
+
# The font gets loaded into RAM, in the area reserved by the
# -D__RESERVED_MEMORY__ option to cl65. To actually use the font,
# taimain.xex contains code that sets CHBAS ($02f4).