summaryrefslogtreecommitdiff
path: root/viterbi_generator/Makefile
diff options
context:
space:
mode:
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