source: azure_iot_hub_f767zi/trunk/azure_iot_sdk/Makefile@ 468

Last change on this file since 468 was 468, checked in by coas-nagasima, 2 years ago

Ethernet版でもビルドが通るよう変更。

File size: 11.0 KB
Line 
1# This file was automagically generated by mbed.org. For more information,
2# see http://mbed.org/handbook/Exporting-to-GCC-ARM-Embedded
3
4###############################################################################
5# Boiler-plate
6
7# cross-platform directory manipulation
8ifeq ($(shell echo $$OS),$$OS)
9 MAKEDIR = if not exist "$(1)" mkdir "$(1)"
10 RM = rmdir /S /Q "$(1)"
11else
12 MAKEDIR = '$(SHELL)' -c "mkdir -p \"$(1)\""
13 RM = '$(SHELL)' -c "rm -rf \"$(1)\""
14endif
15
16OBJDIR := Debug
17# Move to the build directory
18ifeq (,$(filter $(OBJDIR),$(notdir $(CURDIR))))
19.SUFFIXES:
20mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
21MAKETARGET = '$(MAKE)' --no-print-directory -C $(OBJDIR) -f '$(mkfile_path)' \
22 'SRCDIR=$(CURDIR)' $(MAKECMDGOALS)
23.PHONY: $(OBJDIR) clean
24all:
25 +@$(call MAKEDIR,$(OBJDIR))
26 +@$(MAKETARGET)
27$(OBJDIR): all
28Makefile : ;
29% :: $(OBJDIR) ; :
30clean :
31 $(call RM,$(OBJDIR))
32
33else
34
35# trick rules into thinking we are in the root, when we are in the bulid dir
36VPATH = ../../azure_iot_sdk
37
38# Boiler-plate
39###############################################################################
40# Project settings
41
42PROJECT := azure_iot_sdk
43
44
45# Project settings
46###############################################################################
47# Objects and Paths
48
49OBJECTS += c-utility/adapters/agenttime_mbed.o
50OBJECTS += c-utility/adapters/httpapi_compact.o
51OBJECTS += c-utility/adapters/lock_toppers.o
52OBJECTS += c-utility/adapters/platform_toppers.o
53OBJECTS += c-utility/adapters/socketio_lwip.o
54OBJECTS += c-utility/adapters/socketio_esp_at.o
55OBJECTS += c-utility/adapters/threadapi_toppers.o
56OBJECTS += c-utility/adapters/tickcounter_toppers.o
57OBJECTS += c-utility/adapters/tlsio_esp_at.o
58OBJECTS += c-utility/adapters/tlsio_wolfssl.o
59OBJECTS += c-utility/adapters/uniqueid_stub.o
60OBJECTS += c-utility/src/azure_base32.o
61OBJECTS += c-utility/src/azure_base64.o
62OBJECTS += c-utility/src/buffer.o
63OBJECTS += c-utility/src/connection_string_parser.o
64OBJECTS += c-utility/src/consolelogger.o
65OBJECTS += c-utility/src/constbuffer.o
66OBJECTS += c-utility/src/constmap.o
67OBJECTS += c-utility/src/crt_abstractions.o
68OBJECTS += c-utility/src/dns_resolver_sync.o
69OBJECTS += c-utility/src/doublylinkedlist.o
70OBJECTS += c-utility/src/gb_rand.o
71OBJECTS += c-utility/src/gb_stdio.o
72OBJECTS += c-utility/src/gb_time.o
73OBJECTS += c-utility/src/gballoc.o
74OBJECTS += c-utility/src/hmac.o
75OBJECTS += c-utility/src/hmacsha256.o
76OBJECTS += c-utility/src/http_proxy_io.o
77OBJECTS += c-utility/src/httpapiex.o
78OBJECTS += c-utility/src/httpapiexsas.o
79OBJECTS += c-utility/src/httpheaders.o
80OBJECTS += c-utility/src/map.o
81OBJECTS += c-utility/src/optionhandler.o
82OBJECTS += c-utility/src/sastoken.o
83OBJECTS += c-utility/src/sha1.o
84OBJECTS += c-utility/src/sha224.o
85OBJECTS += c-utility/src/sha384-512.o
86OBJECTS += c-utility/src/singlylinkedlist.o
87OBJECTS += c-utility/src/string_token.o
88OBJECTS += c-utility/src/string_tokenizer.o
89OBJECTS += c-utility/src/strings.o
90OBJECTS += c-utility/src/urlencode.o
91OBJECTS += c-utility/src/usha.o
92OBJECTS += c-utility/src/utf8_checker.o
93OBJECTS += c-utility/src/uuid.o
94OBJECTS += c-utility/src/uws_client.o
95OBJECTS += c-utility/src/uws_frame_encoder.o
96OBJECTS += c-utility/src/vector.o
97OBJECTS += c-utility/src/wsio.o
98OBJECTS += c-utility/src/xio.o
99OBJECTS += c-utility/src/xlogging.o
100OBJECTS += certs/certs.o
101OBJECTS += deps/parson/parson.o
102OBJECTS += deps/uhttp/src/uhttp.o
103OBJECTS += iothub_client/src/blob.o
104OBJECTS += iothub_client/src/iothub.o
105OBJECTS += iothub_client/src/iothub_client.o
106OBJECTS += iothub_client/src/iothub_client_authorization.o
107OBJECTS += iothub_client/src/iothub_client_core.o
108OBJECTS += iothub_client/src/iothub_client_core_ll.o
109OBJECTS += iothub_client/src/iothub_client_diagnostic.o
110OBJECTS += iothub_client/src/iothub_client_ll.o
111OBJECTS += iothub_client/src/iothub_client_ll_uploadtoblob.o
112OBJECTS += iothub_client/src/iothub_client_retry_control.o
113OBJECTS += iothub_client/src/iothub_device_client_ll.o
114OBJECTS += iothub_client/src/iothub_message.o
115OBJECTS += iothub_client/src/iothub_transport_ll_private.o
116OBJECTS += iothub_client/src/iothubtransport.o
117OBJECTS += iothub_client/src/iothubtransport_mqtt_common.o
118OBJECTS += iothub_client/src/iothubtransporthttp.o
119OBJECTS += iothub_client/src/iothubtransportmqtt.o
120OBJECTS += iothub_client/src/iothubtransportmqtt_websockets.o
121OBJECTS += iothub_client/src/version.o
122OBJECTS += provisioning_client/adapters/hsm_client_data.o
123OBJECTS += provisioning_client/adapters/hsm_client_key.o
124OBJECTS += provisioning_client/src/iothub_auth_client.o
125OBJECTS += provisioning_client/src/iothub_security_factory.o
126OBJECTS += provisioning_client/src/prov_auth_client.o
127OBJECTS += provisioning_client/src/prov_device_client.o
128OBJECTS += provisioning_client/src/prov_device_ll_client.o
129OBJECTS += provisioning_client/src/prov_security_factory.o
130OBJECTS += provisioning_client/src/prov_transport_http_client.o
131OBJECTS += provisioning_client/src/prov_transport_mqtt_client.o
132OBJECTS += provisioning_client/src/prov_transport_mqtt_common.o
133OBJECTS += provisioning_client/src/prov_transport_mqtt_ws_client.o
134OBJECTS += serializer/src/methodreturn.o
135OBJECTS += serializer/src/multitree.o
136OBJECTS += serializer/src/schema.o
137OBJECTS += serializer/src/schemalib.o
138OBJECTS += serializer/src/schemaserializer.o
139OBJECTS += serializer/src/datamarshaller.o
140OBJECTS += serializer/src/datapublisher.o
141OBJECTS += serializer/src/dataserializer.o
142OBJECTS += serializer/src/iotdevice.o
143OBJECTS += serializer/src/jsondecoder.o
144OBJECTS += serializer/src/jsonencoder.o
145OBJECTS += serializer/src/agenttypesystem.o
146OBJECTS += serializer/src/codefirst.o
147OBJECTS += serializer/src/commanddecoder.o
148OBJECTS += umqtt/src/mqtt_client.o
149OBJECTS += umqtt/src/mqtt_codec.o
150OBJECTS += umqtt/src/mqtt_message.o
151
152INCLUDE_PATHS += -I../../asp_baseplatform
153INCLUDE_PATHS += -I../../asp_baseplatform/include
154INCLUDE_PATHS += -I../../asp_baseplatform/arch
155INCLUDE_PATHS += -I../../asp_baseplatform/arch/arm_m_gcc/common
156INCLUDE_PATHS += -I../../asp_baseplatform/arch/arm_m_gcc/stm32f7xx
157INCLUDE_PATHS += -I../../asp_baseplatform/target/stm32f767nucleo144_gcc
158INCLUDE_PATHS += -I../../asp_baseplatform/lwip/lwip-2.1.2/src/include
159INCLUDE_PATHS += -I../../asp_baseplatform/lwip/lwip-2.1.2/src/include/compat/posix
160INCLUDE_PATHS += -I../../asp_baseplatform/lwip/contrib-2.1.0/ports/toppers/include
161INCLUDE_PATHS += -I../../asp_baseplatform/lwip/contrib-2.1.0
162INCLUDE_PATHS += -I../../asp_baseplatform/OBJ/STM32F767NUCLEO144_GCC/MAC
163INCLUDE_PATHS += -I../../asp_baseplatform/monitor
164INCLUDE_PATHS += -I../../asp_baseplatform/files
165INCLUDE_PATHS += -I../../azure_iot_sdk/c-utility/inc
166INCLUDE_PATHS += -I../../azure_iot_sdk/c-utility/pal/toppers
167INCLUDE_PATHS += -I../../azure_iot_sdk/iothub_client/inc
168INCLUDE_PATHS += -I../../azure_iot_sdk/iothub_client/inc/internal
169INCLUDE_PATHS += -I../../azure_iot_sdk/provisioning_client/adapters
170INCLUDE_PATHS += -I../../azure_iot_sdk/provisioning_client/inc
171INCLUDE_PATHS += -I../../azure_iot_sdk/provisioning_client/inc/azure_prov_client/internal
172INCLUDE_PATHS += -I../../azure_iot_sdk/deps/parson
173INCLUDE_PATHS += -I../../azure_iot_sdk/deps/azure-macro-utils-c/inc
174INCLUDE_PATHS += -I../../azure_iot_sdk/deps/uhttp/inc
175INCLUDE_PATHS += -I../../azure_iot_sdk/deps/umock-c/inc
176INCLUDE_PATHS += -I../../azure_iot_sdk/serializer/inc
177INCLUDE_PATHS += -I../../azure_iot_sdk/umqtt/inc
178INCLUDE_PATHS += -I../../wolfssl-4.7.0/wolfssl
179INCLUDE_PATHS += -I../../wolfssl-4.7.0/wolfssl/wolfcrypt
180INCLUDE_PATHS += -I../../wolfssl-4.7.0
181INCLUDE_PATHS += -I../../zlib-1.2.11/src
182
183# Objects and Paths
184###############################################################################
185# Tools and Flags
186
187AS = arm-none-eabi-gcc
188CC = arm-none-eabi-gcc
189CPP = arm-none-eabi-g++
190AR = arm-none-eabi-ar
191RANLIB = arm-none-eabi-ranlib
192
193
194C_FLAGS += -std=gnu11
195C_FLAGS += -mcpu=cortex-m4
196C_FLAGS += -march=armv7e-m
197C_FLAGS += -mthumb
198C_FLAGS += -mlittle-endian
199C_FLAGS += -mfloat-abi=hard
200C_FLAGS += -mfpu=fpv4-sp-d16
201C_FLAGS += -Os
202C_FLAGS += -fmessage-length=0
203C_FLAGS += -fsigned-char
204C_FLAGS += -ffunction-sections
205C_FLAGS += -fdata-sections
206C_FLAGS += -Wall
207C_FLAGS += -Wextra
208C_FLAGS += -Wno-unused-parameter
209C_FLAGS += -Wno-missing-field-initializers
210C_FLAGS += -Wnull-dereference
211
212C_FLAGS += -Wno-unused-variable
213C_FLAGS += -Wno-unused-function
214
215C_FLAGS += -g3
216C_FLAGS += -Wstack-usage=256
217
218C_FLAGS += -DWOLFSSL_USER_SETTINGS
219C_FLAGS += -DCYASSL_USER_SETTINGS
220C_FLAGS += -DUSE_WOLFSSL=1
221C_FLAGS += -DHSM_TYPE_SYMM_KEY
222C_FLAGS += -DUSE_PROV_MODULE
223C_FLAGS += -Dget_time=azure_get_time
224
225CXX_FLAGS += -std=gnu++11
226CXX_FLAGS += -mcpu=cortex-m4
227CXX_FLAGS += -march=armv7e-m
228CXX_FLAGS += -mthumb
229CXX_FLAGS += -mlittle-endian
230CXX_FLAGS += -mfloat-abi=hard
231CXX_FLAGS += -mfpu=fpv4-sp-d16
232CXX_FLAGS += -Os
233CXX_FLAGS += -fmessage-length=0
234CXX_FLAGS += -fsigned-char
235CXX_FLAGS += -ffunction-sections
236CXX_FLAGS += -fdata-sections
237CXX_FLAGS += -Wall
238CXX_FLAGS += -Wextra
239CXX_FLAGS += -Wno-unused-parameter
240CXX_FLAGS += -Wno-missing-field-initializers
241CXX_FLAGS += -Wnull-dereference
242
243CXX_FLAGS += -g3
244CXX_FLAGS += -Wstack-usage=256
245
246CXX_FLAGS += -DWOLFSSL_USER_SETTINGS
247CXX_FLAGS += -DCYASSL_USER_SETTINGS
248CXX_FLAGS += -DUSE_WOLFSSL=1
249CXX_FLAGS += -DHSM_TYPE_SYMM_KEY
250CXX_FLAGS += -DUSE_PROV_MODULE
251CXX_FLAGS += -Dget_time=azure_get_time
252
253ASM_FLAGS += -x
254ASM_FLAGS += assembler-with-cpp
255ASM_FLAGS += -mcpu=cortex-m4
256ASM_FLAGS += -march=armv7e-m
257ASM_FLAGS += -mthumb
258ASM_FLAGS += -mlittle-endian
259ASM_FLAGS += -mfloat-abi=hard
260ASM_FLAGS += -mfpu=fpv4-sp-d16
261ASM_FLAGS += -Os
262ASM_FLAGS += -fmessage-length=0
263ASM_FLAGS += -fsigned-char
264ASM_FLAGS += -ffunction-sections
265ASM_FLAGS += -fdata-sections
266ASM_FLAGS += -Wall
267ASM_FLAGS += -Wextra
268ASM_FLAGS += -Wno-unused-parameter
269ASM_FLAGS += -Wno-missing-field-initializers
270ASM_FLAGS += -Wnull-dereference
271ASM_FLAGS += -g3
272ASM_FLAGS += -Wstack-usage=256
273
274
275# Tools and Flags
276###############################################################################
277# Rules
278
279.PHONY: all lst size
280
281
282all: lib$(PROJECT).a
283
284
285.s.o:
286 +@$(call MAKEDIR,$(dir $@))
287 +@echo "Assemble: $(notdir $<)"
288 @$(AS) -c $(ASM_FLAGS) -o $@ $<
289
290
291.S.o:
292 +@$(call MAKEDIR,$(dir $@))
293 +@echo "Assemble: $(notdir $<)"
294 @$(AS) -c $(ASM_FLAGS) -o $@ $<
295
296.c.o:
297 +@$(call MAKEDIR,$(dir $@))
298 +@echo "Compile: $(notdir $<)"
299 @$(CC) $(C_FLAGS) $(INCLUDE_PATHS) -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
300
301.cpp.o:
302 +@$(call MAKEDIR,$(dir $@))
303 +@echo "Compile: $(notdir $<)"
304 @$(CPP) $(CXX_FLAGS) $(INCLUDE_PATHS) -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
305
306lib$(PROJECT).a: $(OBJECTS)
307 rm -f lib$(PROJECT).a
308 $(AR) -rcs lib$(PROJECT).a $(OBJECTS)
309 $(RANLIB) lib$(PROJECT).a
310
311
312
313# Rules
314###############################################################################
315# Dependencies
316
317DEPS = $(OBJECTS:.o=.d) $(SYS_OBJECTS:.o=.d)
318-include $(DEPS)
319endif
320
321# Dependencies
322###############################################################################
Note: See TracBrowser for help on using the repository browser.