Changes in / [a98b2cc:3bff885]
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
configure
ra98b2cc r3bff885 658 658 CFA_INCDIR 659 659 CFA_PREFIX 660 BUILD_CONCURRENCY_FALSE 661 BUILD_CONCURRENCY_TRUE 660 662 BUILD_NO_LIB_FALSE 661 663 BUILD_NO_LIB_TRUE … … 742 744 enable_target_release 743 745 enable_target_debug 746 enable_threading 744 747 enable_dependency_tracking 745 748 ' … … 1386 1389 --enable-target-release Build and install the release target 1387 1390 --enable-target-debug Build and install the debug target 1391 --enable-threading Build and install libcfa with threading support 1392 (Enabled by default) 1388 1393 --disable-dependency-tracking speeds up one-time build 1389 1394 --enable-dependency-tracking do not reject slow dependency extractors … … 3123 3128 fi 3124 3129 3130 # Check whether --enable-threading was given. 3131 if test "${enable_threading+set}" = set; then : 3132 enableval=$enable_threading; case "${enableval}" in 3133 yes) build_threading-"yes" ;; 3134 no) build_threading="no" ;; 3135 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;; 3136 esac 3137 else 3138 build_threading="yes" 3139 fi 3140 3125 3141 3126 3142 case "$enable_target_release" in … … 3197 3213 BUILD_NO_LIB_TRUE='#' 3198 3214 BUILD_NO_LIB_FALSE= 3215 fi 3216 3217 if test "x$build_threading" = "xyes"; then 3218 BUILD_CONCURRENCY_TRUE= 3219 BUILD_CONCURRENCY_FALSE='#' 3220 else 3221 BUILD_CONCURRENCY_TRUE='#' 3222 BUILD_CONCURRENCY_FALSE= 3199 3223 fi 3200 3224 … … 6318 6342 if test -z "${BUILD_NO_LIB_TRUE}" && test -z "${BUILD_NO_LIB_FALSE}"; then 6319 6343 as_fn_error $? "conditional \"BUILD_NO_LIB\" was never defined. 6344 Usually this means the macro was only invoked conditionally." "$LINENO" 5 6345 fi 6346 if test -z "${BUILD_CONCURRENCY_TRUE}" && test -z "${BUILD_CONCURRENCY_FALSE}"; then 6347 as_fn_error $? "conditional \"BUILD_CONCURRENCY\" was never defined. 6320 6348 Usually this means the macro was only invoked conditionally." "$LINENO" 5 6321 6349 fi -
configure.ac
ra98b2cc r3bff885 57 57 AC_ARG_ENABLE(target-release, AS_HELP_STRING([--enable-target-release], [Build and install the release target])) 58 58 AC_ARG_ENABLE(target-debug, AS_HELP_STRING([--enable-target-debug], [Build and install the debug target])) 59 AC_ARG_ENABLE(threading, AS_HELP_STRING([--enable-threading], [Build and install libcfa with threading support (Enabled by default)]), 60 [case "${enableval}" in 61 yes) build_threading-"yes" ;; 62 no) build_threading="no" ;; 63 *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;; 64 esac],[build_threading="yes"]) 59 65 60 66 case "$enable_target_release" in … … 112 118 AM_CONDITIONAL([BUILD_DEBUG], [test "x$build_debug" = "xyes"]) 113 119 AM_CONDITIONAL([BUILD_NO_LIB], [test "x$build_release$build_debug" = "xnono"]) 120 AM_CONDITIONAL([BUILD_CONCURRENCY], [test "x$build_threading" = "xyes"]) 114 121 115 122 if test "x$prefix" = "xNONE"; then -
src/libcfa/Makefile.am
ra98b2cc r3bff885 40 40 CC = ${abs_top_srcdir}/src/driver/cfa 41 41 42 headers = limits stdlib math iostream fstream iterator rational assert containers/vector concurrency/coroutines concurrency/threads concurrency/kernel 43 runtimehdrs = concurrency 42 headers = limits stdlib math iostream fstream iterator rational assert 43 44 # not all platforms support concurrency, add option do disable it 45 if BUILD_CONCURRENCY 46 headers += containers/vector concurrency/coroutines concurrency/threads concurrency/kernel 47 endif 48 44 49 libobjs = ${headers:=.o} 50 libsrc = libcfa-prelude.c ${headers:=.c} 51 52 # not all platforms support concurrency, add option do disable it 53 if BUILD_CONCURRENCY 54 libsrc += concurrency/CtxSwitch-@MACHINE_TYPE@.S concurrency/invoke.c 55 endif 45 56 46 57 # extensionless header files are overridden by -o flag in default makerule => explicitly override default rule to silently do nothing … … 56 67 ${libobjs} : ${abs_top_srcdir}/src/driver/cfa-cpp ${cfalib_DATA} # add dependency to cfa-cpp so all libraries are rebuilt with new translator 57 68 58 libsrc = libcfa-prelude.c ${headers:=.c} concurrency/CtxSwitch-@MACHINE_TYPE@.S concurrency/invoke.c59 69 60 70 libcfa_a_SOURCES = ${libsrc} -
src/libcfa/Makefile.in
ra98b2cc r3bff885 41 41 @BUILD_RELEASE_TRUE@am__append_1 = libcfa.a 42 42 @BUILD_DEBUG_TRUE@am__append_2 = libcfa-d.a 43 44 # not all platforms support concurrency, add option do disable it 45 @BUILD_CONCURRENCY_TRUE@am__append_3 = containers/vector concurrency/coroutines concurrency/threads concurrency/kernel 46 47 # not all platforms support concurrency, add option do disable it 48 @BUILD_CONCURRENCY_TRUE@am__append_4 = concurrency/CtxSwitch-@MACHINE_TYPE@.S concurrency/invoke.c 43 49 subdir = src/libcfa 44 DIST_COMMON = $( nobase_cfa_include_HEADERS) $(srcdir)/Makefile.am\45 $(srcdir)/Makefile. in50 DIST_COMMON = $(am__nobase_cfa_include_HEADERS_DIST) \ 51 $(srcdir)/Makefile.am $(srcdir)/Makefile.in 46 52 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 47 53 am__aclocal_m4_deps = $(top_srcdir)/configure.ac … … 91 97 libcfa_d_a_AR = $(AR) $(ARFLAGS) 92 98 libcfa_d_a_LIBADD = 99 am__libcfa_d_a_SOURCES_DIST = libcfa-prelude.c limits.c stdlib.c \ 100 math.c iostream.c fstream.c iterator.c rational.c assert.c \ 101 containers/vector.c concurrency/coroutines.c \ 102 concurrency/threads.c concurrency/kernel.c \ 103 concurrency/CtxSwitch-@MACHINE_TYPE@.S concurrency/invoke.c 93 104 am__dirstamp = $(am__leading_dot)dirstamp 94 am__objects_1 = libcfa_d_a-limits.$(OBJEXT) \ 105 @BUILD_CONCURRENCY_TRUE@am__objects_1 = containers/libcfa_d_a-vector.$(OBJEXT) \ 106 @BUILD_CONCURRENCY_TRUE@ concurrency/libcfa_d_a-coroutines.$(OBJEXT) \ 107 @BUILD_CONCURRENCY_TRUE@ concurrency/libcfa_d_a-threads.$(OBJEXT) \ 108 @BUILD_CONCURRENCY_TRUE@ concurrency/libcfa_d_a-kernel.$(OBJEXT) 109 am__objects_2 = libcfa_d_a-limits.$(OBJEXT) \ 95 110 libcfa_d_a-stdlib.$(OBJEXT) libcfa_d_a-math.$(OBJEXT) \ 96 111 libcfa_d_a-iostream.$(OBJEXT) libcfa_d_a-fstream.$(OBJEXT) \ 97 112 libcfa_d_a-iterator.$(OBJEXT) libcfa_d_a-rational.$(OBJEXT) \ 98 libcfa_d_a-assert.$(OBJEXT) \ 99 containers/libcfa_d_a-vector.$(OBJEXT) \ 100 concurrency/libcfa_d_a-coroutines.$(OBJEXT) \ 101 concurrency/libcfa_d_a-threads.$(OBJEXT) \ 102 concurrency/libcfa_d_a-kernel.$(OBJEXT) 103 am__objects_2 = libcfa_d_a-libcfa-prelude.$(OBJEXT) $(am__objects_1) \ 104 concurrency/CtxSwitch-@MACHINE_TYPE@.$(OBJEXT) \ 105 concurrency/libcfa_d_a-invoke.$(OBJEXT) 106 am_libcfa_d_a_OBJECTS = $(am__objects_2) 113 libcfa_d_a-assert.$(OBJEXT) $(am__objects_1) 114 @BUILD_CONCURRENCY_TRUE@am__objects_3 = concurrency/CtxSwitch-@MACHINE_TYPE@.$(OBJEXT) \ 115 @BUILD_CONCURRENCY_TRUE@ concurrency/libcfa_d_a-invoke.$(OBJEXT) 116 am__objects_4 = libcfa_d_a-libcfa-prelude.$(OBJEXT) $(am__objects_2) \ 117 $(am__objects_3) 118 am_libcfa_d_a_OBJECTS = $(am__objects_4) 107 119 libcfa_d_a_OBJECTS = $(am_libcfa_d_a_OBJECTS) 108 120 libcfa_a_AR = $(AR) $(ARFLAGS) 109 121 libcfa_a_LIBADD = 110 am__objects_3 = libcfa_a-limits.$(OBJEXT) libcfa_a-stdlib.$(OBJEXT) \ 122 am__libcfa_a_SOURCES_DIST = libcfa-prelude.c limits.c stdlib.c math.c \ 123 iostream.c fstream.c iterator.c rational.c assert.c \ 124 containers/vector.c concurrency/coroutines.c \ 125 concurrency/threads.c concurrency/kernel.c \ 126 concurrency/CtxSwitch-@MACHINE_TYPE@.S concurrency/invoke.c 127 @BUILD_CONCURRENCY_TRUE@am__objects_5 = \ 128 @BUILD_CONCURRENCY_TRUE@ containers/libcfa_a-vector.$(OBJEXT) \ 129 @BUILD_CONCURRENCY_TRUE@ concurrency/libcfa_a-coroutines.$(OBJEXT) \ 130 @BUILD_CONCURRENCY_TRUE@ concurrency/libcfa_a-threads.$(OBJEXT) \ 131 @BUILD_CONCURRENCY_TRUE@ concurrency/libcfa_a-kernel.$(OBJEXT) 132 am__objects_6 = libcfa_a-limits.$(OBJEXT) libcfa_a-stdlib.$(OBJEXT) \ 111 133 libcfa_a-math.$(OBJEXT) libcfa_a-iostream.$(OBJEXT) \ 112 134 libcfa_a-fstream.$(OBJEXT) libcfa_a-iterator.$(OBJEXT) \ 113 135 libcfa_a-rational.$(OBJEXT) libcfa_a-assert.$(OBJEXT) \ 114 containers/libcfa_a-vector.$(OBJEXT) \ 115 concurrency/libcfa_a-coroutines.$(OBJEXT) \ 116 concurrency/libcfa_a-threads.$(OBJEXT) \ 117 concurrency/libcfa_a-kernel.$(OBJEXT) 118 am__objects_4 = libcfa_a-libcfa-prelude.$(OBJEXT) $(am__objects_3) \ 119 concurrency/CtxSwitch-@MACHINE_TYPE@.$(OBJEXT) \ 120 concurrency/libcfa_a-invoke.$(OBJEXT) 121 am_libcfa_a_OBJECTS = $(am__objects_4) 136 $(am__objects_5) 137 @BUILD_CONCURRENCY_TRUE@am__objects_7 = concurrency/CtxSwitch-@MACHINE_TYPE@.$(OBJEXT) \ 138 @BUILD_CONCURRENCY_TRUE@ concurrency/libcfa_a-invoke.$(OBJEXT) 139 am__objects_8 = libcfa_a-libcfa-prelude.$(OBJEXT) $(am__objects_6) \ 140 $(am__objects_7) 141 am_libcfa_a_OBJECTS = $(am__objects_8) 122 142 libcfa_a_OBJECTS = $(am_libcfa_a_OBJECTS) 123 143 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) … … 147 167 am__v_GEN_0 = @echo " GEN " $@; 148 168 SOURCES = $(libcfa_d_a_SOURCES) $(libcfa_a_SOURCES) 149 DIST_SOURCES = $(libcfa_d_a_SOURCES) $(libcfa_a_SOURCES) 169 DIST_SOURCES = $(am__libcfa_d_a_SOURCES_DIST) \ 170 $(am__libcfa_a_SOURCES_DIST) 171 am__nobase_cfa_include_HEADERS_DIST = limits stdlib math iostream \ 172 fstream iterator rational assert containers/vector \ 173 concurrency/coroutines concurrency/threads concurrency/kernel \ 174 ${shell echo stdhdr/*} concurrency/invoke.h 150 175 HEADERS = $(nobase_cfa_include_HEADERS) 151 176 ETAGS = etags … … 276 301 EXTRA_FLAGS = -g -Wall -Wno-unused-function -I${abs_top_srcdir}/src/libcfa/libhdr -imacros libcfa-prelude.c @CFA_FLAGS@ 277 302 AM_CCASFLAGS = @CFA_FLAGS@ 278 headers = limits stdlib math iostream fstream iterator rational assert containers/vector concurrency/coroutines concurrency/threads concurrency/kernel279 runtimehdrs = concurrency 303 headers = limits stdlib math iostream fstream iterator rational assert \ 304 $(am__append_3) 280 305 libobjs = ${headers:=.o} 281 libsrc = libcfa-prelude.c ${headers:=.c} concurrency/CtxSwitch-@MACHINE_TYPE@.S concurrency/invoke.c306 libsrc = libcfa-prelude.c ${headers:=.c} $(am__append_4) 282 307 libcfa_a_SOURCES = ${libsrc} 283 308 libcfa_a_CFLAGS = -nodebug -O2
Note: See TracChangeset
for help on using the changeset viewer.