Changes in libcfa/src/Makefile.am [0765121:575a6e5]
- File:
-
- 1 edited
-
libcfa/src/Makefile.am (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/Makefile.am
r0765121 r575a6e5 16 16 17 17 # create object files in directory with source files 18 AUTOMAKE_OPTIONS = foreignsubdir-objects19 A CLOCAL_AMFLAGS = -I automake18 AUTOMAKE_OPTIONS = subdir-objects 19 ARFLAGS = cr 20 20 21 21 include $(srcdir)/../../src/cfa.make 22 22 23 23 libdir = ${CFA_LIBDIR} 24 lib_LTLIBRARIES = libcfa.la 25 26 VPATH += :../prelude 24 lib_LIBRARIES = libcfa.a 27 25 28 26 # AM_CFLAGS for all cfa source … … 30 28 # use -no-include-stdhdr to prevent rebuild cycles 31 29 # The built sources must not depend on the installed headers 32 AM_CFAFLAGS = -quiet -in-tree - I$(srcdir)/stdhdr @CONFIG_CFAFLAGS@33 AM_CFLAGS = -g -Wall -Wno-unused-function -fPIC@ARCH_FLAGS@ @CONFIG_CFLAGS@30 AM_CFAFLAGS = -quiet -in-tree -imacros prelude.c -I$(srcdir)/stdhdr @CONFIG_CFAFLAGS@ 31 AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ 34 32 AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ 35 33 CFACC = @CFACC@ 36 34 37 35 #---------------------------------------------------------------------------------------------------------------- 38 if BUILDLIB39 headers_nosrc = math.hfa gmp.hfa time_t.hfa bits/align.hfa bits/containers.hfa bits/defs.hfa bits/debug.hfa bits/locks.hfa40 36 headers = fstream.hfa iostream.hfa iterator.hfa limits.hfa rational.hfa time.hfa stdlib.hfa common.hfa \ 41 37 containers/maybe.hfa containers/pair.hfa containers/result.hfa containers/vector.hfa 42 38 43 39 # not all platforms support concurrency, add option do disable it 44 headers_nosrc += concurrency/invoke.h45 40 headers += concurrency/coroutine.hfa concurrency/thread.hfa concurrency/kernel.hfa concurrency/monitor.hfa concurrency/mutex.hfa 46 41 47 libsrc = startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c heap.cfa ${headers:.hfa=.cfa} 42 libobjs = ${headers:.hfa=.o} 43 libsrc = prelude.c startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c heap.cfa \ 44 ${headers:.hfa=.cfa} 48 45 49 46 # not all platforms support concurrency, add option do disable it 50 47 libsrc += concurrency/CtxSwitch-@ARCHITECTURE@.S concurrency/alarm.cfa concurrency/invoke.c concurrency/preemption.cfa 51 else52 headers =53 headers_nosrc =54 libsrc =55 endif56 57 48 58 49 #---------------------------------------------------------------------------------------------------------------- 59 50 # add dependency to cfa-cpp so all libraries are rebuilt with new translator 60 #@CFACC@ @CFACPP@ prelude.cfa 51 ${libobjs} : ${cfalib_DATA} 61 52 62 # add dependency of cfa files 63 libobjs = $(addsuffix .lo, $(basename $(filter %.cfa,$(libsrc)))) 64 $(libobjs) : @CFACC@ @CFACPP@ prelude.cfa 53 libcfa_a_SOURCES = ${libsrc} 65 54 66 67 # .deps inclusion is not done automatically by automake for new languages 68 libdeps = $(join \ 69 $(addsuffix $(DEPDIR)/ , $(dir $(libobjs) ) ), \ 70 $(notdir ${libobjs:.lo=.Plo}) \ 71 ) 72 73 -include $(libdeps) 74 75 prelude.o : prelude.cfa extras.cf gcc-builtins.cf builtins.cf @CFACC@ @CFACPP@ 76 ${AM_V_GEN}@CFACC@ ${AM_CFLAGS} ${CFLAGS} -quiet -in-tree @CONFIG_CFAFLAGS@ -XCFA -l ${<} -c -o ${@} 77 78 prelude.lo: prelude.cfa extras.cf gcc-builtins.cf builtins.cf @CFACC@ @CFACPP@ 79 ${AM_V_GEN}$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile \ 80 @CFACC@ ${AM_CFLAGS} ${CFLAGS} -quiet -in-tree @CONFIG_CFAFLAGS@ -XCFA -l ${<} -c -o ${@} 81 82 83 #---------------------------------------------------------------------------------------------------------------- 84 libcfa_la_SOURCES = prelude.cfa ${libsrc} 85 libcfa_la_LDFLAGS = -version-info @CFA_VERSION@ 86 87 stdhdr = $(shell find $(srcdir)/stdhdr -type f -printf "%p ") 55 stdhdr = ${shell find ${srcdir}/stdhdr -type f -printf "%p "} 88 56 89 57 cfa_includedir = $(CFA_INCDIR) 90 nobase_cfa_include_HEADERS = ${stdhdr} ${headers} ${headers_nosrc} 58 nobase_cfa_include_HEADERS = \ 59 ${headers} \ 60 ${stdhdr} \ 61 math.hfa \ 62 gmp.hfa \ 63 time_t.hfa \ 64 bits/align.hfa \ 65 bits/containers.hfa \ 66 bits/defs.hfa \ 67 bits/debug.hfa \ 68 bits/locks.hfa \ 69 concurrency/invoke.h 70 71 MOSTLYCLEANFILES = prelude.c 91 72 92 73 #---------------------------------------------------------------------------------------------------------------- 93 74 maintainer-clean-local: 94 75 -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.