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