add clean-platform
[mTask.git] / int / nucleo-f767-blinky / Makefile
1 export
2
3 #always set COMDIR (common sources, makefiles, libraries) first
4 COMDIR := ../com
5
6 #set optimize/debug symbols options
7 OPTIMIZE := -O3 -g
8
9 #set std libs to be linked
10 STDLIBS := -lm
11
12 #include common project header
13 include $(COMDIR)/pj/pjhdr.mk
14
15 #include target/os/lib specific header
16 include $(COMDIR)/pj/f767-nucleo-hal.mk
17 #SYSTEM := /usr/local/gcc-arm-none-eabi-4_8-2014q3/bin/arm-none-eabi
18 #SYSTEM := /usr/local/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi
19 #SYSTEM := /usr/local/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi
20 #SYSTEM := /usr/local/gcc-arm-none-eabi-5_2-2015q4/bin/arm-none-eabi
21
22
23 #include stm32cube header
24 include $(COMDIR)/pj/cube-hal.mk
25
26 #include libraries
27 INCLIBS := inc
28
29 include $(LIBDIR)/libstm32f7xxhal.mk
30
31 #include common sources
32 INCLIBS := src
33
34 include $(CSRCDIR)/syscalls.mk
35
36 #start making
37 INCLIBS := mk
38
39 #set ocd command (interface/target)
40 include $(COMDIR)/pj/oocd-stm32f7xx.mk
41 OCD = $(OCD-nucleo)
42
43 #add sources
44 SRCS_C := $(wildcard $(SRCDIR)/*.c)
45 SRCS_S := $(wildcard $(SRCDIR)/*.s)
46
47 #include common project makefile
48 include $(COMDIR)/pj/pj.mk