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 : Peter A. Buhr |
---|
13 | ## Last Modified On : Fri Feb 15 09:44:09 2019 |
---|
14 | ## Update Count : 97 |
---|
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 | SRCDEMANGLE = CompilationState.cc |
---|
26 | |
---|
27 | MAINTAINERCLEANFILES = |
---|
28 | MOSTLYCLEANFILES = |
---|
29 | |
---|
30 | if WITH_LIBPROFILER |
---|
31 | LIBPROFILER = -lprofiler |
---|
32 | endif |
---|
33 | |
---|
34 | if WITH_LIBTCMALLOC |
---|
35 | LIBTCMALLOC = -ltcmalloc |
---|
36 | TCMALLOCFLAG = -DTCMALLOC |
---|
37 | endif |
---|
38 | |
---|
39 | include AST/module.mk |
---|
40 | include CodeGen/module.mk |
---|
41 | include CodeTools/module.mk |
---|
42 | include Concurrency/module.mk |
---|
43 | include Common/module.mk |
---|
44 | include ControlStruct/module.mk |
---|
45 | include GenPoly/module.mk |
---|
46 | include InitTweak/module.mk |
---|
47 | include Parser/module.mk |
---|
48 | include ResolvExpr/module.mk |
---|
49 | include SymTab/module.mk |
---|
50 | include SynTree/module.mk |
---|
51 | include Tuples/module.mk |
---|
52 | include Validate/module.mk |
---|
53 | include Virtual/module.mk |
---|
54 | |
---|
55 | $(addprefix $(srcdir)/, ResolvExpr/ConversionCost.cc ResolvExpr/CommonType.cc SymTab/ManglerCommon.cc) : $(srcdir)/SynTree/Type.h |
---|
56 | |
---|
57 | $(srcdir)/SynTree/Type.h : BasicTypes-gen.cc |
---|
58 | ${AM_V_GEN}${CXXCOMPILE} $< -o BasicTypes-gen -Wall -Wextra |
---|
59 | @./BasicTypes-gen |
---|
60 | @rm BasicTypes-gen |
---|
61 | |
---|
62 | # put into lib for now |
---|
63 | cfa_cpplibdir = $(CFA_LIBDIR) |
---|
64 | cfa_cpplib_PROGRAMS = ../driver/cfa-cpp demangler |
---|
65 | ___driver_cfa_cpp_SOURCES = $(SRC) |
---|
66 | ___driver_cfa_cpp_LDADD = -ldl $(LIBPROFILER) $(LIBTCMALLOC) |
---|
67 | |
---|
68 | 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) |
---|
69 | AM_LDFLAGS = @HOST_FLAGS@ -Xlinker -export-dynamic |
---|
70 | ARFLAGS = cr |
---|
71 | |
---|
72 | demangler_SOURCES = SymTab/demangler.cc |
---|
73 | |
---|
74 | demangler_LDADD = libdemangle.a -ldl # yywrap |
---|
75 | |
---|
76 | noinst_LIBRARIES = libdemangle.a |
---|
77 | libdemangle_a_SOURCES = $(SRCDEMANGLE) |
---|
78 | |
---|
79 | MAINTAINERCLEANFILES += ${libdir}/${notdir ${cfa_cpplib_PROGRAMS}} |
---|