aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 14 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index d6eb110..a32c132 100644
--- a/Makefile
+++ b/Makefile
@@ -1,21 +1,28 @@
SRC = tictactoe.tal
-OBJ = $(SRC:.tal=.rom)
+PROG = $(SRC:.tal=.rom)
-CLEANFILES = $(OBJ)
+CLEANFILES = $(PROG)
-UXNASM = uxncli ~/roms/drifblim.rom
+UXNASM = uxncli ~/roms/asma.rom
+# UXNASM = uxncli ~/roms/drifblim.rom
# UXNASM = uxnasm
-all: $(OBJ)
+UXNEMU = uxnemu
+# UXNEMU = uxn11
+
+all: $(PROG)
.tal.rom:
$(UXNASM) $< $@
-$(OBJ): $(SRC)
+$(PROG): $(SRC)
+
+run: $(PROG)
+ $(UXNEMU) $<
-run: $(OBJ)
- uxnemu -s 3 $<
+lint: $(SRC)
+ uxncli ~/roms/uxnlin.rom $<
clean:
rm -f $(CLEANFILES)