aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-07-29 08:12:16 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-07-29 08:25:22 +0100
commitf569f70654def8f2b590fca62dbfa3e7b2b5dd8c (patch)
treeea33632775a75e9ac1caf3f12cbf09763f30dcc3 /Makefile
downloadsinclair-basic-f569f70654def8f2b590fca62dbfa3e7b2b5dd8c.tar.gz
sinclair-basic-f569f70654def8f2b590fca62dbfa3e7b2b5dd8c.zip
Initial importHEADmain
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..097b8f1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,26 @@
+TARGET := game
+
+CC := gcc
+CFLAGS := -Wall -O2
+LDFLAGS := -s -lm
+
+all: $(TARGET).tap
+
+zxsec: $(TARGET).tap
+ zxsec $<
+
+fuse: $(TARGET).tap
+ fuse-gtk $<
+
+$(TARGET).tap: $(TARGET).bas bas2tap
+ ./bas2tap -a -s -q $< $@
+
+bas2tap: bas2tap.c
+ $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
+
+clean:
+ rm -f *.o bas2tap
+cleanall: clean
+ rm -f $(TARGET).tap
+
+.PHONY: all run clean cleanall