1
#***********************************************
2
# This file is part of the NRTB project (https://launchpad.net/nrtb).
4
# NRTB is free software: you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License as published by
6
# the Free Software Foundation, either version 3 of the License, or
7
# (at your option) any later version.
9
# NRTB is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
# GNU General Public License for more details.
14
# You should have received a copy of the GNU General Public License
15
# along with NRTB. If not, see <http://www.gnu.org/licenses/>.
17
#***********************************************
23
@cp -v ${target}.h ../include/
24
@cp -v ${target}.o ../obj/
27
${target}_test: ${target}.o ${target}_test.cpp
29
g++ -c -O3 ${target}_test.cpp -I ../include ${bargs}
30
g++ -o ${target}_test ${target}_test.o ${target}.o ${largs}
33
${target}.o: ${target}.cpp ${target}.h Makefile
35
g++ -c -O3 ${target}.cpp -I ../include ${bargs}
38
@rm -vf *.o ../include/${target}.h ../obj/${target}.o ${target}_test
39
@echo all objects and executables have been erased.
41
switches=-std=gnu++11 -D _GLIBCXX_USE_SCHED_YIELD -D _GLIBCXX_USE_NANOSLEEP
42
libs=../../common/lib/nrtb_common.a -lpthread
43
include=-I../../common/include -I../include
44
bargs=${switches} ${include}
45
largs=${switches} ${libs}