Makefile 32.3 KB
Newer Older
Martin Horauer's avatar
Martin Horauer committed
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
# This file was automagically generated by mbed.org. For more information, 
# see http://mbed.org/handbook/Exporting-to-GCC-ARM-Embedded

###############################################################################
# Boiler-plate

# cross-platform directory manipulation
ifeq ($(shell echo $$OS),$$OS)
    MAKEDIR = if not exist "$(1)" mkdir "$(1)"
    RM = rmdir /S /Q "$(1)"
else
    MAKEDIR = '$(SHELL)' -c "mkdir -p \"$(1)\""
    RM = '$(SHELL)' -c "rm -rf \"$(1)\""
endif

OBJDIR := BUILD
# Move to the build directory
ifeq (,$(filter $(OBJDIR),$(notdir $(CURDIR))))
.SUFFIXES:
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
MAKETARGET = '$(MAKE)' --no-print-directory -C $(OBJDIR) -f '$(mkfile_path)' \
		'SRCDIR=$(CURDIR)' $(MAKECMDGOALS)
.PHONY: $(OBJDIR) clean
all:
	+@$(call MAKEDIR,$(OBJDIR))
	+@$(MAKETARGET)
$(OBJDIR): all
Makefile : ;
% :: $(OBJDIR) ; :
clean :
	$(call RM,$(OBJDIR))

else

# trick rules into thinking we are in the root, when we are in the bulid dir
VPATH = ..

# Boiler-plate
###############################################################################
# Project settings

PROJECT := APP_BLINKY


# Project settings
###############################################################################
# Objects and Paths

