start using glcxx

This commit is contained in:
josh committed 2015-10-11 19:40:55 -04:00
1 parent 8c02c0636e
commit 27d9b1535e
4 files changed
+99 -3

No files matched your search

+8 -1
View File
@@ -1,5 +1,9 @@
TARGET := app
OBJS := app.o GL3/gl3w.o
OBJS += glcxx/src/glcxx/Array.o
OBJS += glcxx/src/glcxx/Buffer.o
OBJS += glcxx/src/glcxx/Program.o
OBJS += glcxx/src/glcxx/Shader.o
REPOS := glcxx glm
CCFLAGS := $(shell sdl2-config --cflags)
@@ -28,6 +32,9 @@ $(TARGET): $(OBJS)
%.o: %.cc
$(CXX) -c -o $@ $(CCFLAGS) $(CXXFLAGS) $<
%.o: %.cpp
$(CXX) -c -o $@ $(CCFLAGS) $(CXXFLAGS) $<
.PHONY: submodule_init
submodule_init:
@if [ ! -e glcxx ]; then \
@@ -35,4 +42,4 @@ submodule_init:
fi
clean:
-rm -f $(TARGET) *~ *.o
-rm -f $(TARGET) *~ $(OBJS)