xref: /minix3/external/bsd/llvm/dist/clang/lib/StaticAnalyzer/Checkers/Makefile (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc##===- clang/lib/Checker/Makefile --------------------------*- Makefile -*-===##
2*f4a2713aSLionel Sambuc#
3*f4a2713aSLionel Sambuc#                     The LLVM Compiler Infrastructure
4*f4a2713aSLionel Sambuc#
5*f4a2713aSLionel Sambuc# This file is distributed under the University of Illinois Open Source
6*f4a2713aSLionel Sambuc# License. See LICENSE.TXT for details.
7*f4a2713aSLionel Sambuc#
8*f4a2713aSLionel Sambuc##===----------------------------------------------------------------------===##
9*f4a2713aSLionel Sambuc#
10*f4a2713aSLionel Sambuc# This implements analyses built on top of source-level CFGs.
11*f4a2713aSLionel Sambuc#
12*f4a2713aSLionel Sambuc##===----------------------------------------------------------------------===##
13*f4a2713aSLionel Sambuc
14*f4a2713aSLionel SambucCLANG_LEVEL := ../../..
15*f4a2713aSLionel SambucLIBRARYNAME := clangStaticAnalyzerCheckers
16*f4a2713aSLionel Sambuc
17*f4a2713aSLionel SambucBUILT_SOURCES = Checkers.inc
18*f4a2713aSLionel SambucTABLEGEN_INC_FILES_COMMON = 1
19*f4a2713aSLionel Sambuc
20*f4a2713aSLionel Sambucinclude $(CLANG_LEVEL)/Makefile
21*f4a2713aSLionel Sambuc
22*f4a2713aSLionel Sambuc$(ObjDir)/Checkers.inc.tmp : Checkers.td $(PROJ_SRC_DIR)/$(CLANG_LEVEL)/include/clang/StaticAnalyzer/Checkers/CheckerBase.td $(CLANG_TBLGEN) $(ObjDir)/.dir
23*f4a2713aSLionel Sambuc	$(Echo) "Building Clang SA Checkers tables with tblgen"
24*f4a2713aSLionel Sambuc	$(Verb) $(ClangTableGen) -gen-clang-sa-checkers -I $(PROJ_SRC_DIR)/$(CLANG_LEVEL)/include -o $(call SYSPATH, $@) $<
25