Changeset 933f32f for src/Makefile.am


Ignore:
Timestamp:
May 24, 2019, 10:19:41 AM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
d908563
Parents:
6a9d4b4 (diff), 292642a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into cleanup-dtors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Makefile.am

    r6a9d4b4 r933f32f  
    1010## Author           : Peter A. Buhr
    1111## 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
     12## Last Modified By : Peter A. Buhr
     13## Last Modified On : Fri Feb 15 09:44:09 2019
     14## Update Count     : 97
    1515###############################################################################
    1616
     
    2020
    2121SRC = main.cc \
    22                         MakeLibCfa.cc \
    23                         CompilationState.cc
     22      MakeLibCfa.cc \
     23      CompilationState.cc
     24
     25SRCDEMANGLE = CompilationState.cc
    2426
    2527MAINTAINERCLEANFILES =
    26 MOSTLYCLEANFILES = Parser/gcc-flags.h
     28MOSTLYCLEANFILES =
    2729
    28 Parser/gcc-flags.h :
    29         ${AM_V_GEN}$(CC) -dM -E - < /dev/null | sed 's/define /define __GCC__/' > $(@)
     30if WITH_LIBPROFILER
     31LIBPROFILER = -lprofiler
     32endif
    3033
    31 Parser/lex.ll : Parser/gcc-flags.h
     34if WITH_LIBTCMALLOC
     35LIBTCMALLOC = -ltcmalloc
     36TCMALLOCFLAG = -DTCMALLOC
     37endif
    3238
    3339include CodeGen/module.mk
     
    4652include Virtual/module.mk
    4753
     54$(addprefix $(srcdir)/, ResolvExpr/ConversionCost.cc ResolvExpr/CommonType.cc SymTab/ManglerCommon.cc) : $(srcdir)/SynTree/Type.h
     55
     56$(srcdir)/SynTree/Type.h : BasicTypes-gen.cc
     57        ${AM_V_GEN}${CXXCOMPILE} $< -o BasicTypes-gen -Wall -Wextra
     58        @./BasicTypes-gen
     59        @rm BasicTypes-gen
     60
    4861# put into lib for now
    4962cfa_cpplibdir = $(CFA_LIBDIR)
    5063cfa_cpplib_PROGRAMS = ../driver/cfa-cpp demangler
    5164___driver_cfa_cpp_SOURCES = $(SRC)
    52 ___driver_cfa_cpp_LDADD = -ldl                  # yywrap
     65___driver_cfa_cpp_LDADD = -ldl $(LIBPROFILER) $(LIBTCMALLOC)
    5366
    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
     67AM_CXXFLAGS = @HOST_FLAGS@ -Wno-deprecated -Wall -Wextra -DDEBUG_ALL -I./Parser -I$(srcdir)/Parser -I$(srcdir)/include -DYY_NO_INPUT -O3 -g -std=c++14 $(TCMALLOCFLAG)
    5568AM_LDFLAGS  = @HOST_FLAGS@ -Xlinker -export-dynamic
    5669ARFLAGS     = cr
     
    5871demangler_SOURCES = SymTab/demangler.cc # test driver for the demangler, also useful as a sanity check that libdemangle.a is complete
    5972
    60 demangler_LDADD = libdemangle.a     # yywrap
     73demangler_LDADD = libdemangle.a -ldl                    # yywrap
    6174
    6275noinst_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 
     76libdemangle_a_SOURCES = $(SRCDEMANGLE)
    15277
    15378MAINTAINERCLEANFILES += ${libdir}/${notdir ${cfa_cpplib_PROGRAMS}}
Note: See TracChangeset for help on using the changeset viewer.