summaryrefslogtreecommitdiff
path: root/viterbi_generator/Makefile
diff options
context:
space:
mode:
authorAndreas Bogk <andreas@pt141.(none)>2009-01-15 17:17:29 +0100
committerAndreas Bogk <andreas@pt141.(none)>2009-01-15 17:17:29 +0100
commit7ebd609b4f4139f4dac8627ac00678de89ef4575 (patch)
tree44cc5b2816c8096e6e22781ee4332d840c5658a4 /viterbi_generator/Makefile
parent602a3c8aa8a3d9bd4d93deda6ac932404f39584d (diff)
Viterbi generator by Piotr Krysik.
Diffstat (limited to 'viterbi_generator/Makefile')
-rw-r--r--viterbi_generator/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/viterbi_generator/Makefile b/viterbi_generator/Makefile
new file mode 100644
index 0000000..4730a7c
--- /dev/null
+++ b/viterbi_generator/Makefile
@@ -0,0 +1,22 @@
+Lh=4
+CXX=g++
+CFLAGS=-O
+
+viterbi_detector.c: ./utils/viterbi_generator.m ./utils/lower_utils/equations_gen.m make_function.m
+ @./make_function.m $(Lh)
+
+test: tests/test_gen.m tests/test_check.m ./utils/viterbi_generator.m ./utils/lower_utils/equations_gen.m
+ @./tests/$@_gen.m $(Lh)
+ @$(CXX) $(LDFLAGS) $(CFLAGS) $@.cpp -o $@
+ @./$@ > $@_result
+# @less $@_result
+# @rm $@.c
+ @rm $@
+ @./tests/$@_check.m $(Lh)
+ @rm $@_result
+
+
+clean:
+ rm -f *.o
+ rm -f *.c
+ rm *~
personal git repositories of Harald Welte. Your mileage may vary