aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: a32c13248deee8def9954bc15c54c0962c22417c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
SRC = tictactoe.tal

PROG = $(SRC:.tal=.rom)

CLEANFILES = $(PROG)

UXNASM = uxncli ~/roms/asma.rom
# UXNASM = uxncli ~/roms/drifblim.rom
# UXNASM = uxnasm

UXNEMU = uxnemu
# UXNEMU = uxn11

all: $(PROG)

.tal.rom:
	$(UXNASM) $< $@

$(PROG): $(SRC)

run: $(PROG)
	$(UXNEMU) $<

lint: $(SRC)
	uxncli ~/roms/uxnlin.rom $<

clean:
	rm -f $(CLEANFILES)

.PHONY: all run clean
.SUFFIXES: .tal .rom