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
#***********************************************
19
target=../bin/simengine
21
${target}: simengine.o
23
g++ -o ${target} simengine.o ${largs}
26
simengine.o: simengine.cpp Makefile
28
g++ -c -O3 simengine.cpp ${bargs}
32
@echo all objects and executables have been erased.
36
switches=-std=gnu++11 -D _GLIBCXX_USE_SCHED_YIELD -D _GLIBCXX_USE_NANOSLEEP
37
libs=../../common/lib/nrtb_common.a -lpthread
38
include=-I../../common/include -I../include
39
bargs=${switches} ${include}
40
largs=${switches} ${libs}