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 | ACLOCAL_AMFLAGS = -I automake |
---|
20 | |
---|
21 | SRC = main.cc \ |
---|
22 | MakeLibCfa.cc \ |
---|
23 | CompilationState.cc |
---|
24 | |
---|
25 | MAINTAINERCLEANFILES = |
---|
26 | MOSTLYCLEANFILES = Parser/gcc-flags.h |
---|
27 | |
---|
28 | Parser/gcc-flags.h : |
---|
29 | ${AM_V_GEN}$(CC) -dM -E - < /dev/null | sed 's/define /define __GCC__/' > $(@) |
---|
30 | |
---|
31 | Parser/lex.ll : Parser/gcc-flags.h |
---|
32 | |
---|
33 | include CodeGen/module.mk |
---|
34 | include CodeTools/module.mk |
---|
35 | include Concurrency/module.mk |
---|
36 | include Common/module.mk |
---|
37 | include ControlStruct/module.mk |
---|
38 | include GenPoly/module.mk |
---|
39 | include InitTweak/module.mk |
---|
40 | include Parser/module.mk |
---|
41 | include ResolvExpr/module.mk |
---|
42 | include SymTab/module.mk |
---|
43 | include SynTree/module.mk |
---|
44 | include Tuples/module.mk |
---|
45 | include Validate/module.mk |
---|
46 | include Virtual/module.mk |
---|
47 | |
---|
48 | # put into lib for now |
---|
49 | cfa_cpplibdir = $(CFA_LIBDIR) |
---|
50 | cfa_cpplib_PROGRAMS = ../driver/cfa-cpp demangler |
---|
51 | ___driver_cfa_cpp_SOURCES = $(SRC) |
---|
52 | ___driver_cfa_cpp_LDADD = -ldl # yywrap |
---|
53 | |
---|
54 | 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 |
---|
55 | AM_LDFLAGS = @HOST_FLAGS@ -Xlinker -export-dynamic |
---|
56 | ARFLAGS = cr |
---|
57 | |
---|
58 | demangler_SOURCES = SymTab/demangler.cc # test driver for the demangler, also useful as a sanity check that libdemangle.a is complete |
---|
59 | |
---|
60 | demangler_LDADD = libdemangle.a # yywrap |
---|
61 | |
---|
62 | noinst_LIBRARIES = libdemangle.a |
---|
63 | libdemangle_a_SOURCES = \ |
---|
64 | SymTab/Demangle.cc \ |
---|
65 | SymTab/ManglerCommon.cc \ |
---|
66 | SynTree/Type.cc \ |
---|
67 | SynTree/VoidType.cc \ |
---|
68 | SynTree/BasicType.cc \ |
---|
69 | SynTree/PointerType.cc \ |
---|
70 | SynTree/ArrayType.cc \ |
---|
71 | SynTree/ReferenceType.cc \ |
---|
72 | SynTree/FunctionType.cc \ |
---|
73 | SynTree/ReferenceToType.cc \ |
---|
74 | SynTree/TupleType.cc \ |
---|
75 | SynTree/TypeofType.cc \ |
---|
76 | SynTree/AttrType.cc \ |
---|
77 | SynTree/VarArgsType.cc \ |
---|
78 | SynTree/ZeroOneType.cc \ |
---|
79 | SynTree/Constant.cc \ |
---|
80 | SynTree/Expression.cc \ |
---|
81 | SynTree/TupleExpr.cc \ |
---|
82 | SynTree/CommaExpr.cc \ |
---|
83 | SynTree/TypeExpr.cc \ |
---|
84 | SynTree/ApplicationExpr.cc \ |
---|
85 | SynTree/AddressExpr.cc \ |
---|
86 | SynTree/Statement.cc \ |
---|
87 | SynTree/CompoundStmt.cc \ |
---|
88 | SynTree/DeclStmt.cc \ |
---|
89 | SynTree/Declaration.cc \ |
---|
90 | SynTree/DeclarationWithType.cc \ |
---|
91 | SynTree/ObjectDecl.cc \ |
---|
92 | SynTree/FunctionDecl.cc \ |
---|
93 | SynTree/AggregateDecl.cc \ |
---|
94 | SynTree/NamedTypeDecl.cc \ |
---|
95 | SynTree/TypeDecl.cc \ |
---|
96 | SynTree/Initializer.cc \ |
---|
97 | SynTree/TypeSubstitution.cc \ |
---|
98 | SynTree/Attribute.cc \ |
---|
99 | SynTree/DeclReplacer.cc \ |
---|
100 | CompilationState.cc \ |
---|
101 | CodeGen/CodeGenerator.cc \ |
---|
102 | CodeGen/FixMain.cc \ |
---|
103 | CodeGen/Generate.cc \ |
---|
104 | CodeGen/GenType.cc \ |
---|
105 | CodeGen/OperatorTable.cc \ |
---|
106 | Common/Assert.cc \ |
---|
107 | Common/Eval.cc \ |
---|
108 | Common/SemanticError.cc \ |
---|
109 | Common/UniqueName.cc \ |
---|
110 | Concurrency/Keywords.cc \ |
---|
111 | ControlStruct/ForExprMutator.cc \ |
---|
112 | ControlStruct/LabelFixer.cc \ |
---|
113 | ControlStruct/LabelGenerator.cc \ |
---|
114 | ControlStruct/MLEMutator.cc \ |
---|
115 | ControlStruct/Mutate.cc \ |
---|
116 | GenPoly/GenPoly.cc \ |
---|
117 | GenPoly/Lvalue.cc \ |
---|
118 | InitTweak/GenInit.cc \ |
---|
119 | InitTweak/InitTweak.cc \ |
---|
120 | Parser/LinkageSpec.cc \ |
---|
121 | ResolvExpr/AdjustExprType.cc \ |
---|
122 | ResolvExpr/Alternative.cc \ |
---|
123 | ResolvExpr/AlternativeFinder.cc \ |
---|
124 | ResolvExpr/ExplodedActual.cc \ |
---|
125 | ResolvExpr/CastCost.cc \ |
---|
126 | ResolvExpr/CommonType.cc \ |
---|
127 | ResolvExpr/ConversionCost.cc \ |
---|
128 | ResolvExpr/CurrentObject.cc \ |
---|
129 | ResolvExpr/FindOpenVars.cc \ |
---|
130 | ResolvExpr/Occurs.cc \ |
---|
131 | ResolvExpr/PolyCost.cc \ |
---|
132 | ResolvExpr/PtrsAssignable.cc \ |
---|
133 | ResolvExpr/PtrsCastable.cc \ |
---|
134 | ResolvExpr/RenameVars.cc \ |
---|
135 | ResolvExpr/ResolveAssertions.cc \ |
---|
136 | ResolvExpr/Resolver.cc \ |
---|
137 | ResolvExpr/ResolveTypeof.cc \ |
---|
138 | ResolvExpr/SpecCost.cc \ |
---|
139 | ResolvExpr/TypeEnvironment.cc \ |
---|
140 | ResolvExpr/Unify.cc \ |
---|
141 | SymTab/Autogen.cc \ |
---|
142 | SymTab/FixFunction.cc \ |
---|
143 | SymTab/Indexer.cc \ |
---|
144 | SymTab/Mangler.cc \ |
---|
145 | SymTab/Validate.cc \ |
---|
146 | Tuples/Explode.cc \ |
---|
147 | Tuples/TupleAssignment.cc \ |
---|
148 | Tuples/TupleExpansion.cc \ |
---|
149 | Validate/HandleAttributes.cc \ |
---|
150 | Validate/FindSpecialDecls.cc |
---|
151 | |
---|
152 | |
---|
153 | MAINTAINERCLEANFILES += ${libdir}/${notdir ${cfa_cpplib_PROGRAMS}} |
---|