OBJECTS += ./main.o
OBJECTS += ./mbed-os/drivers/AnalogIn.o
OBJECTS += ./mbed-os/drivers/BusIn.o
OBJECTS += ./mbed-os/drivers/BusInOut.o
OBJECTS += ./mbed-os/drivers/BusOut.o
OBJECTS += ./mbed-os/drivers/CAN.o
OBJECTS += ./mbed-os/drivers/Ethernet.o
OBJECTS += ./mbed-os/drivers/FlashIAP.o
OBJECTS += ./mbed-os/drivers/I2C.o
OBJECTS += ./mbed-os/drivers/I2CSlave.o
OBJECTS += ./mbed-os/drivers/InterruptIn.o
OBJECTS += ./mbed-os/drivers/InterruptManager.o
OBJECTS += ./mbed-os/drivers/RawSerial.o
OBJECTS += ./mbed-os/drivers/SPI.o
OBJECTS += ./mbed-os/drivers/SPISlave.o
OBJECTS += ./mbed-os/drivers/Serial.o
OBJECTS += ./mbed-os/drivers/SerialBase.o
OBJECTS += ./mbed-os/drivers/Ticker.o
OBJECTS += ./mbed-os/drivers/Timeout.o
OBJECTS += ./mbed-os/drivers/Timer.o
OBJECTS += ./mbed-os/drivers/TimerEvent.o
OBJECTS += ./mbed-os/drivers/UARTSerial.o
OBJECTS += ./mbed-os/events/EventQueue.o
OBJECTS += ./mbed-os/events/equeue/equeue.o
OBJECTS += ./mbed-os/events/equeue/equeue_mbed.o
OBJECTS += ./mbed-os/events/equeue/equeue_posix.o
OBJECTS += ./mbed-os/events/mbed_shared_queues.o
OBJECTS += ./mbed-os/features/filesystem/Dir.o
OBJECTS += ./mbed-os/features/filesystem/File.o
OBJECTS += ./mbed-os/features/filesystem/FileSystem.o
OBJECTS += ./mbed-os/features/filesystem/bd/ChainingBlockDevice.o
OBJECTS += ./mbed-os/features/filesystem/bd/ExhaustibleBlockDevice.o
OBJECTS += ./mbed-os/features/filesystem/bd/HeapBlockDevice.o
OBJECTS += ./mbed-os/features/filesystem/bd/MBRBlockDevice.o
OBJECTS += ./mbed-os/features/filesystem/bd/ObservingBlockDevice.o
OBJECTS += ./mbed-os/features/filesystem/bd/ProfilingBlockDevice.o
OBJECTS += ./mbed-os/features/filesystem/bd/ReadOnlyBlockDevice.o
OBJECTS += ./mbed-os/features/filesystem/bd/SlicingBlockDevice.o
OBJECTS += ./mbed-os/features/filesystem/fat/ChaN/ff.o
OBJECTS += ./mbed-os/features/filesystem/fat/ChaN/ffunicode.o
OBJECTS += ./mbed-os/features/filesystem/fat/FATFileSystem.o
OBJECTS += ./mbed-os/features/filesystem/littlefs/LittleFileSystem.o
OBJECTS += ./mbed-os/features/filesystem/littlefs/littlefs/lfs.o
OBJECTS += ./mbed-os/features/filesystem/littlefs/littlefs/lfs_util.o
OBJECTS += ./mbed-os/features/frameworks/greentea-client/source/greentea_metrics.o
OBJECTS += ./mbed-os/features/frameworks/greentea-client/source/greentea_serial.o
OBJECTS += ./mbed-os/features/frameworks/greentea-client/source/greentea_test_env.o
OBJECTS += ./mbed-os/features/frameworks/unity/source/unity.o
OBJECTS += ./mbed-os/features/frameworks/utest/mbed-utest-shim.o
OBJECTS += ./mbed-os/features/frameworks/utest/source/unity_handler.o
OBJECTS += ./mbed-os/features/frameworks/utest/source/utest_case.o
OBJECTS += ./mbed-os/features/frameworks/utest/source/utest_default_handlers.o
OBJECTS += ./mbed-os/features/frameworks/utest/source/utest_greentea_handlers.o
OBJECTS += ./mbed-os/features/frameworks/utest/source/utest_harness.o
OBJECTS += ./mbed-os/features/frameworks/utest/source/utest_shim.o
OBJECTS += ./mbed-os/features/frameworks/utest/source/utest_stack_trace.o
OBJECTS += ./mbed-os/features/frameworks/utest/source/utest_types.o
OBJECTS += ./mbed-os/features/mbedtls/platform/src/mbed_trng.o
OBJECTS += ./mbed-os/features/mbedtls/src/aes.o
OBJECTS += ./mbed-os/features/mbedtls/src/aesni.o
OBJECTS += ./mbed-os/features/mbedtls/src/arc4.o
OBJECTS += ./mbed-os/features/mbedtls/src/asn1parse.o
OBJECTS += ./mbed-os/features/mbedtls/src/asn1write.o
OBJECTS += ./mbed-os/features/mbedtls/src/base64.o
OBJECTS += ./mbed-os/features/mbedtls/src/bignum.o
OBJECTS += ./mbed-os/features/mbedtls/src/blowfish.o
OBJECTS += ./mbed-os/features/mbedtls/src/camellia.o
OBJECTS += ./mbed-os/features/mbedtls/src/ccm.o
OBJECTS += ./mbed-os/features/mbedtls/src/certs.o
OBJECTS += ./mbed-os/features/mbedtls/src/cipher.o
OBJECTS += ./mbed-os/features/mbedtls/src/cipher_wrap.o
OBJECTS += ./mbed-os/features/mbedtls/src/cmac.o
OBJECTS += ./mbed-os/features/mbedtls/src/ctr_drbg.o
OBJECTS += ./mbed-os/features/mbedtls/src/debug.o
OBJECTS += ./mbed-os/features/mbedtls/src/des.o
OBJECTS += ./mbed-os/features/mbedtls/src/dhm.o
OBJECTS += ./mbed-os/features/mbedtls/src/ecdh.o
OBJECTS += ./mbed-os/features/mbedtls/src/ecdsa.o
OBJECTS += ./mbed-os/features/mbedtls/src/ecjpake.o
OBJECTS += ./mbed-os/features/mbedtls/src/ecp.o
OBJECTS += ./mbed-os/features/mbedtls/src/ecp_curves.o
OBJECTS += ./mbed-os/features/mbedtls/src/entropy.o
OBJECTS += ./mbed-os/features/mbedtls/src/entropy_poll.o
OBJECTS += ./mbed-os/features/mbedtls/src/error.o
OBJECTS += ./mbed-os/features/mbedtls/src/gcm.o
OBJECTS += ./mbed-os/features/mbedtls/src/havege.o
OBJECTS += ./mbed-os/features/mbedtls/src/hmac_drbg.o
OBJECTS += ./mbed-os/features/mbedtls/src/md.o
OBJECTS += ./mbed-os/features/mbedtls/src/md2.o
OBJECTS += ./mbed-os/features/mbedtls/src/md4.o
OBJECTS += ./mbed-os/features/mbedtls/src/md5.o
OBJECTS += ./mbed-os/features/mbedtls/src/md_wrap.o
OBJECTS += ./mbed-os/features/mbedtls/src/memory_buffer_alloc.o
OBJECTS += ./mbed-os/features/mbedtls/src/net_sockets.o
OBJECTS += ./mbed-os/features/mbedtls/src/oid.o
OBJECTS += ./mbed-os/features/mbedtls/src/padlock.o
OBJECTS += ./mbed-os/features/mbedtls/src/pem.o
OBJECTS += ./mbed-os/features/mbedtls/src/pk.o
OBJECTS += ./mbed-os/features/mbedtls/src/pk_wrap.o
OBJECTS += ./mbed-os/features/mbedtls/src/pkcs11.o
OBJECTS += ./mbed-os/features/mbedtls/src/pkcs12.o
OBJECTS += ./mbed-os/features/mbedtls/src/pkcs5.o
OBJECTS += ./mbed-os/features/mbedtls/src/pkparse.o
OBJECTS += ./mbed-os/features/mbedtls/src/pkwrite.o
OBJECTS += ./mbed-os/features/mbedtls/src/platform.o
OBJECTS += ./mbed-os/features/mbedtls/src/ripemd160.o
OBJECTS += ./mbed-os/features/mbedtls/src/rsa.o
OBJECTS += ./mbed-os/features/mbedtls/src/sha1.o
OBJECTS += ./mbed-os/features/mbedtls/src/sha256.o
OBJECTS += ./mbed-os/features/mbedtls/src/sha512.o
OBJECTS += ./mbed-os/features/mbedtls/src/ssl_cache.o
OBJECTS += ./mbed-os/features/mbedtls/src/ssl_ciphersuites.o
OBJECTS += ./mbed-os/features/mbedtls/src/ssl_cli.o
OBJECTS += ./mbed-os/features/mbedtls/src/ssl_cookie.o
OBJECTS += ./mbed-os/features/mbedtls/src/ssl_srv.o
OBJECTS += ./mbed-os/features/mbedtls/src/ssl_ticket.o
OBJECTS += ./mbed-os/features/mbedtls/src/ssl_tls.o
OBJECTS += ./mbed-os/features/mbedtls/src/threading.o
OBJECTS += ./mbed-os/features/mbedtls/src/timing.o
OBJECTS += ./mbed-os/features/mbedtls/src/version.o
OBJECTS += ./mbed-os/features/mbedtls/src/version_features.o
OBJECTS += ./mbed-os/features/mbedtls/src/x509.o
OBJECTS += ./mbed-os/features/mbedtls/src/x509_create.o
OBJECTS += ./mbed-os/features/mbedtls/src/x509_crl.o
OBJECTS += ./mbed-os/features/mbedtls/src/x509_crt.o
OBJECTS += ./mbed-os/features/mbedtls/src/x509_csr.o
OBJECTS += ./mbed-os/features/mbedtls/src/x509write_crt.o
OBJECTS += ./mbed-os/features/mbedtls/src/x509write_csr.o
OBJECTS += ./mbed-os/features/mbedtls/src/xtea.o
OBJECTS += ./mbed-os/features/netsocket/NetworkInterface.o
OBJECTS += ./mbed-os/features/netsocket/NetworkStack.o
OBJECTS += ./mbed-os/features/netsocket/Socket.o
OBJECTS += ./mbed-os/features/netsocket/SocketAddress.o
OBJECTS += ./mbed-os/features/netsocket/TCPServer.o
OBJECTS += ./mbed-os/features/netsocket/TCPSocket.o
OBJECTS += ./mbed-os/features/netsocket/UDPSocket.o
OBJECTS += ./mbed-os/features/netsocket/WiFiAccessPoint.o
OBJECTS += ./mbed-os/features/netsocket/cellular/generic_modem_driver/OnboardCellularInterface.o
OBJECTS += ./mbed-os/features/netsocket/cellular/generic_modem_driver/PPPCellularInterface.o
OBJECTS += ./mbed-os/features/netsocket/cellular/generic_modem_driver/UARTCellularInterface.o
OBJECTS += ./mbed-os/features/netsocket/nsapi_dns.o
OBJECTS += ./mbed-os/hal/mbed_flash_api.o
OBJECTS += ./mbed-os/hal/mbed_gpio.o
OBJECTS += ./mbed-os/hal/mbed_lp_ticker_api.o
OBJECTS += ./mbed-os/hal/mbed_pinmap_common.o
OBJECTS += ./mbed-os/hal/mbed_sleep_manager.o
OBJECTS += ./mbed-os/hal/mbed_ticker_api.o
OBJECTS += ./mbed-os/hal/mbed_us_ticker_api.o
OBJECTS += ./mbed-os/platform/ATCmdParser.o
OBJECTS += ./mbed-os/platform/CallChain.o
OBJECTS += ./mbed-os/platform/FileBase.o
OBJECTS += ./mbed-os/platform/FileHandle.o
OBJECTS += ./mbed-os/platform/FilePath.o
OBJECTS += ./mbed-os/platform/FileSystemHandle.o
OBJECTS += ./mbed-os/platform/LocalFileSystem.o
OBJECTS += ./mbed-os/platform/Stream.o
OBJECTS += ./mbed-os/platform/mbed_alloc_wrappers.o
OBJECTS += ./mbed-os/platform/mbed_application.o
OBJECTS += ./mbed-os/platform/mbed_assert.o
OBJECTS += ./mbed-os/platform/mbed_board.o
OBJECTS += ./mbed-os/platform/mbed_critical.o
OBJECTS += ./mbed-os/platform/mbed_error.o
OBJECTS += ./mbed-os/platform/mbed_interface.o
OBJECTS += ./mbed-os/platform/mbed_mem_trace.o
OBJECTS += ./mbed-os/platform/mbed_mktime.o
OBJECTS += ./mbed-os/platform/mbed_poll.o
OBJECTS += ./mbed-os/platform/mbed_retarget.o
OBJECTS += ./mbed-os/platform/mbed_rtc_time.o
OBJECTS += ./mbed-os/platform/mbed_sdk_boot.o
OBJECTS += ./mbed-os/platform/mbed_semihost_api.o
OBJECTS += ./mbed-os/platform/mbed_stats.o
OBJECTS += ./mbed-os/platform/mbed_wait_api_no_rtos.o
OBJECTS += ./mbed-os/platform/mbed_wait_api_rtos.o
OBJECTS += ./mbed-os/rtos/ConditionVariable.o
OBJECTS += ./mbed-os/rtos/EventFlags.o
OBJECTS += ./mbed-os/rtos/Mutex.o
OBJECTS += ./mbed-os/rtos/RtosTimer.o
OBJECTS += ./mbed-os/rtos/Semaphore.o
OBJECTS += ./mbed-os/rtos/TARGET_CORTEX/mbed_boot.o
OBJECTS += ./mbed-os/rtos/TARGET_CORTEX/mbed_rtx_handlers.o
OBJECTS += ./mbed-os/rtos/TARGET_CORTEX/mbed_rtx_idle.o
OBJECTS += ./mbed-os/rtos/TARGET_CORTEX/rtx4/cmsis_os1.o
OBJECTS += ./mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Config/RTX_Config.o
OBJECTS += ./mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7/irq_cm4f.o
OBJECTS += ./mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Source/rt_OsEventObserver.o
OBJECTS += ./mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Source/rtx_delay.o
OBJECTS += ./mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Source/rtx_evflags.o
OBJECTS += ./mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Source/rtx_evr.o
OBJECTS += ./mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Source/rtx_kernel.o
OBJECTS += ./mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Source/rtx_lib.o
OBJECTS += ./mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Source/rtx_memory.o
OBJECTS += ./mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Source/rtx_mempool.o
OBJECTS += ./mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Source/rtx_msgqueue.o
OBJECTS += ./mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Source/rtx_mutex.o
OBJECTS += ./mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Source/rtx_semaphore.o
OBJECTS += ./mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Source/rtx_system.o
OBJECTS += ./mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Source/rtx_thread.o
OBJECTS += ./mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Source/rtx_timer.o
OBJECTS += ./mbed-os/rtos/TARGET_CORTEX/rtx5/Source/os_systick.o
OBJECTS += ./mbed-os/rtos/TARGET_CORTEX/rtx5/Source/os_tick_ptim.o
OBJECTS += ./mbed-os/rtos/Thread.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/TARGET_XMC4500/PeripheralPins.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/TARGET_XMC4500/device/TOOLCHAIN_GCC_ARM/startup_XMC4500.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/TARGET_XMC4500/device/system_XMC4500.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/USBlib/Class/Common/HIDParser.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/USBlib/Class/Device/CDCClassDevice.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/USBlib/Class/Device/HIDClassDevice.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/USBlib/Class/Device/MassStorageClassDevice.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/USBlib/Common/memcpy.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/USBlib/Core/ConfigDescriptors.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/USBlib/Core/Events.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/USBlib/Core/HostStandardReq.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/USBlib/Core/USBTask.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/USBlib/Core/XMC4000/EndpointStream_XMC4000.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/USBlib/Core/XMC4000/Endpoint_XMC4000.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/USBlib/Core/XMC4000/USBController_XMC4000.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/VirtualSerial/USBSerial.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/VirtualSerial/VirtualSerial.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/VirtualSerial/VirtualSerialDescriptors.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/analogin_api.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/analogout_api.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/flash_api.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/gpio_api.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/gpio_irq_api.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/i2c_api.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/pwmout_api.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/rtc_api.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/serial_api.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/sleep_api.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/spi_api.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/us_ticker.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/xmc4_helper.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc1_eru.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc1_flash.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc1_gpio.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc1_rtc.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc1_scu.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc4_eru.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc4_flash.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc4_gpio.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc4_rtc.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc4_scu.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_acmp.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_bccu.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_can.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_ccu4.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_ccu8.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_common.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_dac.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_dma.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_dsd.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_ebu.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_ecat.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_eru.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_eth_mac.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_eth_phy_dp83848.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_eth_phy_ksz8031rnl.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_eth_phy_ksz8081rnb.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_fce.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_gpio.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_hrpwm.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_i2c.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_i2s.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_ledts.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_math.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_pau.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_posif.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_prng.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_rtc.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_sdmmc.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_spi.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_uart.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_usbd.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_usbh.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_usic.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_vadc.o
OBJECTS += ./mbed-os/targets/TARGET_Infineon/XMCLib/src/xmc_wdt.o


