######################## -*- Mode: Makefile-Automake -*- ###################### ## ## Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo ## ## The contents of this file are covered under the licence agreement in the ## file "LICENCE" distributed with Cforall. ## ## Makefile.am -- ## ## Author : Peter A. Buhr ## Created On : Sun May 31 08:54:01 2015 ## Last Modified By : Peter A. Buhr ## Last Modified On : Tue Jul 24 17:25:39 2018 ## Update Count : 240 ############################################################################### # create object files in directory with source files AUTOMAKE_OPTIONS = subdir-objects ARFLAGS = cr include $(srcdir)/../../src/cfa.make libdir = ${CFA_LIBDIR} lib_LIBRARIES = libcfa.a # AM_CFLAGS for all cfa source # AM_CFAFLAGS for only cfa source # use -no-include-stdhdr to prevent rebuild cycles # The built sources must not depend on the installed headers AM_CFAFLAGS = -quiet -in-tree -imacros prelude.c -I$(srcdir)/stdhdr @CONFIG_CFAFLAGS@ AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ CFACC = @CFACC@ #---------------------------------------------------------------------------------------------------------------- headers = fstream.hfa iostream.hfa iterator.hfa limits.hfa rational.hfa time.hfa stdlib.hfa common.hfa \ containers/maybe.hfa containers/pair.hfa containers/result.hfa containers/vector.hfa # not all platforms support concurrency, add option do disable it headers += concurrency/coroutine.hfa concurrency/thread.hfa concurrency/kernel.hfa concurrency/monitor.hfa concurrency/mutex.hfa libobjs = ${headers:.hfa=.o} libsrc = prelude.c startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c heap.cfa \ ${headers:.hfa=.cfa} # not all platforms support concurrency, add option do disable it libsrc += concurrency/CtxSwitch-@ARCHITECTURE@.S concurrency/alarm.cfa concurrency/invoke.c concurrency/preemption.cfa #---------------------------------------------------------------------------------------------------------------- # add dependency to cfa-cpp so all libraries are rebuilt with new translator ${libobjs} : ${cfalib_DATA} libcfa_a_SOURCES = ${libsrc} stdhdr = ${shell find ${srcdir}/stdhdr -type f -printf "%p "} cfa_includedir = $(CFA_INCDIR) nobase_cfa_include_HEADERS = \ ${headers} \ ${stdhdr} \ math.hfa \ gmp.hfa \ time_t.hfa \ bits/align.hfa \ bits/containers.hfa \ bits/defs.hfa \ bits/debug.hfa \ bits/locks.hfa \ concurrency/invoke.h MOSTLYCLEANFILES = prelude.c #---------------------------------------------------------------------------------------------------------------- maintainer-clean-local: -rm -rf ${CFA_INCDIR} ${CFA_LIBDIR}