From f335350b127a2da1be979f4f5b2c0593513f1cdd Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 5 Feb 2013 17:23:09 +1100 Subject: To run Clang analyzer, use 'analyze' target instead of defining 'CLANG_ANALYZE'. This prevents later failures with linking. --- gtk/makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gtk') diff --git a/gtk/makefile b/gtk/makefile index c3ba18b73..d654f4c02 100644 --- a/gtk/makefile +++ b/gtk/makefile @@ -8,11 +8,8 @@ .SUFFIXES: .cxx .c .o .h .a ifdef CLANG -ifdef CLANG_ANALYZE -ANALYZE=--analyze -endif -CC = clang $(ANALYZE) -CCOMP = clang $(ANALYZE) +CC = clang +CCOMP = clang else CC = g++ CCOMP = gcc @@ -80,6 +77,9 @@ all: $(COMPLIB) clean: $(DEL) *.o $(COMPLIB) *.plist +analyze: + clang --analyze $(CONFIGFLAGS) $(CXXTFLAGS) $(CXXFLAGS) *.cxx ../src/*.cxx ../lexlib/*.cxx ../lexers/*.cxx + deps: $(CC) -MM $(CONFIGFLAGS) $(CXXTFLAGS) *.cxx ../src/*.cxx | sed -e 's/\/usr.* //' | grep [a-zA-Z] >deps.mak -- cgit v1.2.3