2014-10-04 07:12:33 +00:00
|
|
|
# Possible Targets: all clean Debug cleanDebug Release cleanRelease
|
2014-05-10 20:53:17 +00:00
|
|
|
|
2014-10-04 07:12:33 +00:00
|
|
|
##############################################################################################
|
|
|
|
# Settings
|
|
|
|
#
|
2014-05-10 20:53:17 +00:00
|
|
|
|
2014-10-04 07:12:33 +00:00
|
|
|
# General settings
|
|
|
|
# See $(GFXLIB)/tools/gmake_scripts/readme.txt for the list of variables
|
|
|
|
OPT_OS = chibios
|
|
|
|
OPT_THUMB = yes
|
2014-10-06 05:50:19 +00:00
|
|
|
OPT_LINK_OPTIMIZE = yes
|
2014-10-04 07:12:33 +00:00
|
|
|
OPT_CPU = stm32m4
|
|
|
|
|
|
|
|
# uGFX settings
|
|
|
|
# See $(GFXLIB)/tools/gmake_scripts/library_ugfx.mk for the list of variables
|
|
|
|
GFXLIB = ../uGFX
|
|
|
|
GFXBOARD = Mikromedia-STM32-M4-ILI9341
|
|
|
|
GFXDEMO = modules/gdisp/basics
|
|
|
|
|
|
|
|
# ChibiOS settings
|
|
|
|
ifeq ($(OPT_OS),chibios)
|
|
|
|
# See $(GFXLIB)/tools/gmake_scripts/os_chibios.mk for the list of variables
|
2014-10-06 05:50:19 +00:00
|
|
|
CHIBIOS = ../ChibiOS3
|
|
|
|
CHIBIOS_VERSION = 3
|
2014-10-04 07:12:33 +00:00
|
|
|
CHIBIOS_BOARD =
|
2014-10-06 05:50:19 +00:00
|
|
|
CHIBIOS_CPUCLASS = ARMCMx
|
2014-10-04 07:12:33 +00:00
|
|
|
CHIBIOS_PLATFORM = STM32/STM32F4xx
|
2014-10-06 05:50:19 +00:00
|
|
|
CHIBIOS_PORT = stm32f4xx
|
2014-10-04 07:12:33 +00:00
|
|
|
CHIBIOS_LDSCRIPT = STM32F407xG.ld
|
|
|
|
# We define a non standard board script as this is not a standard ChibiOS supported board
|
2014-10-26 23:13:59 +00:00
|
|
|
include $(GFXLIB)/boards/base/$(GFXBOARD)/ChibiOS_Board/board.mk
|
2014-05-10 20:53:17 +00:00
|
|
|
endif
|
|
|
|
|
2014-10-04 07:12:33 +00:00
|
|
|
##############################################################################################
|
|
|
|
# Set these for your project
|
|
|
|
#
|
2014-05-10 20:53:17 +00:00
|
|
|
|
2014-10-04 07:12:33 +00:00
|
|
|
ARCH = arm-none-eabi-
|
|
|
|
SRCFLAGS = -ggdb -O0
|
|
|
|
CFLAGS =
|
|
|
|
CXXFLAGS = -fno-rtti
|
|
|
|
ASFLAGS =
|
|
|
|
LDFLAGS =
|
|
|
|
|
|
|
|
SRC =
|
|
|
|
OBJS =
|
|
|
|
DEFS =
|
|
|
|
LIBS =
|
|
|
|
INCPATH =
|
|
|
|
LIBPATH =
|
|
|
|
LDSCRIPT =
|
|
|
|
|
|
|
|
##############################################################################################
|
|
|
|
# These should be at the end
|
2014-05-10 20:53:17 +00:00
|
|
|
#
|
|
|
|
|
2014-10-04 07:12:33 +00:00
|
|
|
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 ***
|