add glcxx and glm submodules

This commit is contained in:
Josh Holtrop 2015-10-11 15:37:31 -04:00
parent eae60acb14
commit f80db8a3b5
4 changed files with 13 additions and 1 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "glm"]
path = glm
url = git://github.com/g-truc/glm.git

View File

@ -1,5 +1,6 @@
FILE := app FILE := app
TARGET := $(FILE) TARGET := $(FILE)
REPOS := glcxx glm
CCFLAGS := $(shell sdl2-config --cflags) CCFLAGS := $(shell sdl2-config --cflags)
ifeq (MINGW,$(findstring MINGW,$(shell uname))) ifeq (MINGW,$(findstring MINGW,$(shell uname)))
@ -12,10 +13,16 @@ endif
LDFLAGS := $(LIBS) $(shell sdl2-config --libs) LDFLAGS := $(LIBS) $(shell sdl2-config --libs)
all: $(TARGET) all: submodule_init $(TARGET)
$(TARGET): $(FILE).cc $(TARGET): $(FILE).cc
$(CXX) -o $(TARGET) $(CCFLAGS) $< $(LDFLAGS) $(CXX) -o $(TARGET) $(CCFLAGS) $< $(LDFLAGS)
.PHONY: submodule_init
submodule_init:
@if [ ! -e glcxx ]; then \
git submodule update --init; \
fi
clean: clean:
-rm -f $(TARGET) *~ *.o -rm -f $(TARGET) *~ *.o

1
glcxx Submodule

@ -0,0 +1 @@
Subproject commit e0f6651161cdb03f75ede1bde0e1ac49f097c414

1
glm Submodule

@ -0,0 +1 @@
Subproject commit 8f39bb8730d45570384f3156eb0126b835024d69