source: libcfa/src/Makefile.am @ c6bbcdb

aaron-thesisarm-ehcleanup-dtorsdeferred_resnjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexer
Last change on this file since c6bbcdb was c6bbcdb, checked in by Thierry Delisle <tdelisle@…>, 3 years ago

Fixed shared library version number

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