~nrtb-core/nrtb/alpha

« back to all changes in this revision

Viewing changes to cpp/sim_engine/control_interface/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=control_interface
 
20
 
 
21
lib:    ${target}_test
 
22
        @./${target}_test
 
23
        @cp -v ${target}.h ../include/
 
24
        @cp -v ${target}.o ../obj/
 
25
        @echo build complete
 
26
 
 
27
${target}_test: ${target}.o ${target}_test.cpp
 
28
        @rm -f ${target}_test
 
29
        g++ -c -O3 ${target}_test.cpp -I ../include ${bargs} 
 
30
        g++ -o ${target}_test ${target}_test.o ${target}.o ${largs}
 
31
 
 
32
 
 
33
${target}.o:    ${target}.cpp ${target}.h Makefile
 
34
        @rm -f ${target}.o
 
35
        g++ -c -O3 ${target}.cpp -I ../include ${bargs} 
 
36
 
 
37
clean:
 
38
        @rm -vf *.o ../include/${target}.h ../obj/${target}.o ${target}_test
 
39
        @echo all objects and executables have been erased.
 
40
 
 
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}
 
46
 
 
47