updated makefile for supporting different target architectures

use "ARCH=arch_name make"

restructured project folder, implementations and headers together under sources/
This commit is contained in:
beno
2026-03-16 00:10:52 +01:00
parent 6c125fb35e
commit bbede61723
73 changed files with 786 additions and 379 deletions

View File

@@ -1,41 +1,24 @@
# 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)
# export COMPILER=aarch64-linux-gnu-gcc
export CPP_COMPILER=aarch64-linux-gnu-g++
export C_COMPILER=aarch64-linux-gnu-gcc
export GLOBAL_COMPILE_CONF=-fno-stack-protector
export CFLAGS=-ansi -Wpedantic -Winline -Werror # -std=c99
export CFLAGS=-ansi -Wpedantic -Winline -Werror -std=c++11
export PWD=/home/beno/Desktop/BATO/WAYLAND/demo_3_scuola/
# export PWD:=$(shell pwd)/
export PWD=/home/beno/Desktop/rg552_minimal_dev_env/WAYLAND/demos/rez_demo/
# DIRECTORIES
export SD=${PWD}sources/
export GLUT_D=${PWD}../demo_3_2_link_GLUT/glut_mine/
export RESOURCES_LOC=${PWD}../resources/
export GLUT_D=${PWD}../my_glut/
export GLUT_I_D=${GLUT_D}headers/
RESOURCES_LOC=${PWD}../../resources/
# includes EGL GLES2 (KHR needed by both)
export HEADERS=${RESOURCES_LOC}headers/
export GLM_HEADERS=${PWD}../glm/
export LINKED_LIBRARIES=${PWD}../../LIBRARIES_FROM_BATO
# LINK
export L_SHLIBS=-L${LINKED_LIBRARIES}
export GLM_HEADERS=${RESOURCES_LOC}sources/glm/
# INCLUDE
export I_HEADERS=-I ${HEADERS} # GRAPHICS FOR NOW
export I_GRAPHICS=-I ${HEADERS}
export I_EGL=-I ${HEADERS}
export I_CGI_MATH=-I ${GLM_HEADERS}
export I_MY_GLUT=-I ${GLUT_D}
export I_MY_GLUT=-I ${GLUT_I_D}