source: src/Makefile.am @ 7eac70e

ADTast-experimental
Last change on this file since 7eac70e was 3acc863, checked in by Thierry Delisle <tdelisle@…>, 2 years ago

Moved to C++17

  • Property mode set to 100644
File size: 2.6 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          MakeLibCfaNew.cpp \
26        MakeLibCfa.h
27
28SRCDEMANGLE = CompilationState.cc
29
30MAINTAINERCLEANFILES =
31MOSTLYCLEANFILES =
32
33if WITH_LIBPROFILER
34LIBPROFILER = -lprofiler
35endif
36
37if WITH_LIBTCMALLOC
38LIBTCMALLOC = -ltcmalloc
39TCMALLOCFLAG = -DTCMALLOC
40endif
41
42include AST/module.mk
43include CodeGen/module.mk
44include CodeTools/module.mk
45include Concurrency/module.mk
46include Common/module.mk
47include ControlStruct/module.mk
48include GenPoly/module.mk
49include InitTweak/module.mk
50include Parser/module.mk
51include ResolvExpr/module.mk
52include SymTab/module.mk
53include SynTree/module.mk
54include Tuples/module.mk
55include Validate/module.mk
56include Virtual/module.mk
57
58$(addprefix $(srcdir)/, ResolvExpr/ConversionCost.cc ResolvExpr/CommonType.cc SymTab/ManglerCommon.cc) : $(srcdir)/SynTree/Type.h
59
60$(srcdir)/AST/Type.hpp : BasicTypes-gen.cc
61        ${AM_V_GEN}${CXXCOMPILE} $< -o BasicTypes-gen -Wall -Wextra -Werror=return-type
62        @./BasicTypes-gen
63        @rm BasicTypes-gen
64
65# put into lib for now
66cfa_cpplibdir = $(CFA_LIBDIR)
67cfa_cpplib_PROGRAMS = ../driver/cfa-cpp $(DEMANGLER)
68EXTRA_PROGRAMS = demangler
69___driver_cfa_cpp_SOURCES = $(SRC)
70___driver_cfa_cpp_LDADD = -ldl $(LIBPROFILER) $(LIBTCMALLOC)
71EXTRA_DIST = include/cassert include/optional BasicTypes-gen.cc
72
73AM_CXXFLAGS = @HOST_FLAGS@ -Wno-deprecated -Wall -Wextra -Werror=return-type -DDEBUG_ALL -I./Parser -I$(srcdir)/Parser -I$(srcdir)/include -DYY_NO_INPUT -O3 -g -std=c++17 $(TCMALLOCFLAG)
74AM_LDFLAGS  = @HOST_FLAGS@ -Xlinker -export-dynamic
75ARFLAGS     = cr
76
77demangler_SOURCES = SymTab/demangler.cc # test driver for the demangler, also useful as a sanity check that libdemangle.a is complete
78
79demangler_LDADD = libdemangle.a -ldl                    # yywrap
80
81noinst_LIBRARIES = $(LIBDEMANGLE)
82EXTRA_LIBRARIES = libdemangle.a
83libdemangle_a_SOURCES = $(SRCDEMANGLE)
84
85MAINTAINERCLEANFILES += ${libdir}/${notdir ${cfa_cpplib_PROGRAMS}}
Note: See TracBrowser for help on using the repository browser.