From bec7a1c90f7cda0a9e7d2e2628ac69b645108dc4 Mon Sep 17 00:00:00 2001 From: quou Date: Thu, 19 Dec 2024 19:20:50 +1100 Subject: basic vulkan setup --- Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b9f2151..9508cd4 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ target = c2 data_dir = data shaders = data/triangle.csh tools = qstd cfg sc -objects = app.o c2.o +objects = app.o c2.o video.o pipeline.o includes = -Iqstd defines = -Dplat_x86 -Dplat_posix -Dplat_x11 -Dallocation_default_alignment=8 cflags = $(includes) $(defines) $(DEBUG_COMPILE_FLAG) @@ -26,10 +26,16 @@ sc: qstd cfg data/triangle.csh: intermediate/triangle.glsl | $(data_dir) sc ./sc/sc intermediate/triangle.glsl data/triangle.csh -app.o: app.cpp app.hpp +app.o: app.cpp app.hpp qstd/memory.h qstd/plat.h $(CXX) -c $(cflags) app.cpp -o app.o -c2.o: c2.cpp app.hpp +video.o: video.cpp video.hpp app.hpp qstd/memory.h qstd/plat.h qstd/str.h sc/sh_enums.h + $(CXX) -c $(cflags) video.cpp -o video.o + +pipeline.o: pipeline.cpp video.hpp qstd/memory.h qstd/plat.h + $(CXX) -c $(cflags) pipeline.cpp -o pipeline.o + +c2.o: c2.cpp app.hpp video.hpp qstd/memory.h qstd/plat.h $(CXX) -c $(cflags) c2.cpp -o c2.o $(target): $(objects) qstd/libqstd.a -- cgit v1.2.3-54-g00ecf