aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-01-14 16:00:05 -0500
committerB. Watson <yalhcru@gmail.com>2016-01-14 16:00:05 -0500
commit9dbe0b40cfda998339fcc1e57b6aafe2cf5bc689 (patch)
treea605babab4d0e8ec3c70375449ef8d4c5b35a14c /Makefile
parent3da90b381b58b4245d65b144e7af28efd8217830 (diff)
downloadtaipan-9dbe0b40cfda998339fcc1e57b6aafe2cf5bc689.tar.gz
read from correct byte of RTCLOK in rand.s
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e1a9c8d..dd73d76 100644
--- a/Makefile
+++ b/Makefile
@@ -89,6 +89,12 @@ 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 ultostr.s
+# Comment these lines out to build without big number support.
+# This will stop being possible at some point.
+BIGNUM_SRC=bignum.s
+BIGNUM_HDRS=bignum.h
+BIGNUM_CFLAGS=-DBIGNUM
+
# Default rule for plain 'make' command is to build the binary.
all: $(XEX)
@@ -153,8 +159,8 @@ 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_HDRS)
- cl65 -m taipan.map $(CFLAGS) -o taimain.xex $(TAIMAIN_C_SRC) $(TAIMAIN_ASM_SRC)
+taimain.xex: $(TAIMAIN_C_SRC) $(TAIMAIN_ASM_SRC) $(TAIMAIN_HDRS) $(BIGNUM_SRC) $(BIGNUM_HDRS)
+ cl65 -m taipan.map $(CFLAGS) $(BIGNUM_CFLAGS) -o taimain.xex $(TAIMAIN_C_SRC) $(TAIMAIN_ASM_SRC) $(BIGNUM_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