1CFLAGS = -I. -Isrc -I../src 2TESTS = tests/CsvEol.o tests/OpenCre.o tests/DiffExamples.o tests/PoolExercise.o tests/PathCanonExamples.o tests/HashmapExercise.o tests/HashmapCount.o tests/LinkedlistExercise.o tests/CsvExamples.o tests/StackExercise.o tests/VarrayOps.o tests/CfgOps.o tests/TcharAll.o tests/TextTest.o tests/EvalExamples.o tests/SvsemCounter.o tests/SubaExercise.o tests/AdtInit.o tests/SharedAdts.o tests/CfgQueryStringExamples.o tests/CfgSuba.o tests/BitsetOps.o tests/SvcondProdCons.o tests/HashmapCheck.o 3VALGRIND = -v --num-callers=20 --leak-check=yes --leak-resolution=high --show-reachable=yes 4 5all: $(TESTS) tmba.c common.c ../libmba.a 6 $(CC) $(CFLAGS) -o tmba tmba.c common.c $(TESTS) ../libmba.a 7 8.c.o: 9 $(CC) $(CFLAGS) -c -o $*.o $< 10 11vg: 12 valgrind $(VALGRIND) ./tmba 5300 13cg: 14 calltree ./tmba 5700 15 16tone: tone.c tests/CfgOps.c 17 gcc -g -Wall -W -DMSGNO -DUSE_WCHAR -o tone tone.c tests/CfgOps.c ../libmba.a 18run1: 19 valgrind $(VALGRIND) ./tone 20 21clean: 22 rm -f tmba $(TESTS) 23