From 0349c738da5970d9f0fc10d7cf4d7b766ce10e13 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Mon, 15 Oct 2012 15:36:25 +0200 Subject: support for compiler rewriters Change-Id: I12e98ac9fc49ef2007914324006a396d183b778c --- compilerplugins/Makefile-clang.mk | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'compilerplugins/Makefile-clang.mk') diff --git a/compilerplugins/Makefile-clang.mk b/compilerplugins/Makefile-clang.mk index f9bec4147084..f18390668983 100644 --- a/compilerplugins/Makefile-clang.mk +++ b/compilerplugins/Makefile-clang.mk @@ -9,8 +9,10 @@ # Make sure variables in this Makefile do not conflict with other variables (e.g. from gbuild). # The list of source files. -CLANGSRC=compileplugin.cxx \ +CLANGSRC= \ + plugin.cxx \ bodynotinblock.cxx \ + lclstaticfix.cxx \ sallogareas.cxx \ unusedvariablecheck.cxx \ @@ -40,7 +42,7 @@ CLANGINDIR=$(SRCDIR)/compilerplugins/clang # plugin will cause cache misses with ccache. CLANGOUTDIR=$(SRCDIR)/compilerplugins/obj -compilerplugins: $(CLANGOUTDIR) $(CLANGOUTDIR)/compileplugin.so +compilerplugins: $(CLANGOUTDIR) $(CLANGOUTDIR)/plugin.so compilerplugins-clean: rm -rf $(CLANGOUTDIR) @@ -57,13 +59,13 @@ $(3): $(2) $(SRCDIR)/compilerplugins/Makefile-clang.mk $(CLANGOUTDIR)/clang-time -include $(CLANGOUTDIR)/$(1).d -$(CLANGOUTDIR)/compileplugin.so: $(3) -$(CLANGOUTDIR)/compileplugin.so: CLANGOBJS += $(3) +$(CLANGOUTDIR)/plugin.so: $(3) +$(CLANGOUTDIR)/plugin.so: CLANGOBJS += $(3) endef $(foreach src, $(CLANGSRC), $(eval $(call clangbuildsrc,$(src),$(CLANGINDIR)/$(src),$(CLANGOUTDIR)/$(src:.cxx=.o)))) -$(CLANGOUTDIR)/compileplugin.so: $(CLANGOBJS) +$(CLANGOUTDIR)/plugin.so: $(CLANGOBJS) @echo [build LNK] $(subst $(SRCDIR)/,,$@) $(CXX) -shared $(CLANGOBJS) -o $@ -- cgit