2022-02-06 11:52:11 +00:00
|
|
|
CC = g++
|
2022-02-21 23:32:22 +00:00
|
|
|
CFLAGS = -std=c++17 -O2 -g
|
|
|
|
LDFLAGS = -lglfw3 -lGL -ldl -lpthread -lX11 -lXxf86vm -lXrandr -lXi -lz -lassimp
|
2022-02-06 11:52:11 +00:00
|
|
|
OUT_NAME = LearnOpenGL
|
|
|
|
|
2023-02-03 15:33:02 +00:00
|
|
|
build: src/*.cpp src/*.h src/**/*.cpp src/**/*.h
|
2022-02-06 11:52:11 +00:00
|
|
|
mkdir -p build/
|
2023-02-03 15:33:02 +00:00
|
|
|
$(CC) $(CFLAGS) -Ilib/GLAD/include -Ilib/glfw/include -Ilib/stb -o build/$(OUT_NAME) lib/GLAD/src/glad.c lib/stb/stb_image.cpp src/**.cpp src/**/*.cpp $(LDFLAGS)
|
2022-02-06 11:52:11 +00:00
|
|
|
|
|
|
|
|
2022-02-12 20:38:31 +00:00
|
|
|
run: build build/$(OUT_NAME)
|
2022-02-21 23:32:22 +00:00
|
|
|
./build/$(OUT_NAME)
|
2023-02-03 15:33:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
debug: build build/$(OUT_NAME)
|
|
|
|
gdb build/$(OUT_NAME)
|