source: libcfa/src/Makefile.am @ dd23e66

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since dd23e66 was 8395152, checked in by Thierry Delisle <tdelisle@…>, 4 years ago

Fixed headers that weren't properly installed

  • Property mode set to 100644
File size: 5.1 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 \
[ab44413]42                bits/align.hfa bits/containers.hfa bits/defs.hfa bits/debug.hfa bits/locks.hfa \
43                containers/list.hfa containers/stackLockFree.hfa concurrency/iofwd.hfa
44
[aabb846]45headers = common.hfa fstream.hfa heap.hfa iostream.hfa iterator.hfa limits.hfa rational.hfa \
46                time.hfa stdlib.hfa memory.hfa \
[170235d]47                containers/maybe.hfa containers/pair.hfa containers/result.hfa containers/vector.hfa
[facc44f]48
[170235d]49libsrc = startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c ${headers:.hfa=.cfa}
[facc44f]50
51# not all platforms support concurrency, add option do disable it
[8395152]52thread_headers_nosrc = bits/random.hfa concurrency/invoke.h concurrency/kernel/fwd.hfa
[3e2b9c9]53
54thread_headers = concurrency/coroutine.hfa concurrency/thread.hfa concurrency/kernel.hfa \
55                concurrency/monitor.hfa concurrency/mutex.hfa
56
57thread_libsrc = concurrency/CtxSwitch-@ARCHITECTURE@.S concurrency/alarm.cfa \
58                concurrency/invoke.c concurrency/io.cfa concurrency/iocall.cfa \
59                concurrency/io/setup.cfa \
60                concurrency/kernel/startup.cfa concurrency/preemption.cfa \
61                concurrency/ready_queue.cfa concurrency/stats.cfa \
62                ${thread_headers:.hfa=.cfa}
[e523b07]63else
64headers =
[2026bb6]65thread_headers =
[e523b07]66headers_nosrc =
[2026bb6]67thread_headers_nosrc =
[e523b07]68libsrc =
69endif
70
[ac78e25]71
[73abe95]72#----------------------------------------------------------------------------------------------------------------
73# add dependency to cfa-cpp so all libraries are rebuilt with new translator
[e523b07]74#@CFACC@ @CFACPP@ prelude.cfa
[a9fb796]75
76# add dependency of cfa files
[6d44da1]77libobjs = $(addsuffix .lo, $(basename $(filter %.cfa,$(libsrc))))
[14347ac]78$(libobjs) : @LOCAL_CFACC@ @CFACPP@ prelude.cfa
[a9fb796]79
[2026bb6]80thread_libobjs = $(addsuffix .lo, $(basename $(filter %.cfa,$(thread_libsrc))))
[14347ac]81$(thread_libobjs) : @LOCAL_CFACC@ @CFACPP@ prelude.cfa
[2026bb6]82
[a9fb796]83
84# .deps inclusion is not done automatically by automake for new languages
85libdeps = $(join \
86        $(addsuffix $(DEPDIR)/ , $(dir $(libobjs) ) ), \
[2a75572]87        $(notdir ${libobjs:.lo=.Plo}) \
[a9fb796]88)
[d3b7937]89
[0765121]90-include $(libdeps)
[a9fb796]91
[2026bb6]92thread_libdeps = $(join \
93        $(addsuffix $(DEPDIR)/ , $(dir $(thread_libobjs) ) ), \
94        $(notdir ${thread_libobjs:.lo=.Plo}) \
95)
96
97-include $(thread_libdeps)
98
99
[31d8f4d]100if ENABLE_DISTCC
101
102../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
103        @+make -C ../prelude distribution
104
105prelude.o prelude.lo $(libobjs) $(thread_libobjs) : ../prelude/distribution
106
107endif ENABLE_DISTCC
108
[14347ac]109prelude.o : prelude.cfa extras.cf gcc-builtins.cf builtins.cf @LOCAL_CFACC@ @CFACPP@
[0aa20e3]110        ${AM_V_GEN}$(CFACOMPILE) -quiet -XCFA,-l ${<} -c -o ${@}
[d3b7937]111
[14347ac]112prelude.lo: prelude.cfa extras.cf gcc-builtins.cf builtins.cf @LOCAL_CFACC@ @CFACPP@
[c6bbcdb]113        ${AM_V_GEN}$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile \
[0aa20e3]114        $(CFACOMPILE) -quiet -XCFA,-l ${<} -c -o ${@}
[a9fb796]115
116#----------------------------------------------------------------------------------------------------------------
[6d44da1]117libcfa_la_SOURCES = prelude.cfa ${libsrc}
[c6bbcdb]118libcfa_la_LDFLAGS = -version-info @CFA_VERSION@
[bd85400]119
[2026bb6]120libcfathread_la_SOURCES = ${thread_libsrc}
121libcfathread_la_LDFLAGS = -version-info @CFA_VERSION@
122
[38d12e7]123stdhdr = $(shell find $(srcdir)/stdhdr -type f -printf "%p ")
[ed0e67a]124
[e958ff8]125cfa_includedir = $(CFA_INCDIR)
[2026bb6]126nobase_cfa_include_HEADERS = ${stdhdr} ${headers} ${headers_nosrc} ${thread_headers} ${thread_headers_nosrc}
[73abe95]127
128#----------------------------------------------------------------------------------------------------------------
[159c62e]129maintainer-clean-local:
[796cea3]130        -rm -rf ${CFA_INCDIR} ${CFA_LIBDIR}
[a9fb796]131
132
133# $(AM_V_CFA)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
134#       $(CFACOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
135#       $(am__mv) $$depbase.Tpo $$depbase.Po
Note: See TracBrowser for help on using the repository browser.