INCLUDE_PATHS += -I../
INCLUDE_PATHS += -I../.
INCLUDE_PATHS += -I.././DOC
INCLUDE_PATHS += -I.././DOC/html
INCLUDE_PATHS += -I.././mbed-os
INCLUDE_PATHS += -I.././mbed-os/cmsis
INCLUDE_PATHS += -I.././mbed-os/cmsis/TARGET_CORTEX_M
INCLUDE_PATHS += -I.././mbed-os/drivers
INCLUDE_PATHS += -I.././mbed-os/events
INCLUDE_PATHS += -I.././mbed-os/events/equeue
INCLUDE_PATHS += -I.././mbed-os/features
INCLUDE_PATHS += -I.././mbed-os/features/filesystem
INCLUDE_PATHS += -I.././mbed-os/features/filesystem/bd
INCLUDE_PATHS += -I.././mbed-os/features/filesystem/fat
INCLUDE_PATHS += -I.././mbed-os/features/filesystem/fat/ChaN
INCLUDE_PATHS += -I.././mbed-os/features/filesystem/littlefs
INCLUDE_PATHS += -I.././mbed-os/features/filesystem/littlefs/littlefs
INCLUDE_PATHS += -I.././mbed-os/features/frameworks
INCLUDE_PATHS += -I.././mbed-os/features/frameworks/greentea-client
INCLUDE_PATHS += -I.././mbed-os/features/frameworks/greentea-client/greentea-client
INCLUDE_PATHS += -I.././mbed-os/features/frameworks/greentea-client/source
INCLUDE_PATHS += -I.././mbed-os/features/frameworks/unity
INCLUDE_PATHS += -I.././mbed-os/features/frameworks/unity/source
INCLUDE_PATHS += -I.././mbed-os/features/frameworks/unity/unity
INCLUDE_PATHS += -I.././mbed-os/features/frameworks/utest
INCLUDE_PATHS += -I.././mbed-os/features/frameworks/utest/source
INCLUDE_PATHS += -I.././mbed-os/features/frameworks/utest/utest
INCLUDE_PATHS += -I.././mbed-os/features/mbedtls
INCLUDE_PATHS += -I.././mbed-os/features/mbedtls/importer
INCLUDE_PATHS += -I.././mbed-os/features/mbedtls/inc
INCLUDE_PATHS += -I.././mbed-os/features/mbedtls/inc/mbedtls
INCLUDE_PATHS += -I.././mbed-os/features/mbedtls/platform
INCLUDE_PATHS += -I.././mbed-os/features/mbedtls/platform/inc
INCLUDE_PATHS += -I.././mbed-os/features/mbedtls/platform/src
INCLUDE_PATHS += -I.././mbed-os/features/mbedtls/src
INCLUDE_PATHS += -I.././mbed-os/features/mbedtls/targets
INCLUDE_PATHS += -I.././mbed-os/features/nanostack
INCLUDE_PATHS += -I.././mbed-os/features/netsocket
INCLUDE_PATHS += -I.././mbed-os/features/netsocket/cellular
INCLUDE_PATHS += -I.././mbed-os/features/netsocket/cellular/generic_modem_driver
INCLUDE_PATHS += -I.././mbed-os/features/netsocket/cellular/utils
INCLUDE_PATHS += -I.././mbed-os/features/storage
INCLUDE_PATHS += -I.././mbed-os/hal
INCLUDE_PATHS += -I.././mbed-os/hal/storage_abstraction
INCLUDE_PATHS += -I.././mbed-os/platform
INCLUDE_PATHS += -I.././mbed-os/rtos
INCLUDE_PATHS += -I.././mbed-os/rtos/TARGET_CORTEX
INCLUDE_PATHS += -I.././mbed-os/rtos/TARGET_CORTEX/rtx4
INCLUDE_PATHS += -I.././mbed-os/rtos/TARGET_CORTEX/rtx5
INCLUDE_PATHS += -I.././mbed-os/rtos/TARGET_CORTEX/rtx5/Include
INCLUDE_PATHS += -I.././mbed-os/rtos/TARGET_CORTEX/rtx5/RTX
INCLUDE_PATHS += -I.././mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Config
INCLUDE_PATHS += -I.././mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Include
INCLUDE_PATHS += -I.././mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Source
INCLUDE_PATHS += -I.././mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_GCC
INCLUDE_PATHS += -I.././mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7
INCLUDE_PATHS += -I.././mbed-os/rtos/TARGET_CORTEX/rtx5/Source
INCLUDE_PATHS += -I.././mbed-os/targets
INCLUDE_PATHS += -I.././mbed-os/targets/TARGET_Infineon
INCLUDE_PATHS += -I.././mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX
INCLUDE_PATHS += -I.././mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/TARGET_XMC4500
INCLUDE_PATHS += -I.././mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/TARGET_XMC4500/device
INCLUDE_PATHS += -I.././mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/TARGET_XMC4500/device/TOOLCHAIN_GCC_ARM
INCLUDE_PATHS += -I.././mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/USBlib
INCLUDE_PATHS += -I.././mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/USBlib/Class
INCLUDE_PATHS += -I.././mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/USBlib/Class/Common
INCLUDE_PATHS += -I.././mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/USBlib/Class/Device
INCLUDE_PATHS += -I.././mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/USBlib/Common
INCLUDE_PATHS += -I.././mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/USBlib/Core
INCLUDE_PATHS += -I.././mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/USBlib/Core/XMC4000
INCLUDE_PATHS += -I.././mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/VirtualSerial
INCLUDE_PATHS += -I.././mbed-os/targets/TARGET_Infineon/XMCLib
INCLUDE_PATHS += -I.././mbed-os/targets/TARGET_Infineon/XMCLib/inc
INCLUDE_PATHS += -I.././mbed-os/targets/TARGET_Infineon/XMCLib/src
INCLUDE_PATHS += -I.././mbed-os/targets/TARGET_Infineon/tools

