source: src/Makefile.am @ b399ca2

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since b399ca2 was b7fe2e6, checked in by Thierry Delisle <tdelisle@…>, 4 years ago

Distribution now correctly handles libcfa but requires handcrafted Makefile.
This is a step forward but can't work in practice

  • Property mode set to 100644
File size: 2.5 KB
Line 
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 : Mon Aug  5 12:57:46 2019
14## Update Count     : 98
15###############################################################################
16
17# create object files in directory with source files
18AUTOMAKE_OPTIONS = foreign subdir-objects
19ACLOCAL_AMFLAGS  = -I automake
20
21SRC = main.cc \
22      CompilationState.cc \
23      CompilationState.h \
24      MakeLibCfa.cc \
25        MakeLibCfa.h
26
27SRCDEMANGLE = CompilationState.cc
28
29MAINTAINERCLEANFILES =
30MOSTLYCLEANFILES =
31
32if WITH_LIBPROFILER
33LIBPROFILER = -lprofiler
34endif
35
36if WITH_LIBTCMALLOC
37LIBTCMALLOC = -ltcmalloc
38TCMALLOCFLAG = -DTCMALLOC
39endif
40
41include AST/module.mk
42include CodeGen/module.mk
43include CodeTools/module.mk
44include Concurrency/module.mk
45include Common/module.mk
46include ControlStruct/module.mk
47include GenPoly/module.mk
48include InitTweak/module.mk
49include Parser/module.mk
50include ResolvExpr/module.mk
51include SymTab/module.mk
52include SynTree/module.mk
53include Tuples/module.mk
54include Validate/module.mk
55include Virtual/module.mk
56
57$(addprefix $(srcdir)/, ResolvExpr/ConversionCost.cc ResolvExpr/CommonType.cc SymTab/ManglerCommon.cc) : $(srcdir)/SynTree/Type.h
58
59$(srcdir)/AST/Type.hpp : BasicTypes-gen.cc
60        ${AM_V_GEN}${CXXCOMPILE} $< -o BasicTypes-gen -Wall -Wextra
61        @./BasicTypes-gen
62        @rm BasicTypes-gen
63
64# put into lib for now
65cfa_cpplibdir = $(CFA_LIBDIR)
66cfa_cpplib_PROGRAMS = ../driver/cfa-cpp $(DEMANGLER)
67EXTRA_PROGRAMS = demangler
68___driver_cfa_cpp_SOURCES = $(SRC)
69___driver_cfa_cpp_LDADD = -ldl $(LIBPROFILER) $(LIBTCMALLOC)
70EXTRA_DIST = include/cassert include/optional BasicTypes-gen.cc
71
72AM_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)
73AM_LDFLAGS  = @HOST_FLAGS@ -Xlinker -export-dynamic
74ARFLAGS     = cr
75
76demangler_SOURCES = SymTab/demangler.cc # test driver for the demangler, also useful as a sanity check that libdemangle.a is complete
77
78demangler_LDADD = libdemangle.a -ldl                    # yywrap
79
80noinst_LIBRARIES = $(LIBDEMANGLE)
81EXTRA_LIBRARIES = libdemangle.a
82libdemangle_a_SOURCES = $(SRCDEMANGLE)
83
84MAINTAINERCLEANFILES += ${libdir}/${notdir ${cfa_cpplib_PROGRAMS}}
Note: See TracBrowser for help on using the repository browser.