[00cc023] | 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 | ## |
---|
[0ebac75] | 8 | ## Makefile.am -- |
---|
[00cc023] | 9 | ## |
---|
| 10 | ## Author : Peter A. Buhr |
---|
| 11 | ## Created On : Sun May 31 08:51:46 2015 |
---|
[a5f0529] | 12 | ## Last Modified By : Andrew Beach |
---|
| 13 | ## Last Modified On : Tus Jul 25 10:34:00 2017 |
---|
| 14 | ## Update Count : 76 |
---|
[00cc023] | 15 | ############################################################################### |
---|
| 16 | |
---|
| 17 | # create object files in directory with source files |
---|
[0c1b566] | 18 | AUTOMAKE_OPTIONS = foreign subdir-objects |
---|
[00cc023] | 19 | |
---|
[d3b7937] | 20 | SRC = main.cc \ |
---|
[7f38b67a] | 21 | MakeLibCfa.cc \ |
---|
| 22 | CompilationState.cc |
---|
[d3b7937] | 23 | |
---|
| 24 | MAINTAINERCLEANFILES = |
---|
[fc846ae] | 25 | MOSTLYCLEANFILES = |
---|
[00cc023] | 26 | |
---|
| 27 | # Is there a way to use a variable for the directory names? |
---|
[d3b7937] | 28 | |
---|
[00cc023] | 29 | include CodeGen/module.mk |
---|
[41a7137] | 30 | include CodeTools/module.mk |
---|
[68ac32e] | 31 | include Concurrency/module.mk |
---|
[00cc023] | 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 |
---|
[fd2debf] | 41 | include Validate/module.mk |
---|
[a5f0529] | 42 | include Virtual/module.mk |
---|
[00cc023] | 43 | |
---|
| 44 | # put into lib for now |
---|
[50697b0] | 45 | cfa_cpplibdir = $(CFA_LIBDIR) |
---|
[5e44ac2] | 46 | cfa_cpplib_PROGRAMS = ../driver/cfa-cpp demangler |
---|
[bf71cfd] | 47 | ___driver_cfa_cpp_SOURCES = $(SRC) |
---|
| 48 | ___driver_cfa_cpp_LDADD = -ldl # yywrap |
---|
[d1e0979] | 49 | |
---|
[47c1928] | 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 |
---|
[d3b7937] | 52 | |
---|
[d1e0979] | 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 \ |
---|
[3bbd012] | 93 | CompilationState.cc \ |
---|
[d1e0979] | 94 | CodeGen/CodeGenerator.cc \ |
---|
| 95 | CodeGen/FixMain.cc \ |
---|
[e5ea867] | 96 | CodeGen/Generate.cc \ |
---|
[d1e0979] | 97 | CodeGen/GenType.cc \ |
---|
| 98 | CodeGen/OperatorTable.cc \ |
---|
| 99 | Common/Assert.cc \ |
---|
[3bbd012] | 100 | Common/Eval.cc \ |
---|
[d1e0979] | 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 \ |
---|
[3bbd012] | 139 | Tuples/TupleExpansion.cc \ |
---|
| 140 | Validate/HandleAttributes.cc |
---|
[d1e0979] | 141 | |
---|
[d3b7937] | 142 | MAINTAINERCLEANFILES += ${libdir}/${notdir ${cfa_cpplib_PROGRAMS}} |
---|