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 = |
---|
27 | |
---|
28 | # Is there a way to use a variable for the directory names? |
---|
29 | |
---|
30 | include CodeGen/module.mk |
---|
31 | include CodeTools/module.mk |
---|
32 | include Concurrency/module.mk |
---|
33 | include Common/module.mk |
---|
34 | include ControlStruct/module.mk |
---|
35 | include GenPoly/module.mk |
---|
36 | include InitTweak/module.mk |
---|
37 | include Parser/module.mk |
---|
38 | include ResolvExpr/module.mk |
---|
39 | include SymTab/module.mk |
---|
40 | include SynTree/module.mk |
---|
41 | include Tuples/module.mk |
---|
42 | include Validate/module.mk |
---|
43 | include Virtual/module.mk |
---|
44 | |
---|
45 | # put into lib for now |
---|
46 | cfa_cpplibdir = $(CFA_LIBDIR) |
---|
47 | cfa_cpplib_PROGRAMS = ../driver/cfa-cpp demangler |
---|
48 | ___driver_cfa_cpp_SOURCES = $(SRC) |
---|
49 | ___driver_cfa_cpp_LDADD = -ldl # yywrap |
---|
50 | |
---|
51 | 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 |
---|
52 | AM_LDFLAGS = @HOST_FLAGS@ -Xlinker -export-dynamic |
---|
53 | ARFLAGS = cr |
---|
54 | |
---|
55 | demangler_SOURCES = SymTab/demangler.cc |
---|
56 | |
---|
57 | demangler_LDADD = libdemangle.a # yywrap |
---|
58 | |
---|
59 | noinst_LIBRARIES = libdemangle.a |
---|
60 | libdemangle_a_SOURCES = SymTab/Demangle.cc SymTab/ManglerCommon.cc \ |
---|
61 | SynTree/Type.cc \ |
---|
62 | SynTree/VoidType.cc \ |
---|
63 | SynTree/BasicType.cc \ |
---|
64 | SynTree/PointerType.cc \ |
---|
65 | SynTree/ArrayType.cc \ |
---|
66 | SynTree/ReferenceType.cc \ |
---|
67 | SynTree/FunctionType.cc \ |
---|
68 | SynTree/ReferenceToType.cc \ |
---|
69 | SynTree/TupleType.cc \ |
---|
70 | SynTree/TypeofType.cc \ |
---|
71 | SynTree/AttrType.cc \ |
---|
72 | SynTree/VarArgsType.cc \ |
---|
73 | SynTree/ZeroOneType.cc \ |
---|
74 | SynTree/Constant.cc \ |
---|
75 | SynTree/Expression.cc \ |
---|
76 | SynTree/TupleExpr.cc \ |
---|
77 | SynTree/CommaExpr.cc \ |
---|
78 | SynTree/TypeExpr.cc \ |
---|
79 | SynTree/ApplicationExpr.cc \ |
---|
80 | SynTree/AddressExpr.cc \ |
---|
81 | SynTree/Statement.cc \ |
---|
82 | SynTree/CompoundStmt.cc \ |
---|
83 | SynTree/DeclStmt.cc \ |
---|
84 | SynTree/Declaration.cc \ |
---|
85 | SynTree/DeclarationWithType.cc \ |
---|
86 | SynTree/ObjectDecl.cc \ |
---|
87 | SynTree/FunctionDecl.cc \ |
---|
88 | SynTree/AggregateDecl.cc \ |
---|
89 | SynTree/NamedTypeDecl.cc \ |
---|
90 | SynTree/TypeDecl.cc \ |
---|
91 | SynTree/Initializer.cc \ |
---|
92 | SynTree/TypeSubstitution.cc \ |
---|
93 | SynTree/Attribute.cc \ |
---|
94 | SynTree/DeclReplacer.cc \ |
---|
95 | CompilationState.cc \ |
---|
96 | CodeGen/CodeGenerator.cc \ |
---|
97 | CodeGen/FixMain.cc \ |
---|
98 | CodeGen/GenType.cc \ |
---|
99 | CodeGen/OperatorTable.cc \ |
---|
100 | Common/Assert.cc \ |
---|
101 | Common/Eval.cc \ |
---|
102 | Common/SemanticError.cc \ |
---|
103 | Common/UniqueName.cc \ |
---|
104 | Concurrency/Keywords.cc \ |
---|
105 | ControlStruct/ForExprMutator.cc \ |
---|
106 | ControlStruct/LabelFixer.cc \ |
---|
107 | ControlStruct/LabelGenerator.cc \ |
---|
108 | ControlStruct/MLEMutator.cc \ |
---|
109 | ControlStruct/Mutate.cc \ |
---|
110 | GenPoly/GenPoly.cc \ |
---|
111 | GenPoly/Lvalue.cc \ |
---|
112 | InitTweak/GenInit.cc \ |
---|
113 | InitTweak/InitTweak.cc \ |
---|
114 | Parser/LinkageSpec.cc \ |
---|
115 | ResolvExpr/AdjustExprType.cc \ |
---|
116 | ResolvExpr/Alternative.cc \ |
---|
117 | ResolvExpr/AlternativeFinder.cc \ |
---|
118 | ResolvExpr/ExplodedActual.cc \ |
---|
119 | ResolvExpr/CastCost.cc \ |
---|
120 | ResolvExpr/CommonType.cc \ |
---|
121 | ResolvExpr/ConversionCost.cc \ |
---|
122 | ResolvExpr/CurrentObject.cc \ |
---|
123 | ResolvExpr/FindOpenVars.cc \ |
---|
124 | ResolvExpr/Occurs.cc \ |
---|
125 | ResolvExpr/PolyCost.cc \ |
---|
126 | ResolvExpr/PtrsAssignable.cc \ |
---|
127 | ResolvExpr/PtrsCastable.cc \ |
---|
128 | ResolvExpr/RenameVars.cc \ |
---|
129 | ResolvExpr/Resolver.cc \ |
---|
130 | ResolvExpr/ResolveTypeof.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}} |
---|