LIBRARY_PATHS :=
LIBRARIES :=
LINKER_SCRIPT ?= .././mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/TARGET_XMC4500/device/TOOLCHAIN_GCC_ARM/XMC4500x1024.ld

# Objects and Paths
###############################################################################
# Tools and Flags

AS      = 'arm-none-eabi-gcc' '-x' 'assembler-with-cpp' '-c' '-Wall' '-Wextra' '-Wno-unused-parameter' '-Wno-missing-field-initializers' '-fmessage-length=0' '-fno-exceptions' '-fno-builtin' '-ffunction-sections' '-fdata-sections' '-funsigned-char' '-MMD' '-fno-delete-null-pointer-checks' '-fomit-frame-pointer' '-O0' '-g3' '-DMBED_DEBUG' '-DMBED_TRAP_ERRORS_ENABLED=1' '-mcpu=cortex-m4' '-mthumb' '-mfpu=fpv4-sp-d16' '-mfloat-abi=softfp'
CC      = 'arm-none-eabi-gcc' '-std=gnu99' '-c' '-Wall' '-Wextra' '-Wno-unused-parameter' '-Wno-missing-field-initializers' '-fmessage-length=0' '-fno-exceptions' '-fno-builtin' '-ffunction-sections' '-fdata-sections' '-funsigned-char' '-MMD' '-fno-delete-null-pointer-checks' '-fomit-frame-pointer' '-O0' '-g3' '-DMBED_DEBUG' '-DMBED_TRAP_ERRORS_ENABLED=1' '-mcpu=cortex-m4' '-mthumb' '-mfpu=fpv4-sp-d16' '-mfloat-abi=softfp'
CPP     = 'arm-none-eabi-g++' '-std=gnu++98' '-fno-rtti' '-Wvla' '-c' '-Wall' '-Wextra' '-Wno-unused-parameter' '-Wno-missing-field-initializers' '-fmessage-length=0' '-fno-exceptions' '-fno-builtin' '-ffunction-sections' '-fdata-sections' '-funsigned-char' '-MMD' '-fno-delete-null-pointer-checks' '-fomit-frame-pointer' '-O0' '-g3' '-DMBED_DEBUG' '-DMBED_TRAP_ERRORS_ENABLED=1' '-mcpu=cortex-m4' '-mthumb' '-mfpu=fpv4-sp-d16' '-mfloat-abi=softfp'
LD      = 'arm-none-eabi-gcc'
ELF2BIN = 'arm-none-eabi-objcopy'
PREPROC = 'arm-none-eabi-cpp' '-E' '-P' '-Wl,--gc-sections' '-Wl,--wrap,main' '-Wl,--wrap,_malloc_r' '-Wl,--wrap,_free_r' '-Wl,--wrap,_realloc_r' '-Wl,--wrap,_memalign_r' '-Wl,--wrap,_calloc_r' '-Wl,--wrap,exit' '-Wl,--wrap,atexit' '-Wl,-n' '-mcpu=cortex-m4' '-mthumb' '-mfpu=fpv4-sp-d16' '-mfloat-abi=softfp'


