aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2022-11-11 19:47:47 -0500
committerB. Watson <urchlay@slackware.uk>2022-11-11 19:47:47 -0500
commite910f64d9bcbff11bdf5e7a3bb7f71f99770b1b2 (patch)
tree47213d5236c04e5a1d860986dc859306b9484484
parentc137b0274dba5f91a03fab94d60d252338e0fd47 (diff)
downloaddla-asm-e910f64d9bcbff11bdf5e7a3bb7f71f99770b1b2.tar.gz
Fix Makefile incompatibility with BSD make.
-rw-r--r--Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index ae406f0..ef1876a 100644
--- a/Makefile
+++ b/Makefile
@@ -14,8 +14,6 @@ all: dla.xex dla2csv dla2csv.xex dla2img.sh
dla.xex: dla.s io.s dlatbl.s xex.inc printint.s render.s drunkwalk.s dlaver.h
$(CL65) $(CL65FLAGS) -l dla.list -Ln dla.labels -t none -o dla.xex dla.s
-dla2csv.xex: dla2csv.c dlaver.h
-
dla2img.sh: VERSION
$(PERL) d2iver.pl dla2img.sh
@@ -32,6 +30,11 @@ dla2csv: dla2csv.c
$(CC) $(CFLAGS) -o dla2csv dla2csv.c \
|| echo "Couldn't build host dla2csv; continuing without it"
+# turn off unused parameter warnings because cc65 insists on complaining
+# that argc and argv are unused.
+dla2csv.xex: dla2csv.c dlaver.h
+ $(CL65) $(CL65FLAGS) -t atari -W -unused-param -o $@ dla2csv.c
+
disk: drive1.atr
drive1.atr: all
@@ -53,10 +56,8 @@ disktest: disk
tnfs: all
sh tnfs.sh dla.xex dla2csv.xex
-%.xex: %.s
- $(CL65) $(CL65FLAGS) -t none -o $@ $<
-
-# turn off unused parameter warnings because cc65 insists on complaining
-# that argc and argv are unused.
+# this rule isn't actually used by the other targets, it's just
+# handy for writing little "test.c" programs and being able to
+# say "make test.xex".
%.xex: %.c
$(CL65) $(CL65FLAGS) -t atari -W -unused-param -o $@ $<