aboutsummaryrefslogtreecommitdiff
path: root/template/make/base-c
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2014-04-15 09:23:46 +0900
committermattn <mattn.jp@gmail.com>2014-04-15 09:23:46 +0900
commit24ad78af24af6868ad521c2eb80c49c72475fdd9 (patch)
treea8c6091411afaa4d265398211fa3d3787461b24a /template/make/base-c
parent1d727f5f226e28484b985b4e7c368df1c39a9023 (diff)
downloadvim-sonictemplate-24ad78af24af6868ad521c2eb80c49c72475fdd9.tar.gz
vim-sonictemplate-24ad78af24af6868ad521c2eb80c49c72475fdd9.tar.bz2
vim-sonictemplate-24ad78af24af6868ad521c2eb80c49c72475fdd9.zip
Add OS detection
Diffstat (limited to 'template/make/base-c')
-rw-r--r--template/make/base-c19
1 files changed, 0 insertions, 19 deletions
diff --git a/template/make/base-c b/template/make/base-c
deleted file mode 100644
index cab0056..0000000
--- a/template/make/base-c
+++ /dev/null
@@ -1,19 +0,0 @@
-SRCS = \
-{{_expr_:join(map(split(glob('*.c'),"\n"),'"\t".substitute(v:val,"\\","/","g")')," \\\n")}}
-
-OBJS = $(subst .c,.o,$(SRCS))
-
-CFLAGS =
-LIBS =
-TARGET = {{_expr_:expand('%:p:h:t') . (has('win32')||has('win64')?'.exe':'')}}
-
-all : $(TARGET)
-
-$(TARGET) : $(OBJS)
- gcc -o $@ $(OBJS) $(LIBS)
-
-.c.o :
- gcc -c $(CFLAGS) -I. $< -o $@
-
-clean :
- rm -f *.o $(TARGET)