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
|
---|
18 | AUTOMAKE_OPTIONS = subdir-objects
|
---|
19 | ARFLAGS = cr
|
---|
20 |
|
---|
21 | include $(srcdir)/../../src/cfa.make
|
---|
22 |
|
---|
23 | libdir = ${CFA_LIBDIR}
|
---|
24 | lib_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
|
---|
30 | AM_CFAFLAGS = -quiet -in-tree -imacros prelude.c -I$(srcdir)/stdhdr @CONFIG_CFAFLAGS@
|
---|
31 | AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@
|
---|
32 | AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@
|
---|
33 | CFACC = @CFACC@
|
---|
34 |
|
---|
35 | #----------------------------------------------------------------------------------------------------------------
|
---|
36 | headers = fstream.hfa iostream.hfa iterator.hfa limits.hfa rational.hfa time.hfa stdlib.hfa common.hfa \
|
---|
37 | containers/maybe.hfa containers/pair.hfa containers/result.hfa containers/vector.hfa
|
---|
38 |
|
---|
39 | # not all platforms support concurrency, add option do disable it
|
---|
40 | headers += concurrency/coroutine.hfa concurrency/thread.hfa concurrency/kernel.hfa concurrency/monitor.hfa concurrency/mutex.hfa
|
---|
41 |
|
---|
42 | libobjs = ${headers:.hfa=.o}
|
---|
43 | libsrc = prelude.c startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c heap.cfa \
|
---|
44 | ${headers:.hfa=.cfa}
|
---|
45 |
|
---|
46 | # not all platforms support concurrency, add option do disable it
|
---|
47 | libsrc += concurrency/CtxSwitch-@ARCHITECTURE@.S concurrency/alarm.cfa concurrency/invoke.c concurrency/preemption.cfa
|
---|
48 |
|
---|
49 | #----------------------------------------------------------------------------------------------------------------
|
---|
50 | # add dependency to cfa-cpp so all libraries are rebuilt with new translator
|
---|
51 | ${libobjs} : ${cfalib_DATA}
|
---|
52 |
|
---|
53 | libcfa_a_SOURCES = ${libsrc}
|
---|
54 |
|
---|
55 | stdhdr = ${shell find ${srcdir}/stdhdr -type f -printf "%p "}
|
---|
56 |
|
---|
57 | cfa_includedir = $(CFA_INCDIR)
|
---|
58 | nobase_cfa_include_HEADERS = \
|
---|
59 | ${headers} \
|
---|
60 | ${stdhdr} \
|
---|
61 | math.hfa \
|
---|
62 | gmp.hfa \
|
---|
63 | time_t.hfa \
|
---|
64 | bits/align.hfa \
|
---|
65 | bits/containers.hfa \
|
---|
66 | bits/defs.hfa \
|
---|
67 | bits/debug.hfa \
|
---|
68 | bits/locks.hfa \
|
---|
69 | concurrency/invoke.h
|
---|
70 |
|
---|
71 | MOSTLYCLEANFILES = prelude.c
|
---|
72 |
|
---|
73 | #----------------------------------------------------------------------------------------------------------------
|
---|
74 | maintainer-clean-local:
|
---|
75 | -rm -rf ${CFA_INCDIR} ${CFA_LIBDIR}
|
---|