[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 |
---|
[ada4575] | 13 | ## Last Modified On : Fri Feb 15 09:44:09 2019 |
---|
| 14 | ## Update Count : 97 |
---|
[00cc023] | 15 | ############################################################################### |
---|
| 16 | |
---|
| 17 | # create object files in directory with source files |
---|
[0c1b566] | 18 | AUTOMAKE_OPTIONS = foreign subdir-objects |
---|
[107b01a] | 19 | ACLOCAL_AMFLAGS = -I automake |
---|
[00cc023] | 20 | |
---|
[d3b7937] | 21 | SRC = main.cc \ |
---|
[7abee38] | 22 | MakeLibCfa.cc \ |
---|
| 23 | CompilationState.cc |
---|
| 24 | |
---|
| 25 | SRCDEMANGLE = CompilationState.cc |
---|
[d3b7937] | 26 | |
---|
| 27 | MAINTAINERCLEANFILES = |
---|
[1f86d5e] | 28 | MOSTLYCLEANFILES = |
---|
[d3b7937] | 29 | |
---|
[00cc023] | 30 | include CodeGen/module.mk |
---|
[41a7137] | 31 | include CodeTools/module.mk |
---|
[68ac32e] | 32 | include Concurrency/module.mk |
---|
[00cc023] | 33 | include Common/module.mk |
---|
| 34 | include ControlStruct/module.mk |
---|
| 35 | include GenPoly/module.mk |
---|
| 36 | include InitTweak/module.mk |
---|
| 37 | include Parser/module.mk |
---|
| 38 | include ResolvExpr/module.mk |
---|
| 39 | include SymTab/module.mk |
---|
| 40 | include SynTree/module.mk |
---|
| 41 | include Tuples/module.mk |
---|
[fd2debf] | 42 | include Validate/module.mk |
---|
[a5f0529] | 43 | include Virtual/module.mk |
---|
[00cc023] | 44 | |
---|
[ada4575] | 45 | $(addprefix $(srcdir)/, ResolvExpr/ConversionCost.cc ResolvExpr/CommonType.cc SymTab/ManglerCommon.cc) : $(srcdir)/SynTree/Type.h |
---|
| 46 | |
---|
| 47 | $(srcdir)/SynTree/Type.h : BasicTypes-gen.cc |
---|
[6ca6811] | 48 | ${AM_V_GEN}${CXXCOMPILE} $< -o BasicTypes-gen -Wall -Wextra |
---|
[ada4575] | 49 | @./BasicTypes-gen |
---|
| 50 | @rm BasicTypes-gen |
---|
| 51 | |
---|
[00cc023] | 52 | # put into lib for now |
---|
[50697b0] | 53 | cfa_cpplibdir = $(CFA_LIBDIR) |
---|
[5e44ac2] | 54 | cfa_cpplib_PROGRAMS = ../driver/cfa-cpp demangler |
---|
[bf71cfd] | 55 | ___driver_cfa_cpp_SOURCES = $(SRC) |
---|
| 56 | ___driver_cfa_cpp_LDADD = -ldl # yywrap |
---|
[d1e0979] | 57 | |
---|
[47c1928] | 58 | AM_CXXFLAGS = @HOST_FLAGS@ -Wno-deprecated -Wall -Wextra -DDEBUG_ALL -I./Parser -I$(srcdir)/Parser -I$(srcdir)/include -DYY_NO_INPUT -O2 -g -std=c++14 |
---|
| 59 | AM_LDFLAGS = @HOST_FLAGS@ -Xlinker -export-dynamic |
---|
[56b53b2] | 60 | ARFLAGS = cr |
---|
[d3b7937] | 61 | |
---|
[d1e0979] | 62 | demangler_SOURCES = SymTab/demangler.cc |
---|
| 63 | |
---|
[7abee38] | 64 | demangler_LDADD = libdemangle.a -ldl # yywrap |
---|
[d1e0979] | 65 | |
---|
| 66 | noinst_LIBRARIES = libdemangle.a |
---|
[7abee38] | 67 | libdemangle_a_SOURCES = $(SRCDEMANGLE) |
---|
[d1e0979] | 68 | |
---|
[d3b7937] | 69 | MAINTAINERCLEANFILES += ${libdir}/${notdir ${cfa_cpplib_PROGRAMS}} |
---|