C_FLAGS += -std=gnu99
C_FLAGS += -DDEVICE_SPI=1
C_FLAGS += -D__MBED__=1
C_FLAGS += -D__FPU_PRESENT=1
C_FLAGS += -DTARGET_RTOS_M4_M7
C_FLAGS += -DTARGET_XMCLib
C_FLAGS += -DDEVICE_RTC=1
C_FLAGS += -DTOOLCHAIN_object
C_FLAGS += -D__CMSIS_RTOS
C_FLAGS += -DDEVICE_ANALOGOUT=1
C_FLAGS += -DTARGET_XMC4500_Relax_Kit
C_FLAGS += -DTARGET_XMC_4500
C_FLAGS += -DTOOLCHAIN_GCC
C_FLAGS += -DTARGET_XMC_4500_RELAX_KIT
C_FLAGS += -DTARGET_CORTEX_M
C_FLAGS += -DTARGET_DEBUG
C_FLAGS += -DTARGET_XMC4500
C_FLAGS += -DTARGET_LIKE_CORTEX_M4
C_FLAGS += -DTARGET_Infineon
C_FLAGS += -DTARGET_M4
C_FLAGS += -DTARGET_UVISOR_UNSUPPORTED
C_FLAGS += -DDEVICE_SERIAL=1
C_FLAGS += -DMBED_BUILD_TIMESTAMP=1519046537.82
C_FLAGS += -DDEVICE_INTERRUPTIN=1
C_FLAGS += -DTARGET_XMC_XXXX
C_FLAGS += -DTARGET_CORTEX
C_FLAGS += -DDEVICE_I2C=1
C_FLAGS += -D__CORTEX_M4
C_FLAGS += -DXMC4500_F100x1024
C_FLAGS += -DTARGET_USBlib
C_FLAGS += -DTARGET_LIKE_MBED
C_FLAGS += -DXMC4500_Relax_Kit
C_FLAGS += -D__MBED_CMSIS_RTOS_CM
C_FLAGS += -DTOOLCHAIN_GCC_ARM
C_FLAGS += -DTARGET_VirtualSerial
C_FLAGS += -DTARGET_XMC4XXX
C_FLAGS += -DDEVICE_ANALOGIN=1
C_FLAGS += -DDEVICE_PWMOUT=1
C_FLAGS += -DTARGET_XMC_4500_F100_1024
C_FLAGS += -DDEVICE_FLASH=1
C_FLAGS += -DTARGET_XMC_4XXX
C_FLAGS += -DARM_MATH_CM4
C_FLAGS += -include
C_FLAGS += mbed_config.h

