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 : Sat Jan 11 16:27:27 2025
|
---|
14 | ## Update Count : 112
|
---|
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.cpp \
|
---|
22 | CompilationState.cpp \
|
---|
23 | CompilationState.hpp \
|
---|
24 | MakeLibCfa.cpp \
|
---|
25 | MakeLibCfa.hpp
|
---|
26 |
|
---|
27 | SRCDEMANGLE = CompilationState.cpp
|
---|
28 |
|
---|
29 | MAINTAINERCLEANFILES =
|
---|
30 | MOSTLYCLEANFILES =
|
---|
31 |
|
---|
32 | if WITH_LIBPROFILER
|
---|
33 | LIBPROFILER = -lprofiler
|
---|
34 | endif
|
---|
35 |
|
---|
36 | if WITH_LIBTCMALLOC
|
---|
37 | LIBTCMALLOC = -ltcmalloc
|
---|
38 | TCMALLOCFLAG = -DTCMALLOC
|
---|
39 | endif
|
---|
40 |
|
---|
41 | include AST/module.mk
|
---|
42 | include CodeGen/module.mk
|
---|
43 | include Concurrency/module.mk
|
---|
44 | include Common/module.mk
|
---|
45 | include ControlStruct/module.mk
|
---|
46 | include GenPoly/module.mk
|
---|
47 | include InitTweak/module.mk
|
---|
48 | include Parser/module.mk
|
---|
49 | include ResolvExpr/module.mk
|
---|
50 | include SymTab/module.mk
|
---|
51 | include Tuples/module.mk
|
---|
52 | include Validate/module.mk
|
---|
53 | include Virtual/module.mk
|
---|
54 |
|
---|
55 | $(addprefix $(srcdir)/, ResolvExpr/ConversionCost.cpp ResolvExpr/CommonType.cpp SymTab/ManglerCommon.cpp) : $(srcdir)/AST/BasicKind.hpp
|
---|
56 |
|
---|
57 | .PRECIOUS: $(srcdir)/AST/BasicKind.hpp
|
---|
58 | $(srcdir)/AST/BasicKind.hpp : BasicTypes-gen.cpp
|
---|
59 | ${AM_V_GEN}${CXXCOMPILE} $< -o BasicTypes-gen -Wall -Wextra -Werror=return-type
|
---|
60 | @./BasicTypes-gen
|
---|
61 | @rm BasicTypes-gen
|
---|
62 |
|
---|
63 | # put into lib for now
|
---|
64 | cfa_cpplibdir = $(CFA_LIBDIR)
|
---|
65 | cfa_cpplib_PROGRAMS = ../driver/cfa-cpp
|
---|
66 | ___driver_cfa_cpp_SOURCES = $(SRC)
|
---|
67 | ___driver_cfa_cpp_LDADD = -ldl $(LIBPROFILER) $(LIBTCMALLOC)
|
---|
68 | EXTRA_DIST = include/cassert include/optional BasicTypes-gen.cpp
|
---|
69 |
|
---|
70 | AM_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)
|
---|
71 | AM_LDFLAGS = @HOST_FLAGS@ -Xlinker -export-dynamic
|
---|
72 | ARFLAGS = cr
|
---|
73 |
|
---|
74 | cfa_cpplib_PROGRAMS += $(DEMANGLER)
|
---|
75 | EXTRA_PROGRAMS = ../driver/demangler
|
---|
76 | ___driver_demangler_SOURCES = SymTab/demangler.cpp # test driver for the demangler, also useful as a sanity check that libdemangle.a is complete
|
---|
77 | ___driver_demangler_LDADD = libdemangle.a -ldl # yywrap
|
---|
78 | noinst_LIBRARIES = $(LIBDEMANGLE)
|
---|
79 | EXTRA_LIBRARIES = libdemangle.a
|
---|
80 | libdemangle_a_SOURCES = $(SRCDEMANGLE)
|
---|
81 |
|
---|
82 | MAINTAINERCLEANFILES += ${libdir}/${notdir ${cfa_cpplib_PROGRAMS}}
|
---|