summaryrefslogtreecommitdiff
path: root/digital/io/src/gutter/Makefile
blob: 63752dc586634102c626d17b3424b32cbc58dcb9 (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: prgm exe dot png 

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

exe: gutter.fsm gutter.conf
	make prgm
	if [ -f gutter_cb.c ]; then patch gutter_cb.c gutter_cb_skel.c; else mv gutter_cb_skel.c gutter_cb.c; fi;

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

png: gutter.dot
	dot -Tpng -o gutter.png gutter.dot

clean:
	rm -f gutter.h
	rm -f gutter_cb.c
	rm -f gutter_cb.h
	rm -f gutter.dot
	rm -f gutter.png
	rm -f gutter.c