diff --git a/src/Editor/DearImGui/Makefile.imgui b/src/Editor/DearImGui/Makefile.imgui index eb3f1a2..c656ef3 100644 --- a/src/Editor/DearImGui/Makefile.imgui +++ b/src/Editor/DearImGui/Makefile.imgui @@ -78,4 +78,20 @@ GUI_OBJS += implot_items.o implot.o # VPATH += $(THIRDPART)/ImGuiFileDialog INCLUDES += -I$(THIRDPART)/ImGuiFileDialog -GUI_OBJS += ImGuiFileDialog.o \ No newline at end of file +GUI_OBJS += ImGuiFileDialog.o + +################################################### +# OpenGL: glfw and glew libraries +# +ifeq ($(ARCHI),Darwin) +INCLUDES += -I/usr/local/include -I/opt/local/include +LINKER_FLAGS += -framework OpenGL -framework Cocoa +LINKER_FLAGS += -framework IOKit -framework CoreVideo +LINKER_FLAGS += -L/usr/local/lib -L/opt/local/lib +LINKER_FLAGS += -lGLEW -lglfw +else ifeq ($(ARCHI),Linux) +LINKER_FLAGS += -lGL +PKG_LIBS += --static glfw3 +else ifneq ($(ARCHI),Emscripten) +$(error Unknown architecture $(ARCHI) for OpenGL) +endif \ No newline at end of file