source: src/Makefile.am @ d96d4f0

Last change on this file since d96d4f0 was 5f225f5, checked in by Andrew Beach <ajbeach@…>, 6 months ago

Perhaps only src/Makefile.am needed to change, but I did a text search to try and be absolutely sure I got everything.

  • Property mode set to 100644
File size: 2.6 KB
RevLine 
[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
[40bca07]13## Last Modified On : Mon Nov 20 11:28:05 2023
14## Update Count     : 109
[00cc023]15###############################################################################
16
17# create object files in directory with source files
[0c1b566]18AUTOMAKE_OPTIONS = foreign subdir-objects
[107b01a]19ACLOCAL_AMFLAGS  = -I automake
[00cc023]20
[b2ea0cd]21SRC = main.cpp \
22        CompilationState.cpp \
23        CompilationState.hpp \
[83fd57d]24        MakeLibCfa.cpp \
[b2ea0cd]25        MakeLibCfa.hpp
[7abee38]26
[b2ea0cd]27SRCDEMANGLE = CompilationState.cpp
[d3b7937]28
29MAINTAINERCLEANFILES =
[1f86d5e]30MOSTLYCLEANFILES =
[00cc023]31
[292d599b]32if WITH_LIBPROFILER
33LIBPROFILER = -lprofiler
34endif
[4fd45bc]35
[292d599b]36if WITH_LIBTCMALLOC
37LIBTCMALLOC = -ltcmalloc
38TCMALLOCFLAG = -DTCMALLOC
39endif
[d3b7937]40
[dccc091]41include AST/module.mk
[00cc023]42include CodeGen/module.mk
[68ac32e]43include Concurrency/module.mk
[00cc023]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
[fd2debf]52include Validate/module.mk
[a5f0529]53include Virtual/module.mk
[00cc023]54
[c92bdcc]55$(addprefix $(srcdir)/, ResolvExpr/ConversionCost.cpp ResolvExpr/CommonType.cpp SymTab/ManglerCommon.cpp) : $(srcdir)/AST/BasicKind.hpp
[ada4575]56
[b2ea0cd]57$(srcdir)/AST/BasicKind.hpp : BasicTypes-gen.cpp
[850aff1]58        ${AM_V_GEN}${CXXCOMPILE} $< -o BasicTypes-gen -Wall -Wextra -Werror=return-type
[ada4575]59        @./BasicTypes-gen
60        @rm BasicTypes-gen
61
[00cc023]62# put into lib for now
[50697b0]63cfa_cpplibdir = $(CFA_LIBDIR)
[40bca07]64cfa_cpplib_PROGRAMS = ../driver/cfa-cpp
[bf71cfd]65___driver_cfa_cpp_SOURCES = $(SRC)
[292d599b]66___driver_cfa_cpp_LDADD = -ldl $(LIBPROFILER) $(LIBTCMALLOC)
[e542b02]67EXTRA_DIST = include/cassert include/optional BasicTypes-gen.cpp
[d1e0979]68
[3acc863]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)
[47c1928]70AM_LDFLAGS  = @HOST_FLAGS@ -Xlinker -export-dynamic
[56b53b2]71ARFLAGS     = cr
[d3b7937]72
[40bca07]73cfa_cpplib_PROGRAMS += $(DEMANGLER)
[4bc4b4c]74EXTRA_PROGRAMS = ../driver/demangler
[5f225f5]75___driver_demangler_SOURCES = SymTab/demangler.cpp # test driver for the demangler, also useful as a sanity check that libdemangle.a is complete
[4bc4b4c]76___driver_demangler_LDADD = libdemangle.a -ldl                  # yywrap
[df8b87cd]77noinst_LIBRARIES = $(LIBDEMANGLE)
78EXTRA_LIBRARIES = libdemangle.a
[7abee38]79libdemangle_a_SOURCES = $(SRCDEMANGLE)
[d1e0979]80
[d3b7937]81MAINTAINERCLEANFILES += ${libdir}/${notdir ${cfa_cpplib_PROGRAMS}}
Note: See TracBrowser for help on using the repository browser.