|
|
@ -21,13 +21,17 @@ SOURCES += ../../imgui.cpp ../../imgui_demo.cpp ../../imgui_draw.cpp ../../imgui
|
|
|
|
OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES))))
|
|
|
|
OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES))))
|
|
|
|
UNAME_S := $(shell uname -s)
|
|
|
|
UNAME_S := $(shell uname -s)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CXXFLAGS = -I../ -I../../
|
|
|
|
|
|
|
|
CXXFLAGS += -g -Wall -Wformat
|
|
|
|
|
|
|
|
LIBS =
|
|
|
|
|
|
|
|
|
|
|
|
##---------------------------------------------------------------------
|
|
|
|
##---------------------------------------------------------------------
|
|
|
|
## OPENGL LOADER
|
|
|
|
## OPENGL LOADER
|
|
|
|
##---------------------------------------------------------------------
|
|
|
|
##---------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
## Using OpenGL loader: gl3w [default]
|
|
|
|
## Using OpenGL loader: gl3w [default]
|
|
|
|
SOURCES += ../libs/gl3w/GL/gl3w.c
|
|
|
|
SOURCES += ../libs/gl3w/GL/gl3w.c
|
|
|
|
CXXFLAGS = -I../libs/gl3w
|
|
|
|
CXXFLAGS += -I../libs/gl3w
|
|
|
|
|
|
|
|
|
|
|
|
## Using OpenGL loader: glew
|
|
|
|
## Using OpenGL loader: glew
|
|
|
|
## (This assumes a system-wide installation)
|
|
|
|
## (This assumes a system-wide installation)
|
|
|
@ -44,30 +48,28 @@ CXXFLAGS = -I../libs/gl3w
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(UNAME_S), Linux) #LINUX
|
|
|
|
ifeq ($(UNAME_S), Linux) #LINUX
|
|
|
|
ECHO_MESSAGE = "Linux"
|
|
|
|
ECHO_MESSAGE = "Linux"
|
|
|
|
LIBS = -lGL `pkg-config --static --libs glfw3`
|
|
|
|
LIBS += -lGL `pkg-config --static --libs glfw3`
|
|
|
|
|
|
|
|
|
|
|
|
CXXFLAGS += -I../ -I../../ `pkg-config --cflags glfw3`
|
|
|
|
CXXFLAGS += `pkg-config --cflags glfw3`
|
|
|
|
CXXFLAGS += -Wall -Wformat
|
|
|
|
|
|
|
|
CFLAGS = $(CXXFLAGS)
|
|
|
|
CFLAGS = $(CXXFLAGS)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(UNAME_S), Darwin) #APPLE
|
|
|
|
ifeq ($(UNAME_S), Darwin) #APPLE
|
|
|
|
ECHO_MESSAGE = "Mac OS X"
|
|
|
|
ECHO_MESSAGE = "Mac OS X"
|
|
|
|
LIBS = -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo
|
|
|
|
LIBS += -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo
|
|
|
|
#LIBS += -L/usr/local/lib -lglfw3
|
|
|
|
LIBS += -L/usr/local/lib -L/opt/local/lib
|
|
|
|
LIBS += -L/usr/local/lib -lglfw
|
|
|
|
#LIBS += -lglfw3
|
|
|
|
|
|
|
|
LIBS += -lglfw
|
|
|
|
|
|
|
|
|
|
|
|
CXXFLAGS += -I../ -I../../ -I/usr/local/include
|
|
|
|
CXXFLAGS += -I/usr/local/include -I/opt/local/include
|
|
|
|
CXXFLAGS += -Wall -Wformat
|
|
|
|
|
|
|
|
CFLAGS = $(CXXFLAGS)
|
|
|
|
CFLAGS = $(CXXFLAGS)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(findstring MINGW,$(UNAME_S)),MINGW)
|
|
|
|
ifeq ($(findstring MINGW,$(UNAME_S)),MINGW)
|
|
|
|
ECHO_MESSAGE = "Windows"
|
|
|
|
ECHO_MESSAGE = "MinGW"
|
|
|
|
LIBS = -lglfw3 -lgdi32 -lopengl32 -limm32
|
|
|
|
LIBS += -lglfw3 -lgdi32 -lopengl32 -limm32
|
|
|
|
|
|
|
|
|
|
|
|
CXXFLAGS += -I../ -I../../ `pkg-config --cflags glfw3`
|
|
|
|
CXXFLAGS += `pkg-config --cflags glfw3`
|
|
|
|
CXXFLAGS += -Wall -Wformat
|
|
|
|
|
|
|
|
CFLAGS = $(CXXFLAGS)
|
|
|
|
CFLAGS = $(CXXFLAGS)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|