aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorvimene <vincent.menegaux@gmail.com>2025-12-10 17:16:12 +0100
committervimene <vincent.menegaux@gmail.com>2025-12-10 17:16:12 +0100
commitc666035bc6a51e4dd76daebefffaf8bbc951977c (patch)
treedabb19c541ef66faebb508ba3a06642737e31a3f /src/Makefile.am
parent625d18a6053e28762c77efd3dd0d79fc01b0b0ef (diff)
downloadengine-c666035bc6a51e4dd76daebefffaf8bbc951977c.tar.gz
improved autotools usage
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..5a3b41d
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,38 @@
+bin_PROGRAMS = engine
+
+engine_SOURCES = \
+ engine.cpp \
+ renderer.h renderer.cpp \
+ obj_parser.h obj_parser.cpp \
+ fb/fb.h fb/chfb.h fb/chfb.cpp fb/pixfb.h fb/pixfb.cpp \
+ math/vector.h \
+ math/mat4.h \
+ math/quat.h \
+ math/tform.h \
+ o3d/mesh.h o3d/mesh.cpp \
+ o3d/obj3d.h \
+ o3d/vertex_data.h \
+ o3d/vertex.h \
+ o3d/deriv_vertex.h \
+ o3d/tri.h \
+ o3d/tri_deriv.h o3d/tri_deriv.cpp \
+ o3d/camera.h \
+ o3d/scene.h \
+ ctrl/keyboard.h \
+ ctrl/mouse.h
+engine_CPPFLAGS = -std=gnu++23 -Wall -Wextra
+engine_LDFLAGS = -std=gnu++23 -Wall -Wextra
+
+engine_CPPFLAGS += -DDATADIR='"$(datadir)"'
+
+# 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)
+
+if HAVE_NCURSES
+engine_CPPFLAGS += $(NCURSES_CFLAGS)
+engine_LDADD += $(NCURSES_LIBS)
+endif