Home | History | Annotate | Line # | Download | only in libclangAST
Makefile revision 1.2
      1 #	$NetBSD: Makefile,v 1.2 2019/11/16 15:51:26 joerg Exp $
      2 
      3 LIB=	clangAST
      4 
      5 .include <bsd.init.mk>
      6 
      7 .PATH: ${CLANG_SRCDIR}/lib/AST
      8 
      9 SRCS+=	APValue.cpp \
     10 	ASTConsumer.cpp \
     11 	ASTContext.cpp \
     12 	ASTDiagnostic.cpp \
     13 	ASTDumper.cpp \
     14 	ASTImporter.cpp \
     15 	ASTImporterLookupTable.cpp \
     16 	ASTStructuralEquivalence.cpp \
     17 	ASTTypeTraits.cpp \
     18 	AttrImpl.cpp \
     19 	CommentBriefParser.cpp \
     20 	CommentCommandTraits.cpp \
     21 	Comment.cpp \
     22 	CommentLexer.cpp \
     23 	CommentParser.cpp \
     24 	CommentSema.cpp \
     25 	ComparisonCategories.cpp \
     26 	CXXInheritance.cpp \
     27 	DataCollection.cpp \
     28 	DeclarationName.cpp \
     29 	DeclBase.cpp \
     30 	Decl.cpp \
     31 	DeclCXX.cpp \
     32 	DeclFriend.cpp \
     33 	DeclGroup.cpp \
     34 	DeclObjC.cpp \
     35 	DeclOpenMP.cpp \
     36 	DeclPrinter.cpp \
     37 	DeclTemplate.cpp \
     38 	ExprClassification.cpp \
     39 	ExprConstant.cpp \
     40 	Expr.cpp \
     41 	ExprCXX.cpp \
     42 	ExprObjC.cpp \
     43 	ExternalASTMerger.cpp \
     44 	ExternalASTSource.cpp \
     45 	FormatString.cpp \
     46 	InheritViz.cpp \
     47 	ItaniumCXXABI.cpp \
     48 	ItaniumMangle.cpp \
     49 	JSONNodeDumper.cpp \
     50 	Mangle.cpp \
     51 	MicrosoftCXXABI.cpp \
     52 	MicrosoftMangle.cpp \
     53 	NestedNameSpecifier.cpp \
     54 	NSAPI.cpp \
     55 	ODRHash.cpp \
     56 	OpenMPClause.cpp \
     57 	OSLog.cpp \
     58 	ParentMap.cpp \
     59 	PrintfFormatString.cpp \
     60 	QualTypeNames.cpp \
     61 	RawCommentList.cpp \
     62 	RecordLayoutBuilder.cpp \
     63 	RecordLayout.cpp \
     64 	ScanfFormatString.cpp \
     65 	SelectorLocationsKind.cpp \
     66 	Stmt.cpp \
     67 	StmtCXX.cpp \
     68 	StmtIterator.cpp \
     69 	StmtObjC.cpp \
     70 	StmtOpenMP.cpp \
     71 	StmtPrinter.cpp \
     72 	StmtProfile.cpp \
     73 	StmtViz.cpp \
     74 	TemplateBase.cpp \
     75 	TemplateName.cpp \
     76 	TextNodeDumper.cpp \
     77 	Type.cpp \
     78 	TypeLoc.cpp \
     79 	TypePrinter.cpp \
     80 	VTableBuilder.cpp \
     81 	VTTBuilder.cpp
     82 
     83 .PATH: ${CLANG_SRCDIR}/lib/AST/Interp
     84 
     85 SRCS+=	Block.cpp \
     86 	ByteCodeEmitter.cpp \
     87 	ByteCodeExprGen.cpp \
     88 	ByteCodeGenError.cpp \
     89 	ByteCodeStmtGen.cpp \
     90 	Context.cpp \
     91 	Descriptor.cpp \
     92 	Disasm.cpp \
     93 	EvalEmitter.cpp \
     94 	Frame.cpp \
     95 	Function.cpp \
     96 	Interp.cpp \
     97 	InterpFrame.cpp \
     98 	InterpStack.cpp \
     99 	InterpState.cpp \
    100 	Pointer.cpp \
    101 	PrimType.cpp \
    102 	Program.cpp \
    103 	Record.cpp \
    104 	Source.cpp \
    105 	State.cpp
    106 
    107 CLANG_TABLEGEN_SRC=	Opcodes.td
    108 CLANG_TABLEGEN_OUTPUT= \
    109 	Opcodes.inc|-gen-clang-opcodes
    110 
    111 .include "${.PARSEDIR}/../../tablegen.mk"
    112 
    113 .if defined(HOSTLIB)
    114 .include <bsd.hostlib.mk>
    115 BAD_GCC_VERSION!=	case `${HOST_CXX} --version 2> /dev/null` in [cg]++*7.4*) echo yes ;; *) echo no ;; esac
    116 .  if ${BAD_GCC_VERSION} == "yes"
    117 HOST_CXXFLAGS+=	-O0
    118 .  endif
    119 .else
    120 .include <bsd.lib.mk>
    121 .endif
    122