aboutsummaryrefslogtreecommitdiff
path: root/template/make
diff options
context:
space:
mode:
Diffstat (limited to 'template/make')
-rw-r--r--template/make/base-cpp.mak10
1 files changed, 5 insertions, 5 deletions
diff --git a/template/make/base-cpp.mak b/template/make/base-cpp.mak
index 4410813..8533b1f 100644
--- a/template/make/base-cpp.mak
+++ b/template/make/base-cpp.mak
@@ -1,9 +1,9 @@
SRCS = \
-{{_expr_:join(map(split(glob('*.cpp'),"\n")+split(glob('*.cxx'),"\n"),'"\t".substitute(v:val,"\\","/","g")')," \\\n")}}
+{{_expr_:join(map(split(glob('*.cpp'),"\n")+split(glob('*.cxx'),"\n")+split(glob('*.cc'),"\n"),'"\t".substitute(v:val,"\\","/","g")')," \\\n")}}
-OBJS = $(subst .cxx,.o,$(subst .cpp,.o,$(SRCS)))
+OBJS = $(subst .cc,.o,$(subst .cxx,.o,$(subst .cpp,.o,$(SRCS))))
-CFLAGS =
+CXXFLAGS =
LIBS =
TARGET = {{_expr_:expand('%:p:h:t')}}
ifeq ($(OS),Windows_NT)
@@ -18,10 +18,10 @@ $(TARGET) : $(OBJS)
g++ -std=c++14 -o $@ $(OBJS) $(LIBS)
.cxx.o :
- g++ -std=c++14 -c $(CFLAGS) -I. $< -o $@
+ g++ -std=c++14 -c $(CXXFLAGS) -I. $< -o $@
.cpp.o :
- g++ -std=c++14 -c $(CFLAGS) -I. $< -o $@
+ g++ -std=c++14 -c $(CXXFLAGS) -I. $< -o $@
clean :
rm -f *.o $(TARGET)