source: libcfa/src/Makefile.am @ c1ee231

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since c1ee231 was aabb846, checked in by Andrew Beach <ajbeach@…>, 4 years ago

Added a first draft of the memory management library module.

  • Property mode set to 100644
File size: 4.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
[170235d]13## Last Modified On : Mon Jun  1 13:35:33 2020
14## Update Count     : 248
[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}
[8ac3b0e]24lib_LTLIBRARIES = libcfa.la libcfathread.la
[3d50aaf]25
[a9fb796]26VPATH += :../prelude
27
[dee1f89]28gdbwaittarget=""
29
[ba9baad]30# AM_CFLAGS for all cfa source
31# AM_CFAFLAGS for only cfa source
32# use -no-include-stdhdr to prevent rebuild cycles
33# The built sources must not depend on the installed headers
[158b026]34AM_CFAFLAGS = -quiet -cfalib -I$(srcdir)/stdhdr $(if $(findstring ${gdbwaittarget}, ${@}), -XCFA --gdb) @CONFIG_CFAFLAGS@
[f1b6671]35AM_CFLAGS = -g -Wall -Wno-unused-function -fPIC -fexceptions -pthread @ARCH_FLAGS@ @CONFIG_CFLAGS@
[575a6e5]36AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@
[ba9baad]37CFACC = @CFACC@
[d3b7937]38
[73abe95]39#----------------------------------------------------------------------------------------------------------------
[e523b07]40if BUILDLIB
[170235d]41headers_nosrc = bitmanip.hfa exception.hfa math.hfa gmp.hfa time_t.hfa clock.hfa \
42                bits/align.hfa bits/containers.hfa bits/defs.hfa bits/debug.hfa bits/locks.hfa containers/list.hfa containers/stackLockFree.hfa
[aabb846]43headers = common.hfa fstream.hfa heap.hfa iostream.hfa iterator.hfa limits.hfa rational.hfa \
44                time.hfa stdlib.hfa memory.hfa \
[170235d]45                containers/maybe.hfa containers/pair.hfa containers/result.hfa containers/vector.hfa
[facc44f]46
[170235d]47libsrc = startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c ${headers:.hfa=.cfa}
[facc44f]48
49# not all platforms support concurrency, add option do disable it
[2026bb6]50thread_headers_nosrc = concurrency/invoke.h
51thread_headers = concurrency/coroutine.hfa concurrency/thread.hfa concurrency/kernel.hfa concurrency/monitor.hfa concurrency/mutex.hfa
[27273f9]52thread_libsrc = concurrency/CtxSwitch-@ARCHITECTURE@.S concurrency/alarm.cfa concurrency/invoke.c concurrency/io.cfa concurrency/preemption.cfa ${thread_headers:.hfa=.cfa}
[e523b07]53else
54headers =
[2026bb6]55thread_headers =
[e523b07]56headers_nosrc =
[2026bb6]57thread_headers_nosrc =
[e523b07]58libsrc =
59endif
60
[ac78e25]61
[73abe95]62#----------------------------------------------------------------------------------------------------------------
63# add dependency to cfa-cpp so all libraries are rebuilt with new translator
[e523b07]64#@CFACC@ @CFACPP@ prelude.cfa
[a9fb796]65
66# add dependency of cfa files
[6d44da1]67libobjs = $(addsuffix .lo, $(basename $(filter %.cfa,$(libsrc))))
[14347ac]68$(libobjs) : @LOCAL_CFACC@ @CFACPP@ prelude.cfa
[a9fb796]69
[2026bb6]70thread_libobjs = $(addsuffix .lo, $(basename $(filter %.cfa,$(thread_libsrc))))
[14347ac]71$(thread_libobjs) : @LOCAL_CFACC@ @CFACPP@ prelude.cfa
[2026bb6]72
[a9fb796]73
74# .deps inclusion is not done automatically by automake for new languages
75libdeps = $(join \
76        $(addsuffix $(DEPDIR)/ , $(dir $(libobjs) ) ), \
[2a75572]77        $(notdir ${libobjs:.lo=.Plo}) \
[a9fb796]78)
[d3b7937]79
[0765121]80-include $(libdeps)
[a9fb796]81
[2026bb6]82thread_libdeps = $(join \
83        $(addsuffix $(DEPDIR)/ , $(dir $(thread_libobjs) ) ), \
84        $(notdir ${thread_libobjs:.lo=.Plo}) \
85)
86
87-include $(thread_libdeps)
88
89
[31d8f4d]90if ENABLE_DISTCC
91
92../prelude/distribution: @LOCAL_CFACC@ @LOCAL_CC1@ @CFACPP@ ../prelude/gcc-builtins.cf ../prelude/builtins.cf ../prelude/extras.cf ../prelude/prelude.cfa ../prelude/bootloader.c $(srcdir)/../../tools/build/push2dist.sh
93        @+make -C ../prelude distribution
94
95prelude.o prelude.lo $(libobjs) $(thread_libobjs) : ../prelude/distribution
96
97endif ENABLE_DISTCC
98
[14347ac]99prelude.o : prelude.cfa extras.cf gcc-builtins.cf builtins.cf @LOCAL_CFACC@ @CFACPP@
[158b026]100        ${AM_V_GEN}$(CFACOMPILE) -quiet -XCFA -l ${<} -c -o ${@}
[d3b7937]101
[14347ac]102prelude.lo: prelude.cfa extras.cf gcc-builtins.cf builtins.cf @LOCAL_CFACC@ @CFACPP@
[c6bbcdb]103        ${AM_V_GEN}$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile \
[158b026]104        $(CFACOMPILE) -quiet -XCFA -l ${<} -c -o ${@}
[a9fb796]105
106#----------------------------------------------------------------------------------------------------------------
[6d44da1]107libcfa_la_SOURCES = prelude.cfa ${libsrc}
[c6bbcdb]108libcfa_la_LDFLAGS = -version-info @CFA_VERSION@
[bd85400]109
[2026bb6]110libcfathread_la_SOURCES = ${thread_libsrc}
111libcfathread_la_LDFLAGS = -version-info @CFA_VERSION@
112
[38d12e7]113stdhdr = $(shell find $(srcdir)/stdhdr -type f -printf "%p ")
[ed0e67a]114
[e958ff8]115cfa_includedir = $(CFA_INCDIR)
[2026bb6]116nobase_cfa_include_HEADERS = ${stdhdr} ${headers} ${headers_nosrc} ${thread_headers} ${thread_headers_nosrc}
[73abe95]117
118#----------------------------------------------------------------------------------------------------------------
[159c62e]119maintainer-clean-local:
[796cea3]120        -rm -rf ${CFA_INCDIR} ${CFA_LIBDIR}
[a9fb796]121
122
123# $(AM_V_CFA)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
124#       $(CFACOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
125#       $(am__mv) $$depbase.Tpo $$depbase.Po
Note: See TracBrowser for help on using the repository browser.