20 lines
244 B
Makefile
20 lines
244 B
Makefile
|
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
|