From 77ecd139efe72b436654b9204a2aa2cdca1988d8 Mon Sep 17 00:00:00 2001 From: NĂ©lio Laranjeiro Date: Sat, 22 Mar 2008 20:02:35 +0100 Subject: Update the makefile file. --- digital/io/src/getsamples/Makefile | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/digital/io/src/getsamples/Makefile b/digital/io/src/getsamples/Makefile index dfb61442..3cf5a03a 100644 --- a/digital/io/src/getsamples/Makefile +++ b/digital/io/src/getsamples/Makefile @@ -1,24 +1,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 +all: getSamplesFsm.fsm getSamplesFsm.conf + make prgm + make exe + make dot + make png -getsamples.h getsamples_cb_skel.c getsamples_cb.h: getsamples.c +prgm: getSamplesFsm.fsm getSamplesFsm.conf + python ../../../../tools/dfagen/dfagen.py -o c -d $< -c getSamplesFsm.conf -p getsamples -getsamples.o: getsamples_cb.h getsamples.h -getsamples_cb.o: getsamples_cb.h getsamples.h +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 - python ../../../../tools/dfagen/dfagen.py -o dot -d getSamplesFsm.fsm -p getsamples +dot: getSamplesFsm.fsm getSamplesFsm.conf + python ../../../../tools/dfagen/dfagen.py -o dot -d $< -c getSamplesFsm.conf -p getsamples -png: getSamplesFsm.fsm - make dot - dot -Tpng getsamples.dot -o getsamples.png +png: getsamples.dot + dot -Tpng -o getsamples.png getsamples.dot 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 + rm -f getsamples* -- cgit v1.2.3