add glcxx and glm submodules
This commit is contained in:
parent
eae60acb14
commit
f80db8a3b5
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[submodule "glm"]
|
||||||
|
path = glm
|
||||||
|
url = git://github.com/g-truc/glm.git
|
9
Makefile
9
Makefile
@ -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
1
glcxx
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit e0f6651161cdb03f75ede1bde0e1ac49f097c414
|
1
glm
Submodule
1
glm
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 8f39bb8730d45570384f3156eb0126b835024d69
|
Loading…
x
Reference in New Issue
Block a user