learningGL/Makefile

20 lines
244 B
Makefile
Raw Normal View History

2024-04-15 22:26:53 +00:00
CXX = g++
CFLAGS = -std=c++17
LDFLAGS = -lglfw -lGLEW -lGL
TARGET = bin/OpenGLTest
$(TARGET): main.cpp | bin
$(CXX) $(CFLAGS) -o $@ $^ $(LDFLAGS)
.PHONY: test clean
test: $(TARGET)
./$(TARGET)
clean:
rm -f $(TARGET)
bin:
mkdir -p bin