CXX_FLAGS += -std=gnu++98
CXX_FLAGS += -fno-rtti
CXX_FLAGS += -Wvla
CXX_FLAGS += -DDEVICE_SPI=1
CXX_FLAGS += -D__MBED__=1
CXX_FLAGS += -D__FPU_PRESENT=1
CXX_FLAGS += -DTARGET_RTOS_M4_M7
CXX_FLAGS += -DTARGET_XMCLib
CXX_FLAGS += -DDEVICE_RTC=1
CXX_FLAGS += -DTOOLCHAIN_object
CXX_FLAGS += -D__CMSIS_RTOS
CXX_FLAGS += -DDEVICE_ANALOGOUT=1
CXX_FLAGS += -DTARGET_XMC4500_Relax_Kit
CXX_FLAGS += -DTARGET_XMC_4500
CXX_FLAGS += -DTOOLCHAIN_GCC
CXX_FLAGS += -DTARGET_XMC_4500_RELAX_KIT
CXX_FLAGS += -DTARGET_CORTEX_M
CXX_FLAGS += -DTARGET_DEBUG
CXX_FLAGS += -DTARGET_XMC4500
CXX_FLAGS += -DTARGET_LIKE_CORTEX_M4
CXX_FLAGS += -DTARGET_Infineon
CXX_FLAGS += -DTARGET_M4
CXX_FLAGS += -DTARGET_UVISOR_UNSUPPORTED
CXX_FLAGS += -DDEVICE_SERIAL=1
CXX_FLAGS += -DMBED_BUILD_TIMESTAMP=1519046537.82
CXX_FLAGS += -DDEVICE_INTERRUPTIN=1
CXX_FLAGS += -DTARGET_XMC_XXXX
CXX_FLAGS += -DTARGET_CORTEX
CXX_FLAGS += -DDEVICE_I2C=1
CXX_FLAGS += -D__CORTEX_M4
CXX_FLAGS += -DXMC4500_F100x1024
CXX_FLAGS += -DTARGET_USBlib
CXX_FLAGS += -DTARGET_LIKE_MBED
CXX_FLAGS += -DXMC4500_Relax_Kit
CXX_FLAGS += -D__MBED_CMSIS_RTOS_CM
CXX_FLAGS += -DTOOLCHAIN_GCC_ARM
CXX_FLAGS += -DTARGET_VirtualSerial
CXX_FLAGS += -DTARGET_XMC4XXX
CXX_FLAGS += -DDEVICE_ANALOGIN=1
CXX_FLAGS += -DDEVICE_PWMOUT=1
CXX_FLAGS += -DTARGET_XMC_4500_F100_1024
CXX_FLAGS += -DDEVICE_FLASH=1
CXX_FLAGS += -DTARGET_XMC_4XXX
CXX_FLAGS += -DARM_MATH_CM4
CXX_FLAGS += -include
CXX_FLAGS += mbed_config.h

