aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2022-11-10 14:40:31 -0500
committerB. Watson <urchlay@slackware.uk>2022-11-10 14:40:31 -0500
commit6cdf85f4e44625d7452d0aeccbf01ef3191a7133 (patch)
treec11d21ea5bbde7cc489ba77fcf027d9e23dd1419 /Makefile
parentf42e18edc63c0a6fe60b89fc05374c0c59294fce (diff)
downloaddla-asm-6cdf85f4e44625d7452d0aeccbf01ef3191a7133.tar.gz
VERSION now set in Makefile.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index a1f119f..cf01f8d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
# Makefile for dla-asm.
# See https://slackware.uk/~urchlay/repos/dla-asm
+VERSION=0.2.0
+
CL65=cl65
CL65FLAGS=
@@ -11,14 +13,19 @@ CFLAGS=-O2 -Wall
all: dla.xex dla2csv dla2csv.xex
-dla.xex: dla.s io.s dlatbl.s xex.inc printint.s render.s drunkwalk.s
+dla.xex: dla.s io.s dlatbl.s xex.inc printint.s render.s drunkwalk.s dlaver.inc
$(CL65) $(CL65FLAGS) -l dla.list -Ln dla.labels -t none -o dla.xex dla.s
-dla2csv.xex: dla2csv.c
+dla2csv.xex: dla2csv.c dlaver.h
dlatbl.s: mkdlatbl.pl
$(PERL) mkdlatbl.pl > dlatbl.s
+dlaver.inc: dlaver.h
+
+dlaver.h: mkver.pl
+ $(PERL) mkver.pl $(VERSION)
+
dla2csv: dla2csv.c
@echo $(CC) $(CFLAGS) -o dla2csv dla2csv.c ; \
$(CC) $(CFLAGS) -o dla2csv dla2csv.c \
@@ -34,7 +41,7 @@ clean:
rm -f dla.xex dla2csv dla2csv.xex dla.list dla.labels *.o
distclean: clean
- rm -f dlatbl.s
+ rm -f dlatbl.s dlaver.inc dlaver.h
test: all
atari800 dla.xex