~nrtb-core/nrtb/alpha

« back to all changes in this revision

Viewing changes to cpp/sim_engine/main/Makefile

  • Committer: Rick Stovall
  • Date: 2013-11-16 21:09:50 UTC
  • mfrom: (15.1.16 ricks-sprint-003)
  • Revision ID: rick_stovall_fpstovall-20131116210950-riiyz7lv1njccv96
Merging sprint-003. some refactoring, a couple bug fixes, and the interthread communications modules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#***********************************************
 
2
# This file is part of the NRTB project (https://launchpad.net/nrtb).
 
3
#
 
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.
 
8
#
 
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.
 
13
#
 
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/>.
 
16
#
 
17
#***********************************************
 
18
 
 
19
target=../bin/simengine
 
20
 
 
21
${target}:      simengine.o
 
22
        @rm -f ${target}
 
23
        g++ -o ${target} simengine.o ${largs}
 
24
 
 
25
 
 
26
simengine.o:    simengine.cpp Makefile
 
27
        @rm -f simengine.o
 
28
        g++ -c -O3 simengine.cpp ${bargs} 
 
29
 
 
30
clean:
 
31
        @rm -vf *.o ${target}
 
32
        @echo all objects and executables have been erased.
 
33
 
 
34
lib: ${target}
 
35
 
 
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}