source: libcfa/src/Makefile.am @ 37fe352

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexer
Last change on this file since 37fe352 was 37fe352, checked in by Thierry Delisle <tdelisle@…>, 3 years ago

Added proper multi-lib handling, tests still do not work and arm support is broken

  • Property mode set to 100644
File size: 2.8 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:54:01 2015
12## Last Modified By : Peter A. Buhr
13## Last Modified On : Tue Jul 24 17:25:39 2018
14## Update Count     : 240
15###############################################################################
16
17# create object files in directory with source files
18AUTOMAKE_OPTIONS = subdir-objects
19ARFLAGS = cr
20
21include $(srcdir)/../../src/cfa.make
22
23libdir = ${CFA_LIBDIR}
24lib_LIBRARIES =  libcfa.a
25
26# AM_CFLAGS for all cfa source
27# AM_CFAFLAGS for only cfa source
28# use -no-include-stdhdr to prevent rebuild cycles
29# The built sources must not depend on the installed headers
30AM_CFAFLAGS = -quiet -in-tree -B@DRIVER_DIR@ -XCFA --prelude-dir=$(top_builddir)/prelude -imacros prelude.c -I$(srcdir)/stdhdr
31AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@
32AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@
33CFACC = @CFACC@
34
35headers = fstream iostream iterator limits rational time stdlib common \
36          containers/maybe containers/pair containers/result containers/vector
37
38# not all platforms support concurrency, add option do disable it
39headers += concurrency/coroutine concurrency/thread concurrency/kernel concurrency/monitor concurrency/mutex
40
41libobjs = ${headers:=.o}
42libsrc = prelude.c startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c heap.cfa \
43        ${headers:=.cfa}
44
45# not all platforms support concurrency, add option do disable it
46libsrc += concurrency/CtxSwitch-@ARCHITECTURE@.S concurrency/alarm.cfa concurrency/invoke.c concurrency/preemption.cfa
47
48# extensionless header files are overridden by -o flag in default makerule => explicitly override default rule to silently do nothing
49# SKULLDUGGERY in order to make sure this isn't called make the rule always fail but also create a rule for headers
50% : %.c
51        echo "Dummy rule, should never be called"
52        false
53
54# This rule should always match headers and since it has no prerequisite it will never be called
55$(addprefix $(srcdir)/,$(headers)):
56        echo "Dummy rule, should never be called"
57        false
58
59
60${libobjs} : ${cfalib_DATA} # add dependency to cfa-cpp so all libraries are rebuilt with new translator
61
62libcfa_a_SOURCES = ${libsrc}
63
64stdhdr = ${shell find ${srcdir}/stdhdr -type f -printf "%p "}
65
66cfa_includedir = $(CFA_INCDIR)
67nobase_cfa_include_HEADERS =    \
68        ${headers}              \
69        ${stdhdr}               \
70        math                    \
71        gmp                     \
72        time_t.h                \
73        bits/align.h            \
74        bits/containers.h       \
75        bits/defs.h             \
76        bits/debug.h            \
77        bits/locks.h            \
78        concurrency/invoke.h
79
80CLEANFILES = prelude.c
81
82maintainer-clean-local:
83        -rm -rf ${CFA_INCDIR} ${CFA_LIBDIR}
Note: See TracBrowser for help on using the repository browser.