diff CbC-examples/Makefile @ 127:4c56639505ff

fix function.c and add CbC-example Makefile
author mir3636
date Wed, 11 Apr 2018 18:46:58 +0900
parents
children fe568345ddd5
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CbC-examples/Makefile	Wed Apr 11 18:46:58 2018 +0900
@@ -0,0 +1,9 @@
+TEST = arg.exe conv1.exe fact-a.exe goto.exe loto6.exe stack1.exe test02.exe test05.exe test1.exe test2.exe test_cs.exe test_csp1.exe test_env.exe test_func2code.exe test_para2.exe test_para3.exe test_para4.exe test_para.exe test_tree.exe tmp1.exe tmp2.exe tmp4.exe tmpa.exe too-long-argument.exe
+
+.SUFFIXES: .exe
+
+.c.exe : 
+	${CBC_COMPILER} $(CFLAGS) -o $@ $<
+
+test : $(TEST)
+	for exe in ${TEST}; do; ./$${exe} ; done