steering-wheel/TouchGFX/config/gcc/app.mk

20 lines
840 B
Makefile
Raw Permalink Normal View History

2023-03-06 21:21:00 +01:00
# Relative location of the TouchGFX framework from root of application
touchgfx_path := ../Middlewares/ST/touchgfx
# Location of the TouchGFX Environment
2023-08-04 00:19:51 +02:00
touchgfx_env := C:/TouchGFX/4.22.0/env
2023-03-06 21:21:00 +01:00
# Optional additional compiler flags
2023-06-26 17:18:24 +02:00
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