2014-08-12 14:59:36 +02:00
|
|
|
# This makefile currently only works for mac os
|
|
|
|
# You should install via homebrew:
|
|
|
|
# brew install glew
|
|
|
|
# brew install glfw3
|
|
|
|
#
|
|
|
|
|
|
|
|
CXXFLAGS=-framework OpenGL -framework Cocoa -framework IOKit
|
2014-08-13 00:57:14 +02:00
|
|
|
CXXFLAGS+=-I/usr/local/Cellar/glew/1.10.0/include -I/usr/local/Cellar/glfw3/3.0.4/include
|
|
|
|
CXXFLAGS+=-L/usr/local/Cellar/glew/1.10.0/lib -L/usr/local/Cellar/glfw3/3.0.4/lib
|
2014-08-12 14:59:36 +02:00
|
|
|
CXXFLAGS+=-lglew -lglfw3
|
|
|
|
CXXFLAGS+=-I../../
|
|
|
|
CXXFLAGS+= -D__APPLE__
|
|
|
|
|
|
|
|
main: main.cpp ../../imgui.cpp
|
|
|
|
$(CXX) $(CXXFLAGS) -o $@ $^
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm main
|