Merged master into ada branch + fix Makefile
[jackhill/mal.git] / vimscript / Makefile
1 SOURCES_BASE = readline.vim types.vim reader.vim printer.vim
2 SOURCES_LISP = env.vim core.vim stepA_mal.vim
3 SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
4
5 all: libvimreadline.so
6
7 libvimreadline.so: vimreadline.o
8 $(CC) -g -shared -o $@ $< -lreadline
9
10 vimreadline.o: vimreadline.c
11 $(CC) -g -fPIC -c $< -o $@
12
13 clean:
14 rm -f vimreadline.o libvimreadline.so
15
16 stats: $(SOURCES)
17 @wc $^
18 @printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*\"|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
19 stats-lisp: $(SOURCES_LISP)
20 @wc $^
21 @printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*\"|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
22
23 .PHONY: stats stats-lisp clean