blob: 2582908b95d00507e58841f176da4c8a6ed13e50 [file] [log] [blame]
Argyrios Kyrtzidisa7af5ea2010-12-22 18:52:56 +00001##===- clang/lib/Checker/Makefile --------------------------*- Makefile -*-===##
2#
3# The LLVM Compiler Infrastructure
4#
5# This file is distributed under the University of Illinois Open Source
6# License. See LICENSE.TXT for details.
7#
8##===----------------------------------------------------------------------===##
9#
10# This implements analyses built on top of source-level CFGs.
11#
12##===----------------------------------------------------------------------===##
13
14CLANG_LEVEL := ../../..
Ted Kremenek21142582010-12-23 19:38:26 +000015LIBRARYNAME := clangStaticAnalyzerCheckers
Argyrios Kyrtzidisa7af5ea2010-12-22 18:52:56 +000016
Argyrios Kyrtzidis43dee222011-02-14 18:13:31 +000017BUILT_SOURCES = Checkers.inc
18TABLEGEN_INC_FILES_COMMON = 1
19
Argyrios Kyrtzidisa7af5ea2010-12-22 18:52:56 +000020include $(CLANG_LEVEL)/Makefile
Argyrios Kyrtzidis43dee222011-02-14 18:13:31 +000021
Peter Collingbourne6ee5b932011-10-06 01:52:10 +000022$(ObjDir)/Checkers.inc.tmp : Checkers.td $(PROJ_SRC_DIR)/$(CLANG_LEVEL)/include/clang/StaticAnalyzer/Checkers/CheckerBase.td $(CLANG_TBLGEN) $(ObjDir)/.dir
Argyrios Kyrtzidis43dee222011-02-14 18:13:31 +000023 $(Echo) "Building Clang SA Checkers tables with tblgen"
Peter Collingbourne6ee5b932011-10-06 01:52:10 +000024 $(Verb) $(ClangTableGen) -gen-clang-sa-checkers -I $(PROJ_SRC_DIR)/$(CLANG_LEVEL)/include -o $(call SYSPATH, $@) $<