-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruckig.Makefile
76 lines (67 loc) · 2.36 KB
/
ruckig.Makefile
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
#
# Copyright (c) 2019 Jeong Han Lee
# Copyright (c) 2018 - 2019 European Spallation Source ERIC
#
# The program is free software: you can redistribute
# it and/or modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 2 of the
# License, or any newer version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program. If not, see https://www.gnu.org/licenses/gpl-2.0.txt
#
#
# Author : Jeong Han Lee
# email : [email protected]
# Date : Thursday, March 28 23:06:01 CET 2019
# version : 0.0.4
#
where_am_I := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
include $(E3_REQUIRE_TOOLS)/driver.makefile
include $(E3_REQUIRE_CONFIG)/DECOUPLE_FLAGS
# Not working right now because bug in E3. Use patched sources with flat include structure and no c++17 instead
#KEEP_HEADER_SUBDIRS += include
#PATCH_DIR := ""
PATCH_DIR := patch-cpp11-flat-include
#
APPSRC := $(PATCH_DIR)/src
APPINC := $(PATCH_DIR)/include
USR_CFLAGS += -shared -fPIC -Wall -Wextra
# c++17 not allowed because of centos 7
#USR_CPPFLAGS += -shared -fPIC -Wall -Wextra -std=c++17
USR_CPPFLAGS += -shared -fPIC -Wall -Wextra
USR_LDFLAGS += -lstdc++
USR_INCLUDES += -I$(where_am_I)/include
# Don't include debug symbols in the binary needed for a debugger
# We don't have a debuuger, so shrink the size from 29MB to 9MB under
# /opt/epics/modules
OPT_CXXFLAGS_YES = -O3
HEADERS += $(APPINC)/brake.hpp
HEADERS += $(APPINC)/block.hpp
HEADERS += $(APPINC)/input_parameter.hpp
HEADERS += $(APPINC)/output_parameter.hpp
HEADERS += $(APPINC)/position.hpp
HEADERS += $(APPINC)/profile.hpp
HEADERS += $(APPINC)/reflexxes_comparison.hpp
HEADERS += $(APPINC)/roots.hpp
HEADERS += $(APPINC)/ruckig.hpp
HEADERS += $(APPINC)/trajectory.hpp
HEADERS += $(APPINC)/utils.hpp
HEADERS += $(APPINC)/velocity.hpp
HEADERS += $(APPINC)/optional.hpp
SOURCES += $(APPSRC)/position-step1.cpp
SOURCES += $(APPSRC)/position-step2.cpp
SOURCES += $(APPSRC)/velocity-step1.cpp
SOURCES += $(APPSRC)/velocity-step2.cpp
SOURCES += $(APPSRC)/brake.cpp
db:
.PHONY: db
#
.PHONY: vlibs
vlibs:
#