aboutsummaryrefslogtreecommitdiff
path: root/test/ppu-stm-integration-demo/makefile
blob: 5f6d235413cd0bd103ffa22c734216cabd5bbf08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.PHONY: all clean

SRCS := $(wildcard *.txt)
TARGETS += $(patsubst %.txt,%.h, $(SRCS))
TARGETS += $(patsubst %.txt,%-ppu.tb.vhd, $(SRCS))
TARGETS += $(patsubst %.txt,%-spi.tb.vhd, $(SRCS))

all: $(TARGETS)

%.h: %.txt ./data2test.awk
	tr -d ':' < $< | ./data2test.awk > $@

%-ppu.tb.vhd: %.txt ./data2pputb.awk
	tr -d ':' < $< | ./data2pputb.awk > $@

%-spi.tb.vhd: %.txt ./data2spitb.awk
	(tr -d ':' < $<; echo "ffff ffff") | ./data2spitb.awk > $@

clean:
	$(RM) $(TARGETS)