Browse Source

add a quick and dirty makefile to build on linux

Marc Planard 11 năm trước cách đây
mục cha
commit
e2655d104e
1 tập tin đã thay đổi với 18 bổ sung0 xóa
  1. 18 0
      examples/opengl_example/Makefile

+ 18 - 0
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)