blob: fcbf3619bdda8d9fe1094a027bd97eb73f7c5aee [file] [log] [blame]
Ron Shachame7dfeb82020-04-24 14:46:48 -04001
2coverage_opts = -ftest-coverage -fprofile-arcs
3
4binaries = unit_test
5
6# RMR emulation
7rmr_em.o:: rmr_em.c
8 cc -g rmr_em.c -c
9
10unit_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
15clean::
16 rm -f *.h.gcov *.c.gcov
17
18# ditch anything that can be rebuilt
19nuke::
20 rm -f *.a *.o *.gcov *.gcda *.gcno core a.out $(binaries)
21