1 | ######################## -*- Mode: Makefile-Automake -*- ###################### |
---|
2 | ## |
---|
3 | ## Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo |
---|
4 | ## |
---|
5 | ## The contents of this file are covered under the licence agreement in the |
---|
6 | ## file "LICENCE" distributed with Cforall. |
---|
7 | ## |
---|
8 | ## Makefile.am -- |
---|
9 | ## |
---|
10 | ## Author : Peter A. Buhr |
---|
11 | ## Created On : Sun May 31 08:51:46 2015 |
---|
12 | ## Last Modified By : Andrew Beach |
---|
13 | ## Last Modified On : Tus Jul 25 10:34:00 2017 |
---|
14 | ## Update Count : 76 |
---|
15 | ############################################################################### |
---|
16 | |
---|
17 | # create object files in directory with source files |
---|
18 | AUTOMAKE_OPTIONS = foreign subdir-objects |
---|
19 | |
---|
20 | SRC = main.cc \ |
---|
21 | MakeLibCfa.cc \ |
---|
22 | CompilationState.cc |
---|
23 | |
---|
24 | MAINTAINERCLEANFILES = |
---|
25 | MOSTLYCLEANFILES = |
---|
26 | |
---|
27 | # Is there a way to use a variable for the directory names? |
---|
28 | |
---|
29 | include CodeGen/module.mk |
---|
30 | include CodeTools/module.mk |
---|
31 | include Concurrency/module.mk |
---|
32 | include Common/module.mk |
---|
33 | include ControlStruct/module.mk |
---|
34 | include GenPoly/module.mk |
---|
35 | include InitTweak/module.mk |
---|
36 | include Parser/module.mk |
---|
37 | include ResolvExpr/module.mk |
---|
38 | include SymTab/module.mk |
---|
39 | include SynTree/module.mk |
---|
40 | include Tuples/module.mk |
---|
41 | include Validate/module.mk |
---|
42 | include Virtual/module.mk |
---|
43 | |
---|
44 | # put into lib for now |
---|
45 | cfa_cpplibdir = $(CFA_LIBDIR) |
---|
46 | cfa_cpplib_PROGRAMS = ../driver/cfa-cpp demangler |
---|
47 | ___driver_cfa_cpp_SOURCES = $(SRC) |
---|
48 | ___driver_cfa_cpp_LDADD = -ldl # yywrap |
---|
49 | |
---|
50 | AM_CXXFLAGS = @HOST_FLAGS@ -Wno-deprecated -Wall -Wextra -DDEBUG_ALL -I./Parser -I$(srcdir)/Parser -I$(srcdir)/include -DYY_NO_INPUT -O2 -g -std=c++14 |
---|
51 | AM_LDFLAGS = @HOST_FLAGS@ -Xlinker -export-dynamic |
---|
52 | ARFLAGS = cr |
---|
53 | |
---|
54 | demangler_SOURCES = SymTab/demangler.cc |
---|
55 | |
---|
56 | demangler_LDADD = libdemangle.a # yywrap |
---|
57 | |
---|
58 | noinst_LIBRARIES = libdemangle.a |
---|
59 | libdemangle_a_SOURCES = SymTab/Demangle.cc SymTab/ManglerCommon.cc \ |
---|
60 | SynTree/Type.cc \ |
---|
61 | SynTree/VoidType.cc \ |
---|
62 | SynTree/BasicType.cc \ |
---|
63 | SynTree/PointerType.cc \ |
---|
64 | SynTree/ArrayType.cc \ |
---|
65 | SynTree/ReferenceType.cc \ |
---|
66 | SynTree/FunctionType.cc \ |
---|
67 | SynTree/ReferenceToType.cc \ |
---|
68 | SynTree/TupleType.cc \ |
---|
69 | SynTree/TypeofType.cc \ |
---|
70 | SynTree/AttrType.cc \ |
---|
71 | SynTree/VarArgsType.cc \ |
---|
72 | SynTree/ZeroOneType.cc \ |
---|
73 | SynTree/Constant.cc \ |
---|
74 | SynTree/Expression.cc \ |
---|
75 | SynTree/TupleExpr.cc \ |
---|
76 | SynTree/CommaExpr.cc \ |
---|
77 | SynTree/TypeExpr.cc \ |
---|
78 | SynTree/ApplicationExpr.cc \ |
---|
79 | SynTree/AddressExpr.cc \ |
---|
80 | SynTree/Statement.cc \ |
---|
81 | SynTree/CompoundStmt.cc \ |
---|
82 | SynTree/DeclStmt.cc \ |
---|
83 | SynTree/Declaration.cc \ |
---|
84 | SynTree/DeclarationWithType.cc \ |
---|
85 | SynTree/ObjectDecl.cc \ |
---|
86 | SynTree/FunctionDecl.cc \ |
---|
87 | SynTree/AggregateDecl.cc \ |
---|
88 | SynTree/NamedTypeDecl.cc \ |
---|
89 | SynTree/TypeDecl.cc \ |
---|
90 | SynTree/Initializer.cc \ |
---|
91 | SynTree/TypeSubstitution.cc \ |
---|
92 | SynTree/Attribute.cc \ |
---|
93 | SynTree/DeclReplacer.cc \ |
---|
94 | CompilationState.cc \ |
---|
95 | CodeGen/CodeGenerator.cc \ |
---|
96 | CodeGen/FixMain.cc \ |
---|
97 | CodeGen/GenType.cc \ |
---|
98 | CodeGen/OperatorTable.cc \ |
---|
99 | Common/Assert.cc \ |
---|
100 | Common/Eval.cc \ |
---|
101 | Common/SemanticError.cc \ |
---|
102 | Common/UniqueName.cc \ |
---|
103 | Concurrency/Keywords.cc \ |
---|
104 | ControlStruct/ForExprMutator.cc \ |
---|
105 | ControlStruct/LabelFixer.cc \ |
---|
106 | ControlStruct/LabelGenerator.cc \ |
---|
107 | ControlStruct/MLEMutator.cc \ |
---|
108 | ControlStruct/Mutate.cc \ |
---|
109 | GenPoly/GenPoly.cc \ |
---|
110 | GenPoly/Lvalue.cc \ |
---|
111 | InitTweak/GenInit.cc \ |
---|
112 | InitTweak/InitTweak.cc \ |
---|
113 | Parser/LinkageSpec.cc \ |
---|
114 | ResolvExpr/AdjustExprType.cc \ |
---|
115 | ResolvExpr/Alternative.cc \ |
---|
116 | ResolvExpr/AlternativeFinder.cc \ |
---|
117 | ResolvExpr/ExplodedActual.cc \ |
---|
118 | ResolvExpr/CastCost.cc \ |
---|
119 | ResolvExpr/CommonType.cc \ |
---|
120 | ResolvExpr/ConversionCost.cc \ |
---|
121 | ResolvExpr/CurrentObject.cc \ |
---|
122 | ResolvExpr/FindOpenVars.cc \ |
---|
123 | ResolvExpr/Occurs.cc \ |
---|
124 | ResolvExpr/PolyCost.cc \ |
---|
125 | ResolvExpr/PtrsAssignable.cc \ |
---|
126 | ResolvExpr/PtrsCastable.cc \ |
---|
127 | ResolvExpr/RenameVars.cc \ |
---|
128 | ResolvExpr/Resolver.cc \ |
---|
129 | ResolvExpr/ResolveTypeof.cc \ |
---|
130 | ResolvExpr/SpecCost.cc \ |
---|
131 | ResolvExpr/TypeEnvironment.cc \ |
---|
132 | ResolvExpr/Unify.cc \ |
---|
133 | SymTab/Autogen.cc \ |
---|
134 | SymTab/FixFunction.cc \ |
---|
135 | SymTab/Indexer.cc \ |
---|
136 | SymTab/Mangler.cc \ |
---|
137 | SymTab/Validate.cc \ |
---|
138 | Tuples/Explode.cc \ |
---|
139 | Tuples/TupleAssignment.cc \ |
---|
140 | Tuples/TupleExpansion.cc \ |
---|
141 | Validate/HandleAttributes.cc |
---|
142 | |
---|
143 | MAINTAINERCLEANFILES += ${libdir}/${notdir ${cfa_cpplib_PROGRAMS}} |
---|