ASM_FLAGS += -x
ASM_FLAGS += assembler-with-cpp
ASM_FLAGS += -D__CORTEX_M4
ASM_FLAGS += -DXMC4500_F100x1024
ASM_FLAGS += -DARM_MATH_CM4
ASM_FLAGS += -D__FPU_PRESENT=1
ASM_FLAGS += -D__MBED_CMSIS_RTOS_CM
ASM_FLAGS += -DXMC4500_Relax_Kit
ASM_FLAGS += -D__CMSIS_RTOS
ASM_FLAGS += -I.
ASM_FLAGS += -I./DOC
ASM_FLAGS += -I./DOC/html
ASM_FLAGS += -I./mbed-os
ASM_FLAGS += -I./mbed-os/events
ASM_FLAGS += -I./mbed-os/events/equeue
ASM_FLAGS += -I./mbed-os/rtos
ASM_FLAGS += -I./mbed-os/rtos/TARGET_CORTEX
ASM_FLAGS += -I./mbed-os/rtos/TARGET_CORTEX/rtx5
ASM_FLAGS += -I./mbed-os/rtos/TARGET_CORTEX/rtx5/Include
ASM_FLAGS += -I./mbed-os/rtos/TARGET_CORTEX/rtx5/Source
ASM_FLAGS += -I./mbed-os/rtos/TARGET_CORTEX/rtx5/RTX
ASM_FLAGS += -I./mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Config
ASM_FLAGS += -I./mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Include
ASM_FLAGS += -I./mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Source
ASM_FLAGS += -I./mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_GCC
ASM_FLAGS += -I./mbed-os/rtos/TARGET_CORTEX/rtx5/RTX/Source/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7
ASM_FLAGS += -I./mbed-os/rtos/TARGET_CORTEX/rtx4
ASM_FLAGS += -I./mbed-os/hal
ASM_FLAGS += -I./mbed-os/hal/storage_abstraction
ASM_FLAGS += -I./mbed-os/features
ASM_FLAGS += -I./mbed-os/features/filesystem
ASM_FLAGS += -I./mbed-os/features/filesystem/fat
ASM_FLAGS += -I./mbed-os/features/filesystem/fat/ChaN
ASM_FLAGS += -I./mbed-os/features/filesystem/bd
ASM_FLAGS += -I./mbed-os/features/filesystem/littlefs
ASM_FLAGS += -I./mbed-os/features/filesystem/littlefs/littlefs
ASM_FLAGS += -I./mbed-os/features/mbedtls
ASM_FLAGS += -I./mbed-os/features/mbedtls/importer
ASM_FLAGS += -I./mbed-os/features/mbedtls/targets
ASM_FLAGS += -I./mbed-os/features/mbedtls/platform
ASM_FLAGS += -I./mbed-os/features/mbedtls/platform/src
ASM_FLAGS += -I./mbed-os/features/mbedtls/platform/inc
ASM_FLAGS += -I./mbed-os/features/mbedtls/src
ASM_FLAGS += -I./mbed-os/features/mbedtls/inc
ASM_FLAGS += -I./mbed-os/features/mbedtls/inc/mbedtls
ASM_FLAGS += -I./mbed-os/features/frameworks
ASM_FLAGS += -I./mbed-os/features/frameworks/greentea-client
ASM_FLAGS += -I./mbed-os/features/frameworks/greentea-client/source
ASM_FLAGS += -I./mbed-os/features/frameworks/greentea-client/greentea-client
ASM_FLAGS += -I./mbed-os/features/frameworks/unity
ASM_FLAGS += -I./mbed-os/features/frameworks/unity/source
ASM_FLAGS += -I./mbed-os/features/frameworks/unity/unity
ASM_FLAGS += -I./mbed-os/features/frameworks/utest
ASM_FLAGS += -I./mbed-os/features/frameworks/utest/source
ASM_FLAGS += -I./mbed-os/features/frameworks/utest/utest
ASM_FLAGS += -I./mbed-os/features/storage
ASM_FLAGS += -I./mbed-os/features/netsocket
ASM_FLAGS += -I./mbed-os/features/netsocket/cellular
ASM_FLAGS += -I./mbed-os/features/netsocket/cellular/utils
ASM_FLAGS += -I./mbed-os/features/netsocket/cellular/generic_modem_driver
ASM_FLAGS += -I./mbed-os/features/nanostack
ASM_FLAGS += -I./mbed-os/targets
ASM_FLAGS += -I./mbed-os/targets/TARGET_Infineon
ASM_FLAGS += -I./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX
ASM_FLAGS += -I./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/TARGET_XMC4500
ASM_FLAGS += -I./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/TARGET_XMC4500/device
ASM_FLAGS += -I./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/TARGET_XMC4500/device/TOOLCHAIN_GCC_ARM
ASM_FLAGS += -I./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/VirtualSerial
ASM_FLAGS += -I./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/USBlib
ASM_FLAGS += -I./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/USBlib/Class
ASM_FLAGS += -I./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/USBlib/Class/Device
ASM_FLAGS += -I./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/USBlib/Class/Common
ASM_FLAGS += -I./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/USBlib/Core
ASM_FLAGS += -I./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/USBlib/Core/XMC4000
ASM_FLAGS += -I./mbed-os/targets/TARGET_Infineon/TARGET_XMC4XXX/USBlib/Common
ASM_FLAGS += -I./mbed-os/targets/TARGET_Infineon/XMCLib
ASM_FLAGS += -I./mbed-os/targets/TARGET_Infineon/XMCLib/src
ASM_FLAGS += -I./mbed-os/targets/TARGET_Infineon/XMCLib/inc
ASM_FLAGS += -I./mbed-os/targets/TARGET_Infineon/tools
ASM_FLAGS += -I./mbed-os/cmsis
ASM_FLAGS += -I./mbed-os/cmsis/TARGET_CORTEX_M
ASM_FLAGS += -I./mbed-os/platform
ASM_FLAGS += -I./mbed-os/drivers


