Changeset 6d44da1 for libcfa/src/Makefile.am
- Timestamp:
- Sep 25, 2018, 11:35:34 AM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- c6bbcdb
- Parents:
- 341bb80 (diff), 7428ad9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/Makefile.am
r341bb80 r6d44da1 25 25 lib_LTLIBRARIES = libcfa.la 26 26 27 VPATH += :../prelude 28 27 29 # AM_CFLAGS for all cfa source 28 30 # AM_CFAFLAGS for only cfa source 29 31 # use -no-include-stdhdr to prevent rebuild cycles 30 32 # The built sources must not depend on the installed headers 31 AM_CFAFLAGS = -quiet -in-tree - imacros prelude.c -I$(srcdir)/stdhdr @CONFIG_CFAFLAGS@33 AM_CFAFLAGS = -quiet -in-tree -I$(srcdir)/stdhdr @CONFIG_CFAFLAGS@ 32 34 AM_CFLAGS = -g -Wall -Wno-unused-function -fPIC @ARCH_FLAGS@ @CONFIG_CFLAGS@ 33 35 AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ … … 35 37 36 38 #---------------------------------------------------------------------------------------------------------------- 39 if BUILDLIB 37 40 headers = fstream.hfa iostream.hfa iterator.hfa limits.hfa rational.hfa time.hfa stdlib.hfa common.hfa \ 38 41 containers/maybe.hfa containers/pair.hfa containers/result.hfa containers/vector.hfa 42 43 headers_nosrc = math.hfa gmp.hfa time_t.hfa bits/align.hfa bits/containers.hfa bits/defs.hfa bits/debug.hfa bits/locks.hfa 39 44 40 45 # not all platforms support concurrency, add option do disable it 41 46 headers += concurrency/coroutine.hfa concurrency/thread.hfa concurrency/kernel.hfa concurrency/monitor.hfa concurrency/mutex.hfa 42 47 48 headers_nosrc += concurrency/invoke.h 49 43 50 libobjs = ${headers:.hfa=.lo} 44 libsrc = prelude.c startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c heap.cfa \ 45 ${headers:.hfa=.cfa} 51 libsrc = startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c heap.cfa ${headers:.hfa=.cfa} 46 52 47 53 # not all platforms support concurrency, add option do disable it 48 54 libsrc += concurrency/CtxSwitch-@ARCHITECTURE@.S concurrency/alarm.cfa concurrency/invoke.c concurrency/preemption.cfa 55 else 56 headers = 57 headers_nosrc = 58 libsrc = 59 endif 60 49 61 50 62 #---------------------------------------------------------------------------------------------------------------- 51 63 # add dependency to cfa-cpp so all libraries are rebuilt with new translator 52 ${libobjs} : ${cfalib_DATA} 64 #@CFACC@ @CFACPP@ prelude.cfa 53 65 54 libcfa_la_SOURCES = ${libsrc} 66 # add dependency of cfa files 67 libobjs = $(addsuffix .lo, $(basename $(filter %.cfa,$(libsrc)))) 68 $(libobjs) : @CFACC@ @CFACPP@ prelude.cfa 69 70 71 # .deps inclusion is not done automatically by automake for new languages 72 libdeps = $(join \ 73 $(addsuffix $(DEPDIR)/ , $(dir $(libobjs) ) ), \ 74 $(notdir ${libobjs:.lo=.Po}) \ 75 ) 76 77 -include $(libdeps) 78 79 prelude.lo : prelude.cfa extras.cf gcc-builtins.cf builtins.cf @CFACC@ @CFACPP@ 80 ${AM_V_GEN}@CFACC@ ${AM_CFLAGS} ${CFLAGS} -quiet -in-tree -XCFA -l ${<} -c -o ${@} 81 82 83 84 #---------------------------------------------------------------------------------------------------------------- 85 libcfa_la_SOURCES = prelude.cfa ${libsrc} 55 86 56 87 stdhdr = $(shell find $(srcdir)/stdhdr -type f -printf "%p ") 57 88 58 89 cfa_includedir = $(CFA_INCDIR) 59 nobase_cfa_include_HEADERS = \ 60 ${headers} \ 61 ${stdhdr} \ 62 math.hfa \ 63 gmp.hfa \ 64 time_t.hfa \ 65 bits/align.hfa \ 66 bits/containers.hfa \ 67 bits/defs.hfa \ 68 bits/debug.hfa \ 69 bits/locks.hfa \ 70 concurrency/invoke.h 71 72 MOSTLYCLEANFILES = prelude.c 90 nobase_cfa_include_HEADERS = ${stdhdr} ${headers} ${headers_nosrc} 73 91 74 92 #---------------------------------------------------------------------------------------------------------------- 75 93 maintainer-clean-local: 76 94 -rm -rf ${CFA_INCDIR} ${CFA_LIBDIR} 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 TracChangeset
for help on using the changeset viewer.