source: libcfa/src/Makefile.am@ a9fb796

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors deferred_resn enum forall-pointer-decay jacob/cs343-translation jenkins-sandbox new-ast new-ast-unique-expr no_list persistent-indexer pthread-emulation qualifiedEnum stuck-waitfor-destruct
Last change on this file since a9fb796 was a9fb796, checked in by Thierry Delisle <tdelisle@…>, 7 years ago

Fixed libcfa dependencies

  • Property mode set to 100644
File size: 3.5 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
19ARFLAGS = cr
20
21include $(srcdir)/../../src/cfa.make
22
23libdir = ${CFA_LIBDIR}
24lib_LIBRARIES = libcfa.a
25
26VPATH += :../prelude
27
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
32AM_CFAFLAGS = -quiet -in-tree -I$(srcdir)/stdhdr @CONFIG_CFAFLAGS@
33AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@
34AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@
35CFACC = @CFACC@
36
37#----------------------------------------------------------------------------------------------------------------
38headers = fstream.hfa iostream.hfa iterator.hfa limits.hfa rational.hfa time.hfa stdlib.hfa common.hfa \
39 containers/maybe.hfa containers/pair.hfa containers/result.hfa containers/vector.hfa
40
41# not all platforms support concurrency, add option do disable it
42headers += concurrency/coroutine.hfa concurrency/thread.hfa concurrency/kernel.hfa concurrency/monitor.hfa concurrency/mutex.hfa
43
44libsrc = startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c heap.cfa ${headers:.hfa=.cfa}
45
46# not all platforms support concurrency, add option do disable it
47libsrc += concurrency/CtxSwitch-@ARCHITECTURE@.S concurrency/alarm.cfa concurrency/invoke.c concurrency/preemption.cfa
48
49#----------------------------------------------------------------------------------------------------------------
50# add dependency to cfa-cpp so all libraries are rebuilt with new translator
51#@CFACC@ @CFACPP@ prelude.cf
52
53# add dependency of cfa files
54libobjs = $(addsuffix .o, $(basename $(filter %.cfa,$(libsrc))))
55$(libobjs) : @CFACC@ @CFACPP@ prelude.cf
56
57
58# .deps inclusion is not done automatically by automake for new languages
59libdeps = $(join \
60 $(addsuffix $(DEPDIR)/ , $(dir $(libobjs) ) ), \
61 $(notdir ${libobjs:.o=.Po}) \
62)
63
64-include $(libdeps)
65
66prelude.o : prelude.cf extras.cf gcc-builtins.cf builtins.cf @CFACC@ @CFACPP@
67 ${AM_V_GEN}@CFACC@ ${AM_CFLAGS} ${CFLAGS} -in-tree -XCFA -l ${<} -c -o ${@}
68
69
70
71#----------------------------------------------------------------------------------------------------------------
72libcfa_a_SOURCES = prelude.o ${libsrc}
73
74stdhdr = ${shell find ${srcdir}/stdhdr -type f -printf "%p "}
75
76cfa_includedir = $(CFA_INCDIR)
77nobase_cfa_include_HEADERS = \
78 ${headers} \
79 ${stdhdr} \
80 math.hfa \
81 gmp.hfa \
82 time_t.hfa \
83 bits/align.hfa \
84 bits/containers.hfa \
85 bits/defs.hfa \
86 bits/debug.hfa \
87 bits/locks.hfa \
88 concurrency/invoke.h
89
90#----------------------------------------------------------------------------------------------------------------
91maintainer-clean-local:
92 -rm -rf ${CFA_INCDIR} ${CFA_LIBDIR}
93
94
95# $(AM_V_CFA)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
96# $(CFACOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
97# $(am__mv) $$depbase.Tpo $$depbase.Po
Note: See TracBrowser for help on using the repository browser.