source: libcfa/src/Makefile.am @ 98319ad

ADTarm-ehast-experimentalcleanup-dtorsenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 98319ad was 0765121, checked in by Thierry Delisle <tdelisle@…>, 5 years ago

Removed useless warning about missing dependencies when building from scratch

  • Property mode set to 100644
File size: 3.9 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
[38d12e7]18AUTOMAKE_OPTIONS = foreign subdir-objects
19ACLOCAL_AMFLAGS  = -I automake
[a922e34]20
[ba9baad]21include $(srcdir)/../../src/cfa.make
22
[088a5cd]23libdir = ${CFA_LIBDIR}
[38d12e7]24lib_LTLIBRARIES =  libcfa.la
[3d50aaf]25
[a9fb796]26VPATH += :../prelude
27
[ba9baad]28# AM_CFLAGS for all cfa source
29# AM_CFAFLAGS for only cfa source
30# use -no-include-stdhdr to prevent rebuild cycles
31# The built sources must not depend on the installed headers
[a9fb796]32AM_CFAFLAGS = -quiet -in-tree -I$(srcdir)/stdhdr @CONFIG_CFAFLAGS@
[38d12e7]33AM_CFLAGS = -g -Wall -Wno-unused-function -fPIC @ARCH_FLAGS@ @CONFIG_CFLAGS@
[575a6e5]34AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@
[ba9baad]35CFACC = @CFACC@
[d3b7937]36
[73abe95]37#----------------------------------------------------------------------------------------------------------------
[e523b07]38if BUILDLIB
[c6bbcdb]39headers_nosrc = math.hfa gmp.hfa time_t.hfa bits/align.hfa bits/containers.hfa bits/defs.hfa bits/debug.hfa bits/locks.hfa
[73abe95]40headers = fstream.hfa iostream.hfa iterator.hfa limits.hfa rational.hfa time.hfa stdlib.hfa common.hfa \
41          containers/maybe.hfa containers/pair.hfa containers/result.hfa containers/vector.hfa
[facc44f]42
43# not all platforms support concurrency, add option do disable it
[e523b07]44headers_nosrc += concurrency/invoke.h
[c6bbcdb]45headers += concurrency/coroutine.hfa concurrency/thread.hfa concurrency/kernel.hfa concurrency/monitor.hfa concurrency/mutex.hfa
[e523b07]46
[a9fb796]47libsrc = startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c heap.cfa ${headers:.hfa=.cfa}
[facc44f]48
49# not all platforms support concurrency, add option do disable it
[37fe352]50libsrc += concurrency/CtxSwitch-@ARCHITECTURE@.S concurrency/alarm.cfa concurrency/invoke.c concurrency/preemption.cfa
[e523b07]51else
52headers =
53headers_nosrc =
54libsrc =
55endif
56
[ac78e25]57
[73abe95]58#----------------------------------------------------------------------------------------------------------------
59# add dependency to cfa-cpp so all libraries are rebuilt with new translator
[e523b07]60#@CFACC@ @CFACPP@ prelude.cfa
[a9fb796]61
62# add dependency of cfa files
[6d44da1]63libobjs = $(addsuffix .lo, $(basename $(filter %.cfa,$(libsrc))))
[e523b07]64$(libobjs) : @CFACC@ @CFACPP@ prelude.cfa
[a9fb796]65
66
67# .deps inclusion is not done automatically by automake for new languages
68libdeps = $(join \
69        $(addsuffix $(DEPDIR)/ , $(dir $(libobjs) ) ), \
[2a75572]70        $(notdir ${libobjs:.lo=.Plo}) \
[a9fb796]71)
[d3b7937]72
[0765121]73-include $(libdeps)
[a9fb796]74
[c6bbcdb]75prelude.o : prelude.cfa extras.cf gcc-builtins.cf builtins.cf @CFACC@ @CFACPP@
[43fa66e]76        ${AM_V_GEN}@CFACC@ ${AM_CFLAGS} ${CFLAGS} -quiet -in-tree @CONFIG_CFAFLAGS@ -XCFA -l ${<} -c -o ${@}
[d3b7937]77
[c6bbcdb]78prelude.lo: prelude.cfa extras.cf gcc-builtins.cf builtins.cf @CFACC@ @CFACPP@
79        ${AM_V_GEN}$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile \
[43fa66e]80        @CFACC@ ${AM_CFLAGS} ${CFLAGS} -quiet -in-tree @CONFIG_CFAFLAGS@ -XCFA -l ${<} -c -o ${@}
[a9fb796]81
82
83#----------------------------------------------------------------------------------------------------------------
[6d44da1]84libcfa_la_SOURCES = prelude.cfa ${libsrc}
[c6bbcdb]85libcfa_la_LDFLAGS = -version-info @CFA_VERSION@
[bd85400]86
[38d12e7]87stdhdr = $(shell find $(srcdir)/stdhdr -type f -printf "%p ")
[ed0e67a]88
[e958ff8]89cfa_includedir = $(CFA_INCDIR)
[e523b07]90nobase_cfa_include_HEADERS = ${stdhdr} ${headers} ${headers_nosrc}
[73abe95]91
92#----------------------------------------------------------------------------------------------------------------
[159c62e]93maintainer-clean-local:
[796cea3]94        -rm -rf ${CFA_INCDIR} ${CFA_LIBDIR}
[a9fb796]95
96
97# $(AM_V_CFA)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
98#       $(CFACOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
99#       $(am__mv) $$depbase.Tpo $$depbase.Po
Note: See TracBrowser for help on using the repository browser.