Changes in / [210587b:7fb1db7]


Ignore:
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • configure

    r210587b r7fb1db7  
    658658CFA_INCDIR
    659659CFA_PREFIX
    660 BUILD_CONCURRENCY_FALSE
    661 BUILD_CONCURRENCY_TRUE
    662660BUILD_NO_LIB_FALSE
    663661BUILD_NO_LIB_TRUE
     
    744742enable_target_release
    745743enable_target_debug
    746 enable_threading
    747744enable_dependency_tracking
    748745'
     
    13891386  --enable-target-release Build and install the release target
    13901387  --enable-target-debug   Build and install the debug target
    1391   --enable-threading      Build and install libcfa with threading support
    1392                           (Enabled by default)
    13931388  --disable-dependency-tracking  speeds up one-time build
    13941389  --enable-dependency-tracking   do not reject slow dependency extractors
     
    31283123fi
    31293124
    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 
    31413125
    31423126case "$enable_target_release" in
     
    32133197  BUILD_NO_LIB_TRUE='#'
    32143198  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=
    32233199fi
    32243200
     
    63426318if test -z "${BUILD_NO_LIB_TRUE}" && test -z "${BUILD_NO_LIB_FALSE}"; then
    63436319  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.
    63486320Usually this means the macro was only invoked conditionally." "$LINENO" 5
    63496321fi
  • configure.ac

    r210587b r7fb1db7  
    5757AC_ARG_ENABLE(target-release, AS_HELP_STRING([--enable-target-release], [Build and install the release target]))
    5858AC_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"])
    6559
    6660case "$enable_target_release" in
     
    118112AM_CONDITIONAL([BUILD_DEBUG], [test "x$build_debug" = "xyes"])
    119113AM_CONDITIONAL([BUILD_NO_LIB], [test "x$build_release$build_debug" = "xnono"])
    120 AM_CONDITIONAL([BUILD_CONCURRENCY], [test "x$build_threading" = "xyes"])
    121114
    122115if test "x$prefix" = "xNONE"; then
  • src/libcfa/Makefile.am

    r210587b r7fb1db7  
    4040CC = ${abs_top_srcdir}/src/driver/cfa
    4141
    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 
     42headers = limits stdlib math iostream fstream iterator rational assert containers/vector concurrency/coroutines concurrency/threads concurrency/kernel
     43runtimehdrs = concurrency
    4944libobjs = ${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
    5645
    5746# extensionless header files are overridden by -o flag in default makerule => explicitly override default rule to silently do nothing
     
    6756${libobjs} : ${abs_top_srcdir}/src/driver/cfa-cpp ${cfalib_DATA} # add dependency to cfa-cpp so all libraries are rebuilt with new translator
    6857
     58libsrc = libcfa-prelude.c ${headers:=.c} concurrency/CtxSwitch-@MACHINE_TYPE@.S concurrency/invoke.c
    6959
    7060libcfa_a_SOURCES = ${libsrc}
  • src/libcfa/Makefile.in

    r210587b r7fb1db7  
    4141@BUILD_RELEASE_TRUE@am__append_1 = libcfa.a
    4242@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
    4943subdir = src/libcfa
    50 DIST_COMMON = $(am__nobase_cfa_include_HEADERS_DIST) \
    51         $(srcdir)/Makefile.am $(srcdir)/Makefile.in
     44DIST_COMMON = $(nobase_cfa_include_HEADERS) $(srcdir)/Makefile.am \
     45        $(srcdir)/Makefile.in
    5246ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    5347am__aclocal_m4_deps = $(top_srcdir)/configure.ac
     
    9791libcfa_d_a_AR = $(AR) $(ARFLAGS)
    9892libcfa_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
    10493am__dirstamp = $(am__leading_dot)dirstamp
    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) \
     94am__objects_1 = libcfa_d_a-limits.$(OBJEXT) \
    11095        libcfa_d_a-stdlib.$(OBJEXT) libcfa_d_a-math.$(OBJEXT) \
    11196        libcfa_d_a-iostream.$(OBJEXT) libcfa_d_a-fstream.$(OBJEXT) \
    11297        libcfa_d_a-iterator.$(OBJEXT) libcfa_d_a-rational.$(OBJEXT) \
    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)
     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)
     103am__objects_2 = libcfa_d_a-libcfa-prelude.$(OBJEXT) $(am__objects_1) \
     104        concurrency/CtxSwitch-@MACHINE_TYPE@.$(OBJEXT) \
     105        concurrency/libcfa_d_a-invoke.$(OBJEXT)
     106am_libcfa_d_a_OBJECTS = $(am__objects_2)
    119107libcfa_d_a_OBJECTS = $(am_libcfa_d_a_OBJECTS)
    120108libcfa_a_AR = $(AR) $(ARFLAGS)
    121109libcfa_a_LIBADD =
    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) \
     110am__objects_3 = libcfa_a-limits.$(OBJEXT) libcfa_a-stdlib.$(OBJEXT) \
    133111        libcfa_a-math.$(OBJEXT) libcfa_a-iostream.$(OBJEXT) \
    134112        libcfa_a-fstream.$(OBJEXT) libcfa_a-iterator.$(OBJEXT) \
    135113        libcfa_a-rational.$(OBJEXT) libcfa_a-assert.$(OBJEXT) \
    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)
     114        containers/libcfa_a-vector.$(OBJEXT) \
     115        concurrency/libcfa_a-coroutines.$(OBJEXT) \
     116        concurrency/libcfa_a-threads.$(OBJEXT) \
     117        concurrency/libcfa_a-kernel.$(OBJEXT)
     118am__objects_4 = libcfa_a-libcfa-prelude.$(OBJEXT) $(am__objects_3) \
     119        concurrency/CtxSwitch-@MACHINE_TYPE@.$(OBJEXT) \
     120        concurrency/libcfa_a-invoke.$(OBJEXT)
     121am_libcfa_a_OBJECTS = $(am__objects_4)
    142122libcfa_a_OBJECTS = $(am_libcfa_a_OBJECTS)
    143123DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
     
    167147am__v_GEN_0 = @echo "  GEN   " $@;
    168148SOURCES = $(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
     149DIST_SOURCES = $(libcfa_d_a_SOURCES) $(libcfa_a_SOURCES)
    175150HEADERS = $(nobase_cfa_include_HEADERS)
    176151ETAGS = etags
     
    301276EXTRA_FLAGS = -g -Wall -Wno-unused-function -I${abs_top_srcdir}/src/libcfa/libhdr -imacros libcfa-prelude.c @CFA_FLAGS@
    302277AM_CCASFLAGS = @CFA_FLAGS@
    303 headers = limits stdlib math iostream fstream iterator rational assert \
    304         $(am__append_3)
     278headers = limits stdlib math iostream fstream iterator rational assert containers/vector concurrency/coroutines concurrency/threads concurrency/kernel
     279runtimehdrs = concurrency
    305280libobjs = ${headers:=.o}
    306 libsrc = libcfa-prelude.c ${headers:=.c} $(am__append_4)
     281libsrc = libcfa-prelude.c ${headers:=.c} concurrency/CtxSwitch-@MACHINE_TYPE@.S concurrency/invoke.c
    307282libcfa_a_SOURCES = ${libsrc}
    308283libcfa_a_CFLAGS = -nodebug -O2
Note: See TracChangeset for help on using the changeset viewer.