LearnOpenGL/Makefile

12 lines
336 B
Makefile
Raw Normal View History

CC = g++
CFLAGS = -std=c++17 -O2
LDFLAGS = -lglfw3 -lGL -ldl -lpthread -lX11 -lXxf86vm -lXrandr -lXi
OUT_NAME = LearnOpenGL
2022-02-12 20:38:31 +00:00
build: src/*.cpp src/*.h
mkdir -p build/
2022-02-12 20:38:31 +00:00
$(CC) $(CFLAGS) -Ilib/GLAD/include -Ilib/glfw/include -o build/$(OUT_NAME) lib/GLAD/src/glad.c src/*.cpp $(LDFLAGS)
2022-02-12 20:38:31 +00:00
run: build build/$(OUT_NAME)
./build/$(OUT_NAME)