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 | |
---|
53 | demangler_SOURCES = SymTab/demangler.cc |
---|
54 | |
---|
55 | demangler_LDADD = libdemangle.a # yywrap |
---|
56 | |
---|
57 | noinst_LIBRARIES = libdemangle.a |
---|
58 | libdemangle_a_SOURCES = SymTab/Demangle.cc SymTab/ManglerCommon.cc \ |
---|
59 | SynTree/Type.cc \ |
---|
60 | SynTree/VoidType.cc \ |
---|
61 | SynTree/BasicType.cc \ |
---|
62 | SynTree/PointerType.cc \ |
---|
63 | SynTree/ArrayType.cc \ |
---|
64 | SynTree/ReferenceType.cc \ |
---|
65 | SynTree/FunctionType.cc \ |
---|
66 | SynTree/ReferenceToType.cc \ |
---|
67 | SynTree/TupleType.cc \ |
---|
68 | SynTree/TypeofType.cc \ |
---|
69 | SynTree/AttrType.cc \ |
---|
70 | SynTree/VarArgsType.cc \ |
---|
71 | SynTree/ZeroOneType.cc \ |
---|
72 | SynTree/Constant.cc \ |
---|
73 | SynTree/Expression.cc \ |
---|
74 | SynTree/TupleExpr.cc \ |
---|
75 | SynTree/CommaExpr.cc \ |
---|
76 | SynTree/TypeExpr.cc \ |
---|
77 | SynTree/ApplicationExpr.cc \ |
---|
78 | SynTree/AddressExpr.cc \ |
---|
79 | SynTree/Statement.cc \ |
---|
80 | SynTree/CompoundStmt.cc \ |
---|
81 | SynTree/DeclStmt.cc \ |
---|
82 | SynTree/Declaration.cc \ |
---|
83 | SynTree/DeclarationWithType.cc \ |
---|
84 | SynTree/ObjectDecl.cc \ |
---|
85 | SynTree/FunctionDecl.cc \ |
---|
86 | SynTree/AggregateDecl.cc \ |
---|
87 | SynTree/NamedTypeDecl.cc \ |
---|
88 | SynTree/TypeDecl.cc \ |
---|
89 | SynTree/Initializer.cc \ |
---|
90 | SynTree/TypeSubstitution.cc \ |
---|
91 | SynTree/Attribute.cc \ |
---|
92 | SynTree/DeclReplacer.cc \ |
---|
93 | CompilationState.cc \ |
---|
94 | CodeGen/CodeGenerator.cc \ |
---|
95 | CodeGen/FixMain.cc \ |
---|
96 | CodeGen/Generate.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/TypeEnvironment.cc \ |
---|
131 | ResolvExpr/Unify.cc \ |
---|
132 | SymTab/Autogen.cc \ |
---|
133 | SymTab/FixFunction.cc \ |
---|
134 | SymTab/Indexer.cc \ |
---|
135 | SymTab/Mangler.cc \ |
---|
136 | SymTab/Validate.cc \ |
---|
137 | Tuples/Explode.cc \ |
---|
138 | Tuples/TupleAssignment.cc \ |
---|
139 | Tuples/TupleExpansion.cc \ |
---|
140 | Validate/HandleAttributes.cc |
---|
141 | |
---|
142 | MAINTAINERCLEANFILES += ${libdir}/${notdir ${cfa_cpplib_PROGRAMS}} |
---|