[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
|
---|
[56b53b2] | 52 | ARFLAGS = cr
|
---|
[d3b7937] | 53 |
|
---|
[d1e0979] | 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 \
|
---|
[3bbd012] | 94 | CompilationState.cc \
|
---|
[d1e0979] | 95 | CodeGen/CodeGenerator.cc \
|
---|
| 96 | CodeGen/FixMain.cc \
|
---|
| 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}}
|
---|