diff options
author | B. Watson <yalhcru@gmail.com> | 2016-01-07 04:55:59 -0500 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2016-01-07 04:55:59 -0500 |
commit | 3d7d8a9b549f1b6445858f78012b4c55609e1335 (patch) | |
tree | 11406bc12cae0ee6169754fd442eb28e6acff663 /Makefile | |
parent | 23fd09c5c464505c7c9ceb801fceb907446cd1ab (diff) | |
download | taipan-3d7d8a9b549f1b6445858f78012b4c55609e1335.tar.gz |
first pass at sounds
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -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 |