diff options
author | quou <quou@disroot.org> | 2024-12-14 23:15:34 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-14 23:19:17 +1100 |
commit | 44e48ddc2785b037abd202a8d38b2ef2e8c36600 (patch) | |
tree | f58887ce48f7fdbf6dcca365b2a1b02a34e1b355 /sc/Makefile |
initial commit
Diffstat (limited to 'sc/Makefile')
-rw-r--r-- | sc/Makefile | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/sc/Makefile b/sc/Makefile new file mode 100644 index 0000000..ce8a24d --- /dev/null +++ b/sc/Makefile @@ -0,0 +1,51 @@ +.POSIX: +target = sc +includes = -I../cfg -I../qstd -Iglslang +cflags = $(includes) -Wall -Wextra -pedantic -std=c++20 $(DEBUG_COMPILE_FLAG) +lflags = \ + $(DEBUG_LINK_FLAG) \ + -Lglslang/build/glslang \ + -Lglslang/build/SPIRV \ + -Lglslang/build/glslang/OSDependent/Unix \ + -Lglslang/build/External/spirv-tools/source \ + -Lglslang/build/External/spirv-tools/source/link \ + -Lglslang/build/External/spirv-tools/source/opt \ + -L../qstd \ + -L../cfg \ + -lcfg \ + -lqstd \ + -lglslang \ + -lglslang-default-resource-limits \ + -lSPIRV \ + -lMachineIndependent \ + -lSPVRemapper \ + -lOSDependent \ + -lGenericCodeGen \ + -lSPIRV-Tools-link \ + -lSPIRV-Tools-opt \ + -lSPIRV-Tools + +objects = sc.o includer.o + +.PHONY: all clean + +all: $(target) + +sc.o: sc.cpp includer.hpp + $(CXX) -c $(cflags) sc.cpp -o sc.o + +includer.o: includer.cpp includer.hpp + $(CXX) -c $(cflags) includer.cpp -o includer.o + +$(target): $(objects) ../qstd/libqstd.a ../cfg/libcfg.a + $(CXX) $(objects) $(lflags) -o $(target) + +../qstd/libqstd.a: + $(MAKE) -C ../qstd + +../cfg/libcfg.a: + $(MAKE) -C ../cfg + +clean: + rm -f $(target) + rm -f $(objects) |