From e2655d104e14f0523d63b0e6f11da0c368b0a487 Mon Sep 17 00:00:00 2001 From: Marc Planard Date: Tue, 12 Aug 2014 14:24:23 +0200 Subject: [PATCH] add a quick and dirty makefile to build on linux --- examples/opengl_example/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 examples/opengl_example/Makefile diff --git a/examples/opengl_example/Makefile b/examples/opengl_example/Makefile new file mode 100644 index 00000000..6fd0b97c --- /dev/null +++ b/examples/opengl_example/Makefile @@ -0,0 +1,18 @@ +# +# Quick and dirty makefile to build on Linux +# tested on Ubuntu 14.04.1 32bit +# + +SRC = main.cpp ../../imgui.cpp + +OBJ = $(SRC:.cpp=.o) + +CXXFLAGS = -I../../ `pkg-config --cflags glfw3` + +LIBS = `pkg-config --static --libs glfw3` -lGLEW + +all: $(OBJ) + $(CXX) $(OBJ) $(LIBS) + +clean: + $(RM) -f $(OBJ)