diff options
| author | Miguel <m.i@gmx.at> | 2022-05-18 02:04:29 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2022-05-18 02:07:30 +0200 |
| commit | 193873731c095d2ba9d8def2de679578802ada7a (patch) | |
| tree | e5c9ae61449ea058fa34013f7dee70c65bb57873 /Makefile | |
Hello Triangle
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6011de2 --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +########################### + +#linux +CMAKE=cmake + +#win +CMAKE=/mnt/d/PROG/Microsoft\ Visual\ Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe + +.PHONY: run-debug run-release clean + +run-release: build-release + cd ./lib && ../build/Release/Tutorial.exe + +build-release: build + ${CMAKE} --build ./build --config Release + +run-debug: build-debug + cd ./lib && ../build/Debug/Tutorial.exe + +build-debug: build + ${CMAKE} --build ./build + +build: + ${CMAKE} -S ./src -B ./build + +clean: + rm build -rf |
