Nigel
82cf5b9c93
Model loading is complex. As such in the learnopengl.com tutorial we use assimp to make our life a little easier.
13 lines
353 B
Makefile
13 lines
353 B
Makefile
CC = g++
|
|
CFLAGS = -std=c++17 -O2 -g
|
|
LDFLAGS = -lglfw3 -lGL -ldl -lpthread -lX11 -lXxf86vm -lXrandr -lXi -lz -lassimp
|
|
OUT_NAME = LearnOpenGL
|
|
|
|
build: src/*.cpp src/*.h
|
|
mkdir -p build/
|
|
$(CC) $(CFLAGS) -Ilib/GLAD/include -Ilib/glfw/include -o build/$(OUT_NAME) lib/GLAD/src/glad.c src/*.cpp $(LDFLAGS)
|
|
|
|
|
|
run: build build/$(OUT_NAME)
|
|
./build/$(OUT_NAME)
|