LD_FLAGS :=-Wl,--gc-sections -Wl,--wrap,main -Wl,--wrap,_malloc_r -Wl,--wrap,_free_r -Wl,--wrap,_realloc_r -Wl,--wrap,_memalign_r -Wl,--wrap,_calloc_r -Wl,--wrap,exit -Wl,--wrap,atexit -Wl,-n -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp 
LD_SYS_LIBS :=-Wl,--start-group -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys  -Wl,--end-group

# Tools and Flags
###############################################################################
# Rules

.PHONY: all lst size


all: $(PROJECT).bin $(PROJECT).hex size


.s.o:
	+@$(call MAKEDIR,$(dir $@))
	+@echo "Assemble: $(notdir $<)"
  
	@$(AS) -c $(ASM_FLAGS) -o $@ $<
  


.S.o:
	+@$(call MAKEDIR,$(dir $@))
	+@echo "Assemble: $(notdir $<)"
  
	@$(AS) -c $(ASM_FLAGS) -o $@ $<
  

.c.o:
	+@$(call MAKEDIR,$(dir $@))
	+@echo "Compile: $(notdir $<)"
	@$(CC) $(C_FLAGS) $(INCLUDE_PATHS) -o $@ $<

.cpp.o:
	+@$(call MAKEDIR,$(dir $@))
	+@echo "Compile: $(notdir $<)"
	@$(CPP) $(CXX_FLAGS) $(INCLUDE_PATHS) -o $@ $<


$(PROJECT).link_script.ld: $(LINKER_SCRIPT)
	@$(PREPROC) $< -o $@



$(PROJECT).elf: $(OBJECTS) $(SYS_OBJECTS) $(PROJECT).link_script.ld 
	+@echo "link: $(notdir $@)"
	@$(LD) $(LD_FLAGS) -T $(filter-out %.o, $^) $(LIBRARY_PATHS) --output $@ $(filter %.o, $^) $(LIBRARIES) $(LD_SYS_LIBS)


$(PROJECT).bin: $(PROJECT).elf
	$(ELF2BIN) -O binary $< $@
	+@echo "===== bin file ready to flash: $(OBJDIR)/$@ =====" 

$(PROJECT).hex: $(PROJECT).elf
	$(ELF2BIN) -O ihex $< $@


# Rules
###############################################################################
# Dependencies

DEPS = $(OBJECTS:.o=.d) $(SYS_OBJECTS:.o=.d)
-include $(DEPS)
endif

# Dependencies
###############################################################################