aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorvimene <vincent.menegaux@gmail.com>2025-12-26 15:46:19 +0100
committervimene <vincent.menegaux@gmail.com>2025-12-26 15:46:19 +0100
commitc0eeccb889c8ae969bbb6e44e87bc309ea5f146f (patch)
tree4b7d33acfd3711c4189ebbc9e3e4938f032f657f /src/Makefile.am
parentb21d32a0dd906404b0cdf7d6edf395ba63adba8b (diff)
downloadengine-c0eeccb889c8ae969bbb6e44e87bc309ea5f146f.tar.gz
added STBI library
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index ad18692..88e4ee3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -9,6 +9,7 @@ engine_SOURCES = \
renderer.hpp renderer.cpp \
obj_parser.hpp obj_parser.cpp \
vulkan_utils.hpp \
+ stb_image.c \
fb/chfb.hpp fb/chfb.cpp fb/pixfb.hpp fb/pixfb.cpp \
math/vector.hpp \
math/mat4.hpp \
@@ -25,17 +26,9 @@ engine_SOURCES = \
o3d/scene.hpp \
ctrl/keyboard.hpp \
ctrl/mouse.hpp
-engine_CPPFLAGS = -std=gnu++23 -Wall -Wextra
+engine_CPPFLAGS = -std=gnu++23 -Wall -Wextra -DDATADIR='"$(datadir)"' -DSHADERSDIR='"$(shadersdir)"' $(GLFW3_CFLAGS) $(STB_CFLAGS) $(VULKAN_CFLAGS)
engine_LDFLAGS = -std=gnu++23 -Wall -Wextra
-
-engine_CPPFLAGS += -DDATADIR='"$(datadir)"' -DSHADERSDIR='"$(shadersdir)"'
-
-# Not sure why they are needed
-engine_LDADD =# -ldl -lpthread -lX11 -lXxf86vm -lXrandr -lXi
-engine_CPPFLAGS += $(GLFW3_CFLAGS)
-engine_LDADD += $(GLFW3_LIBS)
-engine_CPPFLAGS += $(VULKAN_CFLAGS)
-engine_LDADD += $(VULKAN_LIBS)
+engine_LDADD = $(GLFW3_LIBS) $(STB_LIBS) $(VULKAN_LIBS)
if HAVE_NCURSES
engine_CPPFLAGS += $(NCURSES_CFLAGS)