2 #----------------------------------------------------------------------------------
4 # Copyright (c) 2018-2019 AT&T Intellectual Property.
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
18 #---------------------------------------------------------------------------------
20 # this make file assuems that both NNG and RMR are installed and that the variables
21 # LD_LIBRARY_PATH, LIBRARY_PATH are set correctly.
23 testers = sender pipe_reader sender
25 test_progs = sender unit_test pipe_reader
29 coverage_opts = -ftest-coverage -fprofile-arcs
31 # make with no parms should build tests
35 # ---- testing stuff -----------------------------------------------------------------
39 unit_test: unit_test.c ../mcl.c ../rdc.c
40 gcc -g $(coverage_opts) unit_test.c -o unit_test -lrmr_si -lm -lpthread
42 # ---- housekeeping stuff -------------------------------------------------------------
43 # remove only intermediates
45 rm -f *.o *.gcda *.gcno *.gcov
47 # remove anything that can be rebuilt
49 rm -f *mcl.a $(test_progs)