From 06dd1c018105a2614133ea56f3d888a633c6d14c Mon Sep 17 00:00:00 2001 From: la-ninpre Date: Thu, 7 Jul 2022 22:20:48 +0300 Subject: apply optimizations add lint to makefile --- Makefile | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'Makefile') 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) -- cgit v1.2.3