summaryrefslogtreecommitdiff
path: root/digital/io/src/getsamples/Makefile
blob: 3cf5a03a2665da85863c11f8e892a6abf607277b (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: getSamplesFsm.fsm getSamplesFsm.conf
	make prgm
	make exe
	make dot
	make png

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

exe: getSamplesFsm.fsm getSamplesFsm.conf
	make prgm
	if [ -f getsamples_cb.c ]; then patch getsamples_cb.c getsamples_cb_skel.c; else mv getsamples_cb_skel.c getsamples_cb.c; fi;

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

png: getsamples.dot
	dot -Tpng -o getsamples.png getsamples.dot

clean:
	rm -f getsamples*