project for a (works on my devices) demo

This commit is contained in:
beno
2026-03-13 02:10:13 +01:00
parent 28f62d0b00
commit 425db27acc
26 changed files with 3553 additions and 60 deletions

79
SOURCES/graphics/Makefile Normal file
View File

@@ -0,0 +1,79 @@
include external.mk
GBD=${BD}graphics/
GS=SOURCES/graphics/
REGISTRY_LISTENERS=${GBD}os/WAYLAND/registry_listeners/wl_output_listener.o ${GBD}os/WAYLAND/registry_listeners/xdg_wm_base_listener.o
WAYLAND_OBJECTS=${GBD}os/WAYLAND/wl_context.o ${GBD}os/WAYLAND/xdg-shell.o ${REGISTRY_LISTENERS}
OS_GRAPHICS_OBJECTS=${GBD}2d_structs.o ${WAYLAND_OBJECTS} ${GBD}os/EGL/egl_context.o ${GBD}os/EGL/GLES_3_1_compatibility.o
LIBRARY_GRAPHICS_OBJECTS=${GBD}library/window/window.o ${GBD}library/application_context.o
export GRAPHICS_OBJECTS=${OS_GRAPHICS_OBJECTS} ${LIBRARY_GRAPHICS_OBJECTS}
${GBD}2d_structs.o : ${GS}2d_structs.c ${GS}2d_structs.h
${COMPILER} \
-o ${GBD}2d_structs.o \
-c ${CFLAGS} ${GS}2d_structs.c \
${GLOBAL_COMPILE_CONF}
${GBD}os/WAYLAND/wl_context.o : ${GS}os/WAYLAND/wl_context.c ${GS}os/WAYLAND/wl_context.h
${COMPILER} \
${I_WAYLAND} \
-o ${GBD}os/WAYLAND/wl_context.o \
-c ${CFLAGS} ${GS}os/WAYLAND/wl_context.c \
${GLOBAL_COMPILE_CONF}
${GBD}os/WAYLAND/xdg-shell.o : ${GS}os/WAYLAND/xdg-shell.c ${GS}os/WAYLAND/xdg-shell.h
${COMPILER} \
${I_WAYLAND} \
-o ${GBD}os/WAYLAND/xdg-shell.o \
-c ${CFLAGS} ${GS}os/WAYLAND/xdg-shell.c \
${GLOBAL_COMPILE_CONF}
${GBD}os/WAYLAND/registry_listeners/wl_output_listener.o : ${GS}os/WAYLAND/registry_listeners/wl_output_listener.c ${GS}os/WAYLAND/registry_listeners/wl_output_listener.h
${COMPILER} \
${I_WAYLAND} \
-o ${GBD}os/WAYLAND/registry_listeners/wl_output_listener.o \
-c ${CFLAGS} ${GS}os/WAYLAND/registry_listeners/wl_output_listener.c \
${GLOBAL_COMPILE_CONF}
${GBD}os/WAYLAND/registry_listeners/xdg_wm_base_listener.o : ${GS}os/WAYLAND/registry_listeners/xdg_wm_base_listener.c ${GS}os/WAYLAND/registry_listeners/xdg_wm_base_listener.h
${COMPILER} \
${I_WAYLAND} \
-o ${GBD}os/WAYLAND/registry_listeners/xdg_wm_base_listener.o \
-c ${CFLAGS} ${GS}os/WAYLAND/registry_listeners/xdg_wm_base_listener.c \
${GLOBAL_COMPILE_CONF}
${GBD}os/EGL/egl_context.o : ${GS}os/EGL/egl_context.c ${GS}os/EGL/egl_context.h
${COMPILER} \
${I_EGL} \
${I_WAYLAND} \
-o ${GBD}os/EGL/egl_context.o \
-c ${CFLAGS} ${GS}os/EGL/egl_context.c \
${GLOBAL_COMPILE_CONF}
${GBD}os/EGL/GLES_3_1_compatibility.o : ${GS}os/EGL/GLES_3_1_compatibility.c ${GS}os/EGL/GLES_3_1_compatibility.h
${COMPILER} \
${I_EGL} \
-o ${GBD}os/EGL/GLES_3_1_compatibility.o \
-c ${CFLAGS} ${GS}os/EGL/GLES_3_1_compatibility.c \
${GLOBAL_COMPILE_CONF}
${GBD}library/window/window.o : ${GS}library/window/window.c ${GS}library/window/window.h
${COMPILER} \
${I_WAYLAND} \
-o ${GBD}library/window/window.o \
-c ${CFLAGS} ${GS}library/window/window.c \
${GLOBAL_COMPILE_CONF}
# -I ./ è una porcata clamorosa
${GBD}library/application_context.o : ${GS}library/application_context.c ${GS}library/application_context.h
${COMPILER} \
${I_WAYLAND} \
${I_EGL} \
-o ${GBD}library/application_context.o \
-c ${CFLAGS} ${GS}library/application_context.c \
${GLOBAL_COMPILE_CONF}