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