aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..d52785f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+SRC = tictactoe.tal
+
+OBJ = $(SRC:.tal=.rom)
+
+CLEANFILES = $(OBJ)
+
+UXNASM = uxncli ~/roms/drifblim.rom
+
+all: $(OBJ)
+
+.tal.rom:
+ $(UXNASM) $<
+
+$(OBJ): $(SRC)
+
+run: $(OBJ)
+ uxnemu -s 3 $<
+
+clean:
+ rm -f $(CLEANFILES)
+
+.PHONY: all run clean
+.SUFFIXES: .tal .rom