export #always set COMDIR (common sources, makefiles, libraries) first COMDIR := ../com #set optimize/debug symbols options OPTIMIZE := -O3 -g #set std libs to be linked STDLIBS := -lm #include common project header include $(COMDIR)/pj/pjhdr.mk #include target/os/lib specific header include $(COMDIR)/pj/f767-nucleo-hal.mk #SYSTEM := /usr/local/gcc-arm-none-eabi-4_8-2014q3/bin/arm-none-eabi #SYSTEM := /usr/local/gcc-arm-none-eabi-4_9-2015q2/bin/arm-none-eabi #SYSTEM := /usr/local/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi #SYSTEM := /usr/local/gcc-arm-none-eabi-5_2-2015q4/bin/arm-none-eabi #include stm32cube header include $(COMDIR)/pj/cube-hal.mk #include libraries INCLIBS := inc include $(LIBDIR)/libstm32f7xxhal.mk #include common sources INCLIBS := src include $(CSRCDIR)/syscalls.mk #start making INCLIBS := mk #set ocd command (interface/target) include $(COMDIR)/pj/oocd-stm32f7xx.mk OCD = $(OCD-nucleo) #add sources SRCS_C := $(wildcard $(SRCDIR)/*.c) SRCS_S := $(wildcard $(SRCDIR)/*.s) #include common project makefile include $(COMDIR)/pj/pj.mk