From 849f17160c8302f09898c9a0d2624d18e4b4de77 Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Sun, 3 Nov 2019 23:00:18 +0200 Subject: Initial commit --- Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..aefb9b2 --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +# Example Makefile. Download raylib 2.5.0 binary release and +# imgui release 1.73 to use this. You will also need to have +# glad.h from raylib repository available in glad/glad.h as +# that is included from imgui_impl_opengl3.cpp. + +SOURCES = \ + imgui-1.73/imgui.cpp \ + imgui-1.73/imgui_demo.cpp \ + imgui-1.73/imgui_draw.cpp \ + imgui-1.73/imgui_widgets.cpp \ + imgui-1.73/examples/imgui_impl_opengl3.cpp \ + imgui_impl_raylib.cpp + +OBJECTS = $(SOURCES:.cpp=.o) + +CPPFLAGS += -Iraylib-2.5.0-Linux-amd64/include -Iimgui-1.73 -Iimgui-1.73/examples -I. + +CXXFLAGS += -g -DDEBUG -DIMGUI_IMPL_OPENGL_LOADER_GLAD + +LDLIBS += -lraylib + +LDFLAGS += -Lraylib-2.5.0-Linux-amd64/lib + +example: example.o $(OBJECTS) + $(LINK.cpp) $^ $(LDLIBS) -o $@ + +clean: + rm -f $(OBJECTS) example.o -- cgit v1.2.3