diff options
author | mattn <mattn.jp@gmail.com> | 2014-04-15 09:23:46 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2014-04-15 09:23:46 +0900 |
commit | 24ad78af24af6868ad521c2eb80c49c72475fdd9 (patch) | |
tree | a8c6091411afaa4d265398211fa3d3787461b24a /template/make/base-c | |
parent | 1d727f5f226e28484b985b4e7c368df1c39a9023 (diff) | |
download | vim-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-c | 19 |
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) |