[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 | ## |
---|
[d63eeb0] | 8 | ## Makefile.am -- |
---|
[00cc023] | 9 | ## |
---|
| 10 | ## Author : Peter A. Buhr |
---|
| 11 | ## Created On : Sun May 31 08:54:01 2015 |
---|
[381fdee] | 12 | ## Last Modified By : Peter A. Buhr |
---|
[891790ef] | 13 | ## Last Modified On : Tue Jul 24 17:25:39 2018 |
---|
| 14 | ## Update Count : 240 |
---|
[00cc023] | 15 | ############################################################################### |
---|
| 16 | |
---|
[a922e34] | 17 | # create object files in directory with source files |
---|
[38d12e7] | 18 | AUTOMAKE_OPTIONS = foreign subdir-objects |
---|
| 19 | ACLOCAL_AMFLAGS = -I automake |
---|
[52a9004] | 20 | ARFLAGS = cr |
---|
[a922e34] | 21 | |
---|
[ba9baad] | 22 | include $(srcdir)/../../src/cfa.make |
---|
| 23 | |
---|
[088a5cd] | 24 | libdir = ${CFA_LIBDIR} |
---|
[38d12e7] | 25 | lib_LTLIBRARIES = libcfa.la |
---|
[3d50aaf] | 26 | |
---|
[ba9baad] | 27 | # AM_CFLAGS for all cfa source |
---|
| 28 | # AM_CFAFLAGS for only cfa source |
---|
| 29 | # use -no-include-stdhdr to prevent rebuild cycles |
---|
| 30 | # The built sources must not depend on the installed headers |
---|
[575a6e5] | 31 | AM_CFAFLAGS = -quiet -in-tree -imacros prelude.c -I$(srcdir)/stdhdr @CONFIG_CFAFLAGS@ |
---|
[38d12e7] | 32 | AM_CFLAGS = -g -Wall -Wno-unused-function -fPIC @ARCH_FLAGS@ @CONFIG_CFLAGS@ |
---|
[575a6e5] | 33 | AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ |
---|
[ba9baad] | 34 | CFACC = @CFACC@ |
---|
[d3b7937] | 35 | |
---|
[73abe95] | 36 | #---------------------------------------------------------------------------------------------------------------- |
---|
| 37 | headers = fstream.hfa iostream.hfa iterator.hfa limits.hfa rational.hfa time.hfa stdlib.hfa common.hfa \ |
---|
| 38 | containers/maybe.hfa containers/pair.hfa containers/result.hfa containers/vector.hfa |
---|
[facc44f] | 39 | |
---|
| 40 | # not all platforms support concurrency, add option do disable it |
---|
[73abe95] | 41 | headers += concurrency/coroutine.hfa concurrency/thread.hfa concurrency/kernel.hfa concurrency/monitor.hfa concurrency/mutex.hfa |
---|
[facc44f] | 42 | |
---|
[38d12e7] | 43 | libobjs = ${headers:.hfa=.lo} |
---|
[ba9baad] | 44 | libsrc = prelude.c startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c heap.cfa \ |
---|
[73abe95] | 45 | ${headers:.hfa=.cfa} |
---|
[facc44f] | 46 | |
---|
| 47 | # not all platforms support concurrency, add option do disable it |
---|
[37fe352] | 48 | libsrc += concurrency/CtxSwitch-@ARCHITECTURE@.S concurrency/alarm.cfa concurrency/invoke.c concurrency/preemption.cfa |
---|
[ac78e25] | 49 | |
---|
[73abe95] | 50 | #---------------------------------------------------------------------------------------------------------------- |
---|
| 51 | # add dependency to cfa-cpp so all libraries are rebuilt with new translator |
---|
| 52 | ${libobjs} : ${cfalib_DATA} |
---|
[d3b7937] | 53 | |
---|
[38d12e7] | 54 | libcfa_la_SOURCES = ${libsrc} |
---|
[bd85400] | 55 | |
---|
[38d12e7] | 56 | stdhdr = $(shell find $(srcdir)/stdhdr -type f -printf "%p ") |
---|
[ed0e67a] | 57 | |
---|
[e958ff8] | 58 | cfa_includedir = $(CFA_INCDIR) |
---|
[73abe95] | 59 | nobase_cfa_include_HEADERS = \ |
---|
| 60 | ${headers} \ |
---|
| 61 | ${stdhdr} \ |
---|
| 62 | math.hfa \ |
---|
| 63 | gmp.hfa \ |
---|
| 64 | time_t.hfa \ |
---|
| 65 | bits/align.hfa \ |
---|
| 66 | bits/containers.hfa \ |
---|
| 67 | bits/defs.hfa \ |
---|
| 68 | bits/debug.hfa \ |
---|
| 69 | bits/locks.hfa \ |
---|
[58b6d1b] | 70 | concurrency/invoke.h |
---|
[73abe95] | 71 | |
---|
| 72 | MOSTLYCLEANFILES = prelude.c |
---|
| 73 | |
---|
| 74 | #---------------------------------------------------------------------------------------------------------------- |
---|
[159c62e] | 75 | maintainer-clean-local: |
---|
[796cea3] | 76 | -rm -rf ${CFA_INCDIR} ${CFA_LIBDIR} |
---|