summaryrefslogtreecommitdiff
path: root/digital/io/src/getsamples/Makefile
blob: 41e7f96fe2aa04621e8a1a4431cf407b8088dfa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CFLAGS = -O2 -Wall

all: getsamples getsamples.png 

getsamples: getsamples.o getsamples_cb.o 

getsamples.c: getSamplesFsm.fsm getSamplesFsm.conf
	python ../../../../tools/dfagen/dfagen.py -o c -d getSamplesFsm.fsm -c getSamplesFsm.conf -p getsamples

getsamples.h getsamples_cb_skel.c getsamples_cb.h: getsamples.c

getsamples.o: getsamples_cb.h getsamples.h
getsamples_cb.o: getsamples_cb.h getsamples.h

%.dot: %.fsm
	python ../../../../tools/dfagen/dfagen.py -o dot -d $< -p $(@:%.dot=%)

%.png: %.dot
	dot -Tpng $< -o $@

clean:
	rm -f getsamples getsamples.o getsamples_cb.o getsamples.c getsamples.h getsamples_cb_skel.c getsamples_cb.h getsamples_cb.c
	rm -f getsamples.dot getsamples.png