summaryrefslogtreecommitdiff
path: root/Makefile
blob: 6011de29598435e73eac23c30aa1e9cde8fc2d56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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