[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 |
---|
[1f86d5e] | 12 | ## Last Modified By : Peter A. Buhr |
---|
[10cb642] | 13 | ## Last Modified On : Mon Aug 5 12:57:46 2019 |
---|
| 14 | ## Update Count : 98 |
---|
[00cc023] | 15 | ############################################################################### |
---|
| 16 | |
---|
| 17 | # create object files in directory with source files |
---|
[0c1b566] | 18 | AUTOMAKE_OPTIONS = foreign subdir-objects |
---|
[107b01a] | 19 | ACLOCAL_AMFLAGS = -I automake |
---|
[00cc023] | 20 | |
---|
[d3b7937] | 21 | SRC = main.cc \ |
---|
[5339a87] | 22 | CompilationState.cc \ |
---|
| 23 | CompilationState.h \ |
---|
[7abee38] | 24 | MakeLibCfa.cc \ |
---|
[6c2dc00] | 25 | MakeLibCfaNew.cpp \ |
---|
[5339a87] | 26 | MakeLibCfa.h |
---|
[7abee38] | 27 | |
---|
| 28 | SRCDEMANGLE = CompilationState.cc |
---|
[d3b7937] | 29 | |
---|
| 30 | MAINTAINERCLEANFILES = |
---|
[1f86d5e] | 31 | MOSTLYCLEANFILES = |
---|
[00cc023] | 32 | |
---|
[292d599b] | 33 | if WITH_LIBPROFILER |
---|
| 34 | LIBPROFILER = -lprofiler |
---|
| 35 | endif |
---|
[4fd45bc] | 36 | |
---|
[292d599b] | 37 | if WITH_LIBTCMALLOC |
---|
| 38 | LIBTCMALLOC = -ltcmalloc |
---|
| 39 | TCMALLOCFLAG = -DTCMALLOC |
---|
| 40 | endif |
---|
[d3b7937] | 41 | |
---|
[dccc091] | 42 | include AST/module.mk |
---|
[00cc023] | 43 | include CodeGen/module.mk |
---|
[41a7137] | 44 | include CodeTools/module.mk |
---|
[68ac32e] | 45 | include Concurrency/module.mk |
---|
[00cc023] | 46 | include Common/module.mk |
---|
| 47 | include ControlStruct/module.mk |
---|
| 48 | include GenPoly/module.mk |
---|
| 49 | include InitTweak/module.mk |
---|
| 50 | include Parser/module.mk |
---|
| 51 | include ResolvExpr/module.mk |
---|
| 52 | include SymTab/module.mk |
---|
| 53 | include SynTree/module.mk |
---|
| 54 | include Tuples/module.mk |
---|
[fd2debf] | 55 | include Validate/module.mk |
---|
[a5f0529] | 56 | include Virtual/module.mk |
---|
[00cc023] | 57 | |
---|
[ada4575] | 58 | $(addprefix $(srcdir)/, ResolvExpr/ConversionCost.cc ResolvExpr/CommonType.cc SymTab/ManglerCommon.cc) : $(srcdir)/SynTree/Type.h |
---|
| 59 | |
---|
[10cb642] | 60 | $(srcdir)/AST/Type.hpp : BasicTypes-gen.cc |
---|
[6ca6811] | 61 | ${AM_V_GEN}${CXXCOMPILE} $< -o BasicTypes-gen -Wall -Wextra |
---|
[ada4575] | 62 | @./BasicTypes-gen |
---|
| 63 | @rm BasicTypes-gen |
---|
| 64 | |
---|
[00cc023] | 65 | # put into lib for now |
---|
[50697b0] | 66 | cfa_cpplibdir = $(CFA_LIBDIR) |
---|
[df8b87cd] | 67 | cfa_cpplib_PROGRAMS = ../driver/cfa-cpp $(DEMANGLER) |
---|
| 68 | EXTRA_PROGRAMS = demangler |
---|
[bf71cfd] | 69 | ___driver_cfa_cpp_SOURCES = $(SRC) |
---|
[292d599b] | 70 | ___driver_cfa_cpp_LDADD = -ldl $(LIBPROFILER) $(LIBTCMALLOC) |
---|
[b7fe2e6] | 71 | EXTRA_DIST = include/cassert include/optional BasicTypes-gen.cc |
---|
[d1e0979] | 72 | |
---|
[292d599b] | 73 | AM_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) |
---|
[47c1928] | 74 | AM_LDFLAGS = @HOST_FLAGS@ -Xlinker -export-dynamic |
---|
[56b53b2] | 75 | ARFLAGS = cr |
---|
[d3b7937] | 76 | |
---|
[2bfc6b2] | 77 | demangler_SOURCES = SymTab/demangler.cc # test driver for the demangler, also useful as a sanity check that libdemangle.a is complete |
---|
[d1e0979] | 78 | |
---|
[7abee38] | 79 | demangler_LDADD = libdemangle.a -ldl # yywrap |
---|
[d1e0979] | 80 | |
---|
[df8b87cd] | 81 | noinst_LIBRARIES = $(LIBDEMANGLE) |
---|
| 82 | EXTRA_LIBRARIES = libdemangle.a |
---|
[7abee38] | 83 | libdemangle_a_SOURCES = $(SRCDEMANGLE) |
---|
[d1e0979] | 84 | |
---|
[d3b7937] | 85 | MAINTAINERCLEANFILES += ${libdir}/${notdir ${cfa_cpplib_PROGRAMS}} |
---|