aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 097b8f186409005cdfc7bd283c47f95a2851b9a7 (plain)
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
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