Files
minimal_components/external.mk
2026-03-13 02:28:59 +01:00

34 lines
1.1 KiB
Makefile

# export for making the definitions available anywhere during the run
# instead of using imports in each makefile of the project (which would also break since PWD gets reevaluated at each import)
#
# project expects a /project/HEREDIR/ structure ( see ${RESOURCES_LOC} )
#
export PWD=/path/to/the/project/folder/projects/minimal_components/
export GLOBAL_COMPILE_CONF=-fno-stack-protector
export CFLAGS=-ansi -Wpedantic -Winline -Werror -std=c99
# DIRECTORIES
# BD= from XXX_BUILD/variables.mk
export SD=${PWD}SOURCES/
#
export RESOURCES_LOC=${PWD}../../resources/
# HEADERS
# should be good even if gathered from around the web ( not build specific )
# includes EGL GLES2 (KHR needed by both)
export GRAPHICS_HEADERS=${RESOURCES_LOC}headers/
WAYLAND_STUFF=${RESOURCES_LOC}sources/wayland-1.22.0/
export WAYLAND_HEADERS=${WAYLAND_STUFF}src/
export WAYLAND_PROTOCOL_HEADERS=${WAYLAND_STUFF}build/src/
export WAYLAND_EGL_HEADERS=${WAYLAND_STUFF}egl/
# INCLUDE
export I_EGL=-I ${GRAPHICS_HEADERS}
export I_WAYLAND=-I ${WAYLAND_HEADERS} -I ${WAYLAND_PROTOCOL_HEADERS} -I ${WAYLAND_EGL_HEADERS}