summaryrefslogtreecommitdiff
path: root/clang/Makefile
blob: b4ee7c3abecb7c2e042a45360fa8fac699781682 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CLANGDEFS=-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fno-rtti
CLANGWARNS=-Werror -Wall -Wno-missing-braces -Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunused-macros -Wshadow -Woverloaded-virtual
CLANGFLAGS = $(CLANGDEFS) $(CLANGWARNS) -g -std=c++11
CLANGLIBS = -lLLVMSupport -lclangAST -lclangBasic -lclangFrontend -lclangRewrite -lclangTooling

all: bin/rename bin/find-unprefixed-members bin/find-unprefixed-members-wrapper

bin/rename: rename.cxx Makefile
	clang++ $(CLANGFLAGS) $(CLANGLIBS) -o $@ $<

bin/find-unprefixed-members: find-unprefixed-members.cxx Makefile
	clang++ $(CLANGFLAGS) $(CLANGLIBS) -o $@ $<

bin/find-unprefixed-members-wrapper: bin/rename-wrapper Makefile
	sed 's/rename/find-unprefixed-members/' $< > $@
	chmod a+x $@

test: test.cxx test.hxx Makefile
	clang++ -o test test.cxx

# vim: set noet sw=4 ts=4: