source: src/Makefile.am @ 38093ae

Last change on this file since 38093ae was 7a780ad, checked in by Andrew Beach <ajbeach@…>, 4 weeks ago

Moved ast::BasicType::Kind to ast::BasicKind? in its own hearder. This is more consistent with other utility enums (although we still use this as a enum class) and reduces what some files need to include. Also did a upgrade in a comment with MAX_INTEGER_TYPE, it is now part of the enum.

  • 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 Nov 20 11:28:05 2023
14## Update Count     : 109
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.cpp \
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 Concurrency/module.mk
44include Common/module.mk
45include ControlStruct/module.mk
46include GenPoly/module.mk
47include InitTweak/module.mk
48include Parser/module.mk
49include ResolvExpr/module.mk
50include SymTab/module.mk
51include Tuples/module.mk
52include Validate/module.mk
53include Virtual/module.mk
54
55$(addprefix $(srcdir)/, ResolvExpr/ConversionCost.cc ResolvExpr/CommonType.cc SymTab/ManglerCommon.cc) : $(srcdir)/AST/BasicKind.hpp
56
57$(srcdir)/AST/BasicKind.hpp : BasicTypes-gen.cc
58        ${AM_V_GEN}${CXXCOMPILE} $< -o BasicTypes-gen -Wall -Wextra -Werror=return-type
59        @./BasicTypes-gen
60        @rm BasicTypes-gen
61
62# put into lib for now
63cfa_cpplibdir = $(CFA_LIBDIR)
64cfa_cpplib_PROGRAMS = ../driver/cfa-cpp
65___driver_cfa_cpp_SOURCES = $(SRC)
66___driver_cfa_cpp_LDADD = -ldl $(LIBPROFILER) $(LIBTCMALLOC)
67EXTRA_DIST = include/cassert include/optional BasicTypes-gen.cc
68
69AM_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)
70AM_LDFLAGS  = @HOST_FLAGS@ -Xlinker -export-dynamic
71ARFLAGS     = cr
72
73cfa_cpplib_PROGRAMS += $(DEMANGLER)
74EXTRA_PROGRAMS = ../driver/demangler
75___driver_demangler_SOURCES = SymTab/demangler.cc # test driver for the demangler, also useful as a sanity check that libdemangle.a is complete
76___driver_demangler_LDADD = libdemangle.a -ldl                  # yywrap
77noinst_LIBRARIES = $(LIBDEMANGLE)
78EXTRA_LIBRARIES = libdemangle.a
79libdemangle_a_SOURCES = $(SRCDEMANGLE)
80
81MAINTAINERCLEANFILES += ${libdir}/${notdir ${cfa_cpplib_PROGRAMS}}
Note: See TracBrowser for help on using the repository browser.