Ron Shacham | e7dfeb8 | 2020-04-24 14:46:48 -0400 | [diff] [blame] | 1 | |
| 2 | coverage_opts = -ftest-coverage -fprofile-arcs |
| 3 | |
| 4 | binaries = unit_test |
| 5 | |
| 6 | # RMR emulation |
| 7 | rmr_em.o:: rmr_em.c |
| 8 | cc -g rmr_em.c -c |
| 9 | |
| 10 | unit_test:: unit_test.cpp rmr_em.o |
| 11 | # do NOT link the xapp lib; we include all modules in the test programme |
| 12 | g++ -g $(coverage_opts) -I ../src/messaging unit_test.cpp -o unit_test rmr_em.o -lpthread |
| 13 | |
| 14 | # prune gcov files generated by system include files |
| 15 | clean:: |
| 16 | rm -f *.h.gcov *.c.gcov |
| 17 | |
| 18 | # ditch anything that can be rebuilt |
| 19 | nuke:: |
| 20 | rm -f *.a *.o *.gcov *.gcda *.gcno core a.out $(binaries) |
| 21 | |