12 lines
341 B
Makefile
12 lines
341 B
Makefile
CC = g++
|
|
CFLAGS = -std=c++17 -O2
|
|
LDFLAGS = -lglfw3 -lGL -ldl -lpthread -lX11 -lXxf86vm -lXrandr -lXi
|
|
OUT_NAME = LearnOpenGL
|
|
|
|
build: src/main.cpp src/shader.h
|
|
mkdir -p build/
|
|
$(CC) $(CFLAGS) -Ilib/GLAD/include -Ilib/glfw/include -o build/$(OUT_NAME) lib/GLAD/src/glad.c src/main.cpp $(LDFLAGS)
|
|
|
|
|
|
run: build/$(OUT_NAME)
|
|
./build/$(OUT_NAME)
|