This repository has been archived by the owner on Jun 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
makefile_robot_i86Linux2.6gcc4.4.5
112 lines (99 loc) · 3.91 KB
/
makefile_robot_i86Linux2.6gcc4.4.5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
######################################################################
# makefile_robot_i86Linux2.6gcc4.4.5
#
# (c) Copyright, Real-Time Innovations, 2012. All rights reserved.
# No duplications, whole or partial, manual or electronic, may be made
# without express written permission. Any such copies, or
# revisions thereof, must display this notice unaltered.
# This code contains trade secrets of Real-Time Innovations, Inc.
#
#
# This makefile was automatically generated by rtiddsgen.
#
# To compile, type:
# gmake -f makefile_robot_i86Linux2.6gcc4.4.5
#
# Note: This makefile is only meant to build our example applications and
# may require alterations to build on your system.
#
# This makefile assumes that your build environment is already correctly
# configured. (For example, the correct version of your compiler and
# linker should be on your PATH.)
######################################################################
###############################################################################
# Ensure $BOOSTHOME is defined
###############################################################################
ifeq ($(BOOSTHOME), )
all:
@echo "***************************************************************"
@echo "The environment variable 'BOOSTHOME' is not set!"
@echo "To use this makefile you need to set BOOSTHOME to the directory"
@echo "where you have Boost Libraries installed."
@echo "***************************************************************"
@false
endif
ifeq ($(CXX), clang++)
CXXFLAGS = -m32 -std=c++0x \
-Wno-return-type-c-linkage \
-Wno-deprecated-register
else
CXXFLAGS = -m32 -std=c++0x
endif
CXX = colorgcc
CXXLD = g++
CXXLDFLAGS = -m32 -static-libgcc
syslibs_i86Linux2.6gcc4.4.5 = -ldl -lnsl -lm -lpthread -lrt
DEFINES_ARCH_SPECIFIC = -DRTI_UNIX -DRTI_LINUX -DUSE_RTI_CONNEXT \
-DUSE_BOOST_FUTURE \
-DUSE_OPTIONAL_RPC_API\
-DOMG_DDS_RPC_REFERENCE_IMPLEMENTATION\
-DOMG_DDS_RPC_BASIC_PROFILE \
-Doverride=
DEFINES = $(DEFINES_ARCH_SPECIFIC) $(cxx_DEFINES_ARCH_SPECIFIC)
INCLUDES = -I. -I$(NDDSHOME)/include -I$(NDDSHOME)/include/ndds\
-I$(BOOSTHOME)
LIBS = -L$(NDDSHOME)/lib/i86Linux2.6gcc4.4.5 \
-L$(BOOSTHOME)/stage/lib \
-l rticonnextmsgcppz -lnddscppz -lnddscz \
-lnddscorez $(syslibs_i86Linux2.6gcc4.4.5) \
-lboost_thread -lboost_system
CDRSOURCES = robot.idl
COMMONSOURCES = common.cxx \
function_call.cxx \
request_reply.cxx \
RobotControlSupport.cxx \
robot_func.cxx \
robot_reqrep.cxx \
robot.cxx \
robotPlugin.cxx \
robotSupport.cxx \
rpc_types.cxx \
rpc_typesSupport.cxx \
rpc_typesPlugin.cxx
EXEC = robot_test
DIRECTORIES = objs.dir objs/i86Linux2.6gcc4.4.5.dir
COMMONOBJS = $(COMMONSOURCES:%.cxx=objs/i86Linux2.6gcc4.4.5/%.o)
# We actually stick the objects in a sub directory to keep your directory clean.
i86Linux2.6gcc4.4.5 : $(DIRECTORIES) $(COMMONOBJS) \
$(EXEC:%=objs/i86Linux2.6gcc4.4.5/%.o) \
$(EXEC:%=objs/i86Linux2.6gcc4.4.5/%.out)
objs/i86Linux2.6gcc4.4.5/%.out : objs/i86Linux2.6gcc4.4.5/%.o
$(CXXLD) $(CXXLDFLAGS) -o $(@:%.out=%) $(@:%.out=%.o) $(COMMONOBJS) $(LIBS)
objs/i86Linux2.6gcc4.4.5/%.o : %.cxx robot.h
$(CXX) $(CXXFLAGS) -o $@ $(DEFINES) $(INCLUDES) -c $<
#
# Uncomment these lines if you want the support files regenerated when idl
# file is modified
#
#robot.cxx robot.h \
#robotPlugin.cxx robotPlugin.h \
#robotSupport.cxx robotSupport.h : \
# robot.idl
# $(NDDSHOME)/scripts/rtiddsgen robot.idl -replace
# Here is how we create those subdirectories automatically.
%.dir :
@echo "Checking directory $*"
@if [ ! -d $* ]; then \
echo "Making directory $*"; \
mkdir -p $* ; \
fi;