add glcxx and glm submodules
This commit is contained in:
1 parent
eae60acb14
commit
f80db8a3b5
4 files changed
+13
-1
No files matched your search
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "glm"]
|
||||||
|
path = glm
|
||||||
|
url = git://github.com/g-truc/glm.git
|
||||||
@@ -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
|
||||||
Submodule
+1
Submodule glcxx added at e0f6651161.
Submodule
+1
Submodule glm added at 8f39bb8730.
Reference in new issue
Block a user