aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2019-03-01 18:28:03 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2019-03-01 18:28:03 +0900
commit70f5ab9ca0fb359f8b11a84a464e52120d992bd4 (patch)
tree0da033a0be459fc10135ec9a4f994069b0731f59
parentf6571375fd13cafe9e060103795db93a956cfaf6 (diff)
downloadvim-sonictemplate-70f5ab9ca0fb359f8b11a84a464e52120d992bd4.tar.gz
vim-sonictemplate-70f5ab9ca0fb359f8b11a84a464e52120d992bd4.tar.bz2
vim-sonictemplate-70f5ab9ca0fb359f8b11a84a464e52120d992bd4.zip
Add cc
-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)