2015-07-10 08:12:52 +00:00
|
|
|
# Possible Targets: all clean Debug cleanDebug Release cleanRelease
|
|
|
|
|
|
|
|
##############################################################################################
|
|
|
|
# Settings
|
|
|
|
#
|
|
|
|
|
|
|
|
# General settings
|
|
|
|
# See $(GFXLIB)/tools/gmake_scripts/readme.txt for the list of variables
|
|
|
|
OPT_OS = raw32
|
|
|
|
OPT_THUMB = yes
|
2015-07-11 06:13:05 +00:00
|
|
|
OPT_LINK_OPTIMIZE = no
|
2015-07-10 08:12:52 +00:00
|
|
|
OPT_CPU = stm32m7
|
|
|
|
|
|
|
|
# uGFX settings
|
|
|
|
# See $(GFXLIB)/tools/gmake_scripts/library_ugfx.mk for the list of variables
|
2015-07-11 06:13:05 +00:00
|
|
|
GFXLIB = ../ugfx
|
2015-07-10 08:12:52 +00:00
|
|
|
GFXBOARD = STM32F746-Discovery
|
2015-07-11 06:13:05 +00:00
|
|
|
GFXDEMO = modules/gdisp/basics
|
|
|
|
#GFXDRIVERS =
|
2015-07-10 08:12:52 +00:00
|
|
|
|
|
|
|
# ChibiOS settings
|
2015-07-11 06:13:05 +00:00
|
|
|
# Note: not supported by ChibiOS yet!
|
2015-07-10 08:12:52 +00:00
|
|
|
ifeq ($(OPT_OS),chibios)
|
|
|
|
# See $(GFXLIB)/tools/gmake_scripts/os_chibios.mk for the list of variables
|
|
|
|
CHIBIOS = ../ChibiOS
|
2015-07-11 06:13:05 +00:00
|
|
|
CHIBIOS_BOARD = ST_STM32F746_DISCOVERY
|
|
|
|
CHIBIOS_PLATFORM = STM32F7xx
|
|
|
|
CHIBIOS_PORT = GCC/ARMCMx/STM32F7xx
|
|
|
|
CHIBIOS_LDSCRIPT = STM32F746.ld
|
2015-07-10 08:12:52 +00:00
|
|
|
|
2015-07-11 06:13:05 +00:00
|
|
|
#CHIBIOS = ../ChibiOS3
|
|
|
|
#CHIBIOS_VERSION = 3
|
|
|
|
#CHIBIOS_BOARD = ST_STM32F746_DISCOVERY
|
|
|
|
#CHIBIOS_CPUCLASS = ARMCMx
|
|
|
|
#CHIBIOS_PLATFORM = STM32/STM32F7xx
|
|
|
|
#CHIBIOS_PORT = stm32f7xx
|
|
|
|
#CHIBIOS_LDSCRIPT = STM32F746.ld
|
2015-07-10 08:12:52 +00:00
|
|
|
endif
|
|
|
|
|
2015-07-11 06:13:05 +00:00
|
|
|
# Raw32 settings
|
|
|
|
CMSIS = ../STM32/CMSIS
|
|
|
|
HAL = ../STM32/STM32F7xx_HAL_Driver
|
2015-07-10 08:12:52 +00:00
|
|
|
|
|
|
|
##############################################################################################
|
|
|
|
# Set these for your project
|
|
|
|
#
|
|
|
|
|
|
|
|
ARCH = arm-none-eabi-
|
|
|
|
SRCFLAGS = -ggdb -O0
|
2015-07-11 06:13:05 +00:00
|
|
|
CFLAGS =
|
2015-07-10 08:12:52 +00:00
|
|
|
CXXFLAGS = -fno-rtti
|
|
|
|
ASFLAGS =
|
|
|
|
LDFLAGS =
|
|
|
|
|
2015-07-11 06:13:05 +00:00
|
|
|
SRC =
|
2015-07-10 08:12:52 +00:00
|
|
|
|
|
|
|
OBJS =
|
2015-07-16 09:02:59 +00:00
|
|
|
DEFS = GFX_OS_HEAP_SIZE=40960
|
2015-07-10 08:12:52 +00:00
|
|
|
LIBS =
|
2015-07-11 06:13:05 +00:00
|
|
|
INCPATH =
|
2015-07-10 08:12:52 +00:00
|
|
|
|
|
|
|
LIBPATH =
|
2015-07-11 06:13:05 +00:00
|
|
|
LDSCRIPT =
|
2015-07-10 08:12:52 +00:00
|
|
|
|
|
|
|
##############################################################################################
|
|
|
|
# These should be at the end
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(GFXLIB)/tools/gmake_scripts/library_ugfx.mk
|
|
|
|
include $(GFXLIB)/tools/gmake_scripts/os_$(OPT_OS).mk
|
|
|
|
include $(GFXLIB)/tools/gmake_scripts/compiler_gcc.mk
|
|
|
|
# *** EOF ***
|