source: libcfa/src/Makefile.am @ 04c77791

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexerpthread-emulationqualifiedEnum
Last change on this file since 04c77791 was 575a6e5, checked in by Thierry Delisle <tdelisle@…>, 6 years ago

Cross compilation appears to be working

  • Property mode set to 100644
File size: 2.8 KB
RevLine 
[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
18AUTOMAKE_OPTIONS = subdir-objects
[52a9004]19ARFLAGS = cr
[a922e34]20
[ba9baad]21include $(srcdir)/../../src/cfa.make
22
[088a5cd]23libdir = ${CFA_LIBDIR}
[c59712e]24lib_LIBRARIES =  libcfa.a
[3d50aaf]25
[ba9baad]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
[575a6e5]30AM_CFAFLAGS = -quiet -in-tree -imacros prelude.c -I$(srcdir)/stdhdr @CONFIG_CFAFLAGS@
31AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@
32AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@
[ba9baad]33CFACC = @CFACC@
[d3b7937]34
[73abe95]35#----------------------------------------------------------------------------------------------------------------
36headers = 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
[facc44f]38
39# not all platforms support concurrency, add option do disable it
[73abe95]40headers += concurrency/coroutine.hfa concurrency/thread.hfa concurrency/kernel.hfa concurrency/monitor.hfa concurrency/mutex.hfa
[facc44f]41
[73abe95]42libobjs = ${headers:.hfa=.o}
[ba9baad]43libsrc = prelude.c startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c heap.cfa \
[73abe95]44        ${headers:.hfa=.cfa}
[facc44f]45
46# not all platforms support concurrency, add option do disable it
[37fe352]47libsrc += concurrency/CtxSwitch-@ARCHITECTURE@.S concurrency/alarm.cfa concurrency/invoke.c concurrency/preemption.cfa
[ac78e25]48
[73abe95]49#----------------------------------------------------------------------------------------------------------------
50# add dependency to cfa-cpp so all libraries are rebuilt with new translator
51${libobjs} : ${cfalib_DATA}
[d3b7937]52
[3d50aaf]53libcfa_a_SOURCES = ${libsrc}
[bd85400]54
[e9546f9]55stdhdr = ${shell find ${srcdir}/stdhdr -type f -printf "%p "}
[ed0e67a]56
[e958ff8]57cfa_includedir = $(CFA_INCDIR)
[73abe95]58nobase_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         \
[58b6d1b]69        concurrency/invoke.h
[73abe95]70
71MOSTLYCLEANFILES = prelude.c
72
73#----------------------------------------------------------------------------------------------------------------
[159c62e]74maintainer-clean-local:
[796cea3]75        -rm -rf ${CFA_INCDIR} ${CFA_LIBDIR}
Note: See TracBrowser for help on using the repository browser.