######################## -*- 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 -B@DRIVER_DIR@ -XCFA --prelude-dir=$(top_builddir)/prelude -imacros prelude.c -I$(srcdir)/stdhdr AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ CFACC = @CFACC@ headers = fstream iostream iterator limits rational time stdlib common \ containers/maybe containers/pair containers/result containers/vector # not all platforms support concurrency, add option do disable it headers += concurrency/coroutine concurrency/thread concurrency/kernel concurrency/monitor concurrency/mutex libobjs = ${headers:=.o} libsrc = prelude.c startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c heap.cfa \ ${headers:=.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 # extensionless header files are overridden by -o flag in default makerule => explicitly override default rule to silently do nothing # SKULLDUGGERY in order to make sure this isn't called make the rule always fail but also create a rule for headers % : %.c echo "Dummy rule, should never be called" false # This rule should always match headers and since it has no prerequisite it will never be called $(addprefix $(srcdir)/,$(headers)): echo "Dummy rule, should never be called" false ${libobjs} : ${cfalib_DATA} # add dependency to cfa-cpp so all libraries are rebuilt with new translator libcfa_a_SOURCES = ${libsrc} stdhdr = ${shell find ${srcdir}/stdhdr -type f -printf "%p "} cfa_includedir = $(CFA_INCDIR) nobase_cfa_include_HEADERS = \ ${headers} \ ${stdhdr} \ math \ gmp \ time_t.h \ bits/align.h \ bits/containers.h \ bits/defs.h \ bits/debug.h \ bits/locks.h \ concurrency/invoke.h CLEANFILES = prelude.c maintainer-clean-local: -rm -rf ${CFA_INCDIR} ${CFA_LIBDIR}