summaryrefslogtreecommitdiff
path: root/digital/io/src/getsamples/Makefile
blob: dfb614425d344d31305424246c3cd95d60f00894 (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
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: getSamplesFsm.fsm
	python ../../../../tools/dfagen/dfagen.py -o dot -d getSamplesFsm.fsm -p getsamples

png: getSamplesFsm.fsm 
	make dot
	dot -Tpng getsamples.dot -o getsamples.png

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