Makefile
CXX = g++
CFLAGS = -std=c++11 -Ithird_party/GLEW/include -Ithird_party/GLFW/include\
-I.\
-Lthird_party/GLEW/lib -Lthird_party/GLFW/lib\
-lGLEW -lglfw3\
-framework Cocoa -framework IOKit -framework CoreVideo -framework OpenGL\
-D GL_SILENCE_DEPRECATION
BIN = bin
TARGET = $(BIN)/coffee
DIRS = coffee coffee/audio coffee/system coffee/math coffee/input
SRC = $(foreach dir, $(DIRS), $(wildcard $(dir)/*.cc))
$(TARGET): clean $(SRC)
$(CXX) $(CFLAGS) $(SRC) -o $(TARGET)
run: $(TARGET)
./$(TARGET)
clean:
-$(RM) $(TARGET) $(OBJS)