-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.custom
107 lines (83 loc) · 3.08 KB
/
Makefile.custom
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
##################################################
# general information ############################
##################################################
# This will influence the name of the library,
# which is set to lib${PROJECT_NAME}.so
PROJECT_NAME=${FOLDER}
# where to install the project
INSTALL_PREFIX=/tmp/
# package description that is written into the
# pkg-config file
PACKAGE_DESCRIPTION=ICLProject ${PROJECT_NAME}
##################################################
# compilation ####################################
##################################################
# Add package-configs packages that should be
# included (e.g. PC_DEPS=ICL-9.4 gtest xine)
PC_DEPS=ICL-9.4
# Qt specific header files, that need a moc call
# without src/-prefix e.g.
# MOC_HEADERS=myA.h myB.h myC.h
# optionally define C++-Compiler flags
# CXXFLAGS=
# optionally define C++-C-Pre-Processor flags
# CXXCPP=
LDFLAGS=-Wl,-rpath=/opt/icl/lib
##################################################
# extra files to install #########################
##################################################
# these extra files are also installed to
# ${INSTALL_PREFIX}/bin/${PROJECT_NAME}
# e.g. useful scripts. In most cases, this is simpler
# than implementing the custom-install-hook rule
# EXTRA_INSTALL_TO_BIN=
# these extra resource files are installted to
# ${INSTALL_PREFIX}/etc/${PROJECT_NAME}
# e.g. configuration files
# EXTRA_INSTALL_TO_ETC=
CBF_DSA_OKC_KDL_LIB=/usr/local/lib
CBFPLANNER_REBA_LIB=.
KUKA_LOWLEVEL_LIB_SET=-lcbf -lopenkcfri -lrt -lpthread -lm -lSDL -lSDL_mixer
MORELIBS+=$(KUKA_LOWLEVEL_LIB_SET) \
-L$(CBF_DSA_OKC_KDL_LIB) -L$(CBFPLANNER_REBA_LIB) \
-lorocos-kdl\
-Wl,-rpath=$(CBF_DSA_OKC_KDL_LIB) -Wl,-rpath=$(CBFPLANNER_REBA_LIB) \
# optionally define C++-Compiler flags
CXXFLAGS+=-I/usr/local/include/ \
-I/usr/local/include/cbf0.2 \
-I/usr/include \
-fPIC -ggdb3
# optionally define C++-C-Pre-Processor flags
CXXCPP=-D no_keywords -DQT_NO_KEYWORDS -DCBF_NDEBUG -DDJALLIL_CONF -std=c++0x
#LDFLAGS=${RSBLDFLAGS} ${KUKA_LOWLEVEL_LIB_SET} ${MORELIBS}
LDFLAGS+=${KUKA_LOWLEVEL_LIB_SET} ${MORELIBS}
# CXXFLAGS+=$(shell pkg-config --cflags cbf0.2)
# LDFLAGS+=$(shell pkg-config --libs cbf0.2)
##################################################
# configuration ##################################
##################################################
# build with debug flags
DEBUG?=TRUE
# do not show actual compiler calls etc.
QUIET?=TRUE
# use colored output (only for bash)
ifeq "${TERM}" "xterm"
COLORED?=TRUE
else
COLORED?=FALSE
endif
# show (approximate) progress
SHOW_PROGRESS?=TRUE
##################################################
# additional build,install and clean rules #######
##################################################
# These rules are optional, but as they are also #
# implemented in the main Makefile, they have #
# to be written in :: (Double-Colon)-Manner #
##################################################
#custom-install-hook ::
# @echo installing custom targets here!
#custom-build-hook ::
# @echo applying custom builds
#custom-clean-hook ::
# @echo applying custom builds