-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.inc
42 lines (33 loc) · 1.24 KB
/
Makefile.inc
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
mkfile_path := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
APPL_COBJS +=
# Shellスクリプトで、moduleディレクトリ中のソースコード名をオブジェクトファイル名に変換している
APPL_CXXOBJS += $(shell echo \
`ls ${mkfile_path}module/*.cpp | \
sed -r 's/(\/.*)*\/(.*\.)cpp/\2o/g'`)
APPL_CXXOBJS += $(shell echo \
`ls ${mkfile_path}module/*/*.cpp | \
sed -r 's/(\/.*)*\/(.*\.)cpp/\2o/g'`)
SRCLANG := c++
ifdef CONFIG_EV3RT_APPLICATION
# Include libraries
include $(EV3RT_SDK_LIB_DIR)/libcpp-ev3/Makefile
endif
# ソースコードのあるディレクトリを指定する?
APPL_DIRS += \
$(mkfile_path)app \
$(mkfile_path)module \
$(mkfile_path)module/API \
$(mkfile_path)module/Motion \
$(mkfile_path)module/Calculator \
$(mkfile_path)module/common
# ヘッダファイルのあるディレクトリを指定する?
INCLUDES += \
-I$(mkfile_path)app \
-I$(mkfile_path)module \
-I$(ETROBO_HRP3_WORKSPACE)/etroboc_common \
-I$(mkfile_path)module/API \
-I$(mkfile_path)module/Motion \
-I$(mkfile_path)module/Calculator \
-I$(mkfile_path)module/common
COPTS += -std=gnu++11
COPTS += -DMAKE_EV3