20 lines
840 B
Makefile
20 lines
840 B
Makefile
|
|
# Relative location of the TouchGFX framework from root of application
|
|
touchgfx_path := ../Middlewares/ST/touchgfx
|
|
|
|
# Location of the TouchGFX Environment
|
|
touchgfx_env := C:/TouchGFX/4.22.0/env
|
|
# Optional additional compiler flags
|
|
user_cflags := -DUSE_BPP=16 -std=gnu++1z -Wno-cast-qual -Wno-missing-declarations -Wno-format-truncation -Wno-unused-variable
|
|
|
|
# MINGW is annoying and for some reason replaces /z/path with z:/path in
|
|
# ADDITIONAL_SOURCES. Since TouchGFXDesigner completely overwrites the generated
|
|
# Makefile, we can't fix it there -- but the generated makefile includes this
|
|
# file, so we can fix it here.
|
|
subst_drivename = $(shell echo $(1) | sed -e 's!^\([a-zA-Z]\):/!/\1/!')
|
|
ADDITIONAL_SOURCES := $(foreach src,$(ADDITIONAL_SOURCES),$(call subst_drivename,$(src)))
|
|
|
|
ifeq ($(UNAME), Linux)
|
|
linker_options += -no-pie
|
|
endif
|