-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (33 loc) · 1022 Bytes
/
Makefile
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.PHONY: clean all launch launchcrunch test showlab
ASM := /usr/local/bin/acme
PUCRUNCH := /usr/local/bin/pucrunch
X64 := /Applications/Vice64/x64.app/Contents/MacOS/x64
BUILDDIR := build
LABELS := $(BUILDDIR)/labels.txt
GENCODE := $(BUILDDIR)/gen
TARGET_PRG := $(BUILDDIR)/vid64.prg
CRUNCH_PRG := $(BUILDDIR)/vid64cr.prg
VID := data/test.mov
SRCS := $(wildcard code/*.asm)
all: test $(TARGET_PRG) launch
$(TARGET_PRG): index.asm $(SRCS) $(GENCODE)/frame_init.asm $(GENCODE)/frames_delta.asm
acme -l $(LABELS) $<
$(CRUNCH_PRG): $(TARGET_PRG)
$(PUCRUNCH) $< $@
$(GENCODE)/frame_init.asm: $(VID)
python gentools/initframe.py $< $@
$(GENCODE)/frames_delta.asm: $(VID)
python gentools/deltaframes.py $< $@ 4 15
launch: $(TARGET_PRG)
killall x64 || true
$(X64) $< &
launchcrunch: $(CRUNCH_PRG)
killall x64 || true
$(X64) $< &
showlab: $(TARGET_PRG)
cat $(LABELS)
clean:
rm -f $(LABELS) $(TARGET_PRG)
rm -f $(GENCODE)/frame_init.asm $(GENCODE)/frames_delta.asm
test:
python gentools/vidextract/tests.py