Changeset ff1e0f38


Ignore:
Timestamp:
Aug 3, 2018, 1:57:12 PM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
ba9baad
Parents:
c59712e
Message:

configure flags are now propagated properly to libcfa

Files:
2 added
18 edited

Legend:

Unmodified
Added
Removed
  • Makefile.am

    rc59712e rff1e0f38  
    2323SUBDIRS = driver src . @LIBCFA_TARGET_DIRS@
    2424
    25 @LIBCFA_TARGET_MAKEFILES@ :
    26         ls $(dir $@)/config.data || (echo "Missing config.data, re-run configure script again" && false)
    27         cd $(dir $@) && $(abs_top_srcdir)/libcfa/configure $(cat config.data)
     25@LIBCFA_TARGET_MAKEFILES@ : Makefile
     26        @$(eval config_file = $(dir $@)config.data)
     27        @ls $(config_file) || (echo "Missing config.data, re-run configure script again" && false)
     28        @$(eval config_data = $(shell cat $(config_file)))
     29        @echo "Configuring libcfa with '$(config_data)''"
     30        @cd $(dir $@) && $(abs_top_srcdir)/libcfa/configure $(config_data)
    2831
    2932noinst_DATA = @LIBCFA_TARGET_MAKEFILES@
  • Makefile.in

    rc59712e rff1e0f38  
    253253BACKEND_CC = @BACKEND_CC@     # C compiler used to compile Cforall programs, versus C++ compiler used to build cfa command
    254254BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@
    255 BUILD_IN_TREE_FLAGS_NOLIB = @BUILD_IN_TREE_FLAGS_NOLIB@
    256255CC = @CC@
    257256CCAS = @CCAS@
     
    894893 # order important
    895894
    896 @LIBCFA_TARGET_MAKEFILES@ :
    897         ls $(dir $@)/config.data || (echo "Missing config.data, re-run configure script again" && false)
    898         cd $(dir $@) && $(abs_top_srcdir)/libcfa/configure $(cat config.data)
     895@LIBCFA_TARGET_MAKEFILES@ : Makefile
     896        @$(eval config_file = $(dir $@)config.data)
     897        @ls $(config_file) || (echo "Missing config.data, re-run configure script again" && false)
     898        @$(eval config_data = $(shell cat $(config_file)))
     899        @echo "Configuring libcfa with '$(config_data)''"
     900        @cd $(dir $@) && $(abs_top_srcdir)/libcfa/configure $(config_data)
    899901
    900902# Tell versions [3.59,3.63) of GNU make to not export all variables.
  • benchmark/Makefile.in

    rc59712e rff1e0f38  
    136136BACKEND_CC = @BACKEND_CC@
    137137BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@
    138 BUILD_IN_TREE_FLAGS_NOLIB = @BUILD_IN_TREE_FLAGS_NOLIB@
    139138CC = @CFACC@
    140139CCAS = @CCAS@
  • configure

    rc59712e rff1e0f38  
    665665CXX
    666666CFA_FLAGS
     667LIBCFA_TARGET_MAKEFILES
     668LIBCFA_TARGET_DIRS
     669TARGET_HOSTS
     670host_os
     671host_vendor
     672host_cpu
     673host
     674build_os
     675build_vendor
     676build_cpu
     677build
    667678BUILD_IN_TREE_FLAGS
    668 BUILD_IN_TREE_FLAGS_NOLIB
    669679CFACPP
    670680CFACC
     
    678688DOendif
    679689DOifskipcompile
    680 LIBCFA_TARGET_MAKEFILES
    681 LIBCFA_TARGET_DIRS
    682 TARGET_HOSTS
    683 host_os
    684 host_vendor
    685 host_cpu
    686 host
    687 build_os
    688 build_vendor
    689 build_cpu
    690 build
    691690CFA_NAME
    692691am__untar
     
    761760enable_silent_rules
    762761with_cfa_name
     762with_backend_compiler
    763763with_target_hosts
    764 with_backend_compiler
    765764enable_dependency_tracking
    766765'
     
    14211420  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    14221421  --with-cfa-name=NAME     NAME too which cfa will be installed
     1422  --with-backend-compiler=PROGRAM     PROGRAM that performs the final code compilation (must be gcc-compatible)
    14231423  --with-target-hosts=HOSTS     HOSTS comma seperated list of hosts to build for, format ARCH:debug|nodebug|nolib
    1424   --with-backend-compiler=PROGRAM     PROGRAM that performs the final code compilation (must be gcc-compatible)
    14251424
    14261425Some influential environment variables:
     
    30863085
    30873086
    3088 #==============================================================================
    3089 # handle the list of hosts to build for
    3090 for var in $ac_configure_args
    3091 do
    3092         #strip quotes surrouding values
    3093         var=$(echo $var | sed s/\'//g)
    3094         case $var in
    3095                 # skip cross compilation related arguments
    3096                 --host=*) ;; host_alias=*) ;; --build=*) ;; build_alias=*) ;; --target=*) ;; target_alias=*) ;;
    3097 
    3098                 # append all other arguments to the sub configure arguments
    3099                 *) LIBCFA_GENERAL_ARGS="${LIBCFA_GENERAL_ARGS} $var";;
    3100         esac
    3101 done
    3102 
    3103 echo $LIBCFA_GENERAL_ARGS
    3104 
    3105 #==============================================================================
    3106 # handle the list of hosts to build for
    3107 # Make sure we can run config.sub.
    3108 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
    3109   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
    3110 
    3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
    3112 $as_echo_n "checking build system type... " >&6; }
    3113 if ${ac_cv_build+:} false; then :
    3114   $as_echo_n "(cached) " >&6
    3115 else
    3116   ac_build_alias=$build_alias
    3117 test "x$ac_build_alias" = x &&
    3118   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
    3119 test "x$ac_build_alias" = x &&
    3120   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
    3121 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
    3122   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
    3123 
    3124 fi
    3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
    3126 $as_echo "$ac_cv_build" >&6; }
    3127 case $ac_cv_build in
    3128 *-*-*) ;;
    3129 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
    3130 esac
    3131 build=$ac_cv_build
    3132 ac_save_IFS=$IFS; IFS='-'
    3133 set x $ac_cv_build
    3134 shift
    3135 build_cpu=$1
    3136 build_vendor=$2
    3137 shift; shift
    3138 # Remember, the first character of IFS is used to create $*,
    3139 # except with old shells:
    3140 build_os=$*
    3141 IFS=$ac_save_IFS
    3142 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
    3143 
    3144 
    3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
    3146 $as_echo_n "checking host system type... " >&6; }
    3147 if ${ac_cv_host+:} false; then :
    3148   $as_echo_n "(cached) " >&6
    3149 else
    3150   if test "x$host_alias" = x; then
    3151   ac_cv_host=$ac_cv_build
    3152 else
    3153   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
    3154     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
    3155 fi
    3156 
    3157 fi
    3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
    3159 $as_echo "$ac_cv_host" >&6; }
    3160 case $ac_cv_host in
    3161 *-*-*) ;;
    3162 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
    3163 esac
    3164 host=$ac_cv_host
    3165 ac_save_IFS=$IFS; IFS='-'
    3166 set x $ac_cv_host
    3167 shift
    3168 host_cpu=$1
    3169 host_vendor=$2
    3170 shift; shift
    3171 # Remember, the first character of IFS is used to create $*,
    3172 # except with old shells:
    3173 host_os=$*
    3174 IFS=$ac_save_IFS
    3175 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
    3176 
    3177 
    3178 
    3179 default_target="${host_cpu}:debug, ${host_cpu}:nodebug"
    3180 
    3181 # Check whether --with-target-hosts was given.
    3182 if test "${with_target_hosts+set}" = set; then :
    3183   withval=$with_target_hosts; target_hosts=$withval
    3184 else
    3185   target_hosts=${default_target}
    3186 fi
    3187 
    3188 
    3189 TARGET_HOSTS=${target_hosts}
    3190 
    3191 
    3192 for i in $(echo $target_hosts | sed "s/,/ /g")
    3193 do
    3194         # call your procedure/other scripts here below
    3195         lib_arch=$(echo $i | sed -r "s/:(.*)//g")
    3196         lib_config=$(echo $i | sed -r "s/(.*)://g")
    3197         lib_dir="libcfa-${lib_arch}-${lib_config}"
    3198 
    3199         LIBCFA_TARGET_DIRS="${LIBCFA_TARGET_DIRS} ${lib_dir}"
    3200         LIBCFA_TARGET_MAKEFILES="${LIBCFA_TARGET_MAKEFILES} ${lib_dir}/Makefile"
    3201 
    3202         mkdir -p libcfa-${lib_arch}-${lib_config}
    3203         echo -n "${LIBCFA_GENERAL_ARGS} " > libcfa-${lib_arch}-${lib_config}/config.data
    3204         echo -n "--host=${lib_arch} " >> libcfa-${lib_arch}-${lib_config}/config.data
    3205         echo -n "CONFIGURATION=${lib_config}" >> libcfa-${lib_arch}-${lib_config}/config.data
    3206 done
    3207 
    3208 
    3209 
    3210 
    32113087
    32123088#==============================================================================
     
    33953271#==============================================================================
    33963272# Create variables for commonly used targets
    3397 DRIVER_DIR='$(top_builddir)/driver'
    3398 CFACC=${DRIVER_DIR}/cfa
    3399 CFACPP=${DRIVER_DIR}/cfa-cpp
    3400 
    3401 
     3273
     3274TOP_SRCDIR=$ac_pwd/$ac_confdir/
     3275TOP_BUILDDIR=$ac_pwd/
     3276PRELUDE_BUILDDIR=$ac_pwd/libcfa-x86_64-debug/prelude/
    34023277
    34033278
    34043279cat >>confdefs.h <<_ACEOF
    3405 #define TOP_SRCDIR "$ac_pwd/$ac_confdir/"
     3280#define TOP_SRCDIR "$TOP_SRCDIR"
    34063281_ACEOF
    34073282
    34083283
    34093284cat >>confdefs.h <<_ACEOF
    3410 #define TOP_BUILDDIR "$ac_pwd/"
     3285#define TOP_BUILDDIR "$TOP_BUILDDIR"
    34113286_ACEOF
    34123287
    34133288
    34143289cat >>confdefs.h <<_ACEOF
    3415 #define PRELUDE_BUILDDIR "$ac_pwd/libcfa/prelude/"
    3416 _ACEOF
     3290#define PRELUDE_BUILDDIR "$PRELUDE_BUILDDIR"
     3291_ACEOF
     3292
     3293
     3294DRIVER_DIR=${TOP_BUILDDIR}driver/
     3295CFACC=${DRIVER_DIR}cfa
     3296CFACPP=${DRIVER_DIR}cfa-cpp
     3297
     3298
    34173299
    34183300
    34193301#==============================================================================
    34203302# Flag variables needed to build in tree
    3421 LIBCFA_SRC='$(top_srcdir)/libcfa/src'
    3422 LIBCFA_BUILD='$(top_builddir)/libcfa/src'
    3423 BUILD_IN_TREE_FLAGS_NOLIB="-XCFA -t -B${DRIVER_DIR}"
    3424 BUILD_IN_TREE_FLAGS="${BUILD_IN_TREE_FLAGS_NOLIB} -L${LIBCFA_BUILD} -I${LIBCFA_SRC} -I${LIBCFA_SRC}/containers -I${LIBCFA_SRC}/concurrency -I${LIBCFA_SRC}/stdhdr"
     3303LIBCFA_SRC='${TOP_SRCDIR}/libcfa/src'
     3304BUILD_IN_TREE_FLAGS="-XCFA -t -B${DRIVER_DIR}"
     3305
     3306
     3307#==============================================================================
     3308# handle the list of hosts to build for
     3309for var in $ac_configure_args
     3310do
     3311        #strip quotes surrouding values
     3312        var=$(echo $var | sed s/\'//g)
     3313        case $var in
     3314                # skip cross compilation related arguments
     3315                --host=*) ;; host_alias=*) ;; --build=*) ;; build_alias=*) ;; --target=*) ;; target_alias=*) ;;
     3316
     3317                # skip the target hosts
     3318                --with-target-hosts=*) ;;
     3319
     3320                # append all other arguments to the sub configure arguments
     3321                *) LIBCFA_GENERAL_ARGS="${LIBCFA_GENERAL_ARGS} $var";;
     3322        esac
     3323done
     3324
     3325#==============================================================================
     3326# handle the list of hosts to build for
     3327# Make sure we can run config.sub.
     3328$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
     3329  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
     3330
     3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
     3332$as_echo_n "checking build system type... " >&6; }
     3333if ${ac_cv_build+:} false; then :
     3334  $as_echo_n "(cached) " >&6
     3335else
     3336  ac_build_alias=$build_alias
     3337test "x$ac_build_alias" = x &&
     3338  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
     3339test "x$ac_build_alias" = x &&
     3340  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
     3341ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
     3342  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
     3343
     3344fi
     3345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
     3346$as_echo "$ac_cv_build" >&6; }
     3347case $ac_cv_build in
     3348*-*-*) ;;
     3349*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
     3350esac
     3351build=$ac_cv_build
     3352ac_save_IFS=$IFS; IFS='-'
     3353set x $ac_cv_build
     3354shift
     3355build_cpu=$1
     3356build_vendor=$2
     3357shift; shift
     3358# Remember, the first character of IFS is used to create $*,
     3359# except with old shells:
     3360build_os=$*
     3361IFS=$ac_save_IFS
     3362case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
     3363
     3364
     3365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
     3366$as_echo_n "checking host system type... " >&6; }
     3367if ${ac_cv_host+:} false; then :
     3368  $as_echo_n "(cached) " >&6
     3369else
     3370  if test "x$host_alias" = x; then
     3371  ac_cv_host=$ac_cv_build
     3372else
     3373  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
     3374    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
     3375fi
     3376
     3377fi
     3378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
     3379$as_echo "$ac_cv_host" >&6; }
     3380case $ac_cv_host in
     3381*-*-*) ;;
     3382*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
     3383esac
     3384host=$ac_cv_host
     3385ac_save_IFS=$IFS; IFS='-'
     3386set x $ac_cv_host
     3387shift
     3388host_cpu=$1
     3389host_vendor=$2
     3390shift; shift
     3391# Remember, the first character of IFS is used to create $*,
     3392# except with old shells:
     3393host_os=$*
     3394IFS=$ac_save_IFS
     3395case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
     3396
     3397
     3398
     3399default_target="${host_cpu}:debug, ${host_cpu}:nodebug"
     3400
     3401# Check whether --with-target-hosts was given.
     3402if test "${with_target_hosts+set}" = set; then :
     3403  withval=$with_target_hosts; target_hosts=$withval
     3404else
     3405  target_hosts=${default_target}
     3406fi
     3407
     3408
     3409TARGET_HOSTS=${target_hosts}
     3410
     3411
     3412LIBCFA_PATHS="DRIVER_DIR=${DRIVER_DIR}"
     3413
     3414for i in $(echo $target_hosts | sed "s/,/ /g")
     3415do
     3416        # call your procedure/other scripts here below
     3417        lib_arch=$(echo $i | sed -r "s/:(.*)//g")
     3418        lib_config=$(echo $i | sed -r "s/(.*)://g")
     3419        lib_dir="libcfa-${lib_arch}-${lib_config}"
     3420
     3421        LIBCFA_TARGET_DIRS="${LIBCFA_TARGET_DIRS} ${lib_dir}"
     3422        LIBCFA_TARGET_MAKEFILES="${LIBCFA_TARGET_MAKEFILES} ${lib_dir}/Makefile"
     3423
     3424        mkdir -p libcfa-${lib_arch}-${lib_config}
     3425        echo -n "${LIBCFA_GENERAL_ARGS} " > libcfa-${lib_arch}-${lib_config}/config.data
     3426        echo -n "${LIBCFA_PATHS} " >> libcfa-${lib_arch}-${lib_config}/config.data
     3427        echo -n "--host=${lib_arch} " >> libcfa-${lib_arch}-${lib_config}/config.data
     3428        echo -n "CONFIGURATION=${lib_config}" >> libcfa-${lib_arch}-${lib_config}/config.data
     3429done
     3430
    34253431
    34263432
  • configure.ac

    rc59712e rff1e0f38  
    2828
    2929AC_SUBST(CFA_NAME, ${cfa_name})
    30 
    31 #==============================================================================
    32 # handle the list of hosts to build for
    33 for var in $ac_configure_args
    34 do
    35         #strip quotes surrouding values
    36         var=$(echo $var | sed s/\'//g)
    37         case $var in
    38                 # skip cross compilation related arguments
    39                 --host=*) ;; host_alias=*) ;; --build=*) ;; build_alias=*) ;; --target=*) ;; target_alias=*) ;;
    40 
    41                 # append all other arguments to the sub configure arguments
    42                 *) LIBCFA_GENERAL_ARGS="${LIBCFA_GENERAL_ARGS} $var";;
    43         esac
    44 done
    45 
    46 echo $LIBCFA_GENERAL_ARGS
    47 
    48 #==============================================================================
    49 # handle the list of hosts to build for
    50 AC_CANONICAL_BUILD
    51 AC_CANONICAL_HOST
    52 
    53 default_target="${host_cpu}:debug, ${host_cpu}:nodebug"
    54 AC_ARG_WITH(target-hosts,
    55         [  --with-target-hosts=HOSTS     HOSTS comma seperated list of hosts to build for, format ARCH:[debug|nodebug|nolib]],
    56         target_hosts=$withval, target_hosts=${default_target})
    57 
    58 AC_SUBST(TARGET_HOSTS, ${target_hosts})
    59 
    60 for i in $(echo $target_hosts | sed "s/,/ /g")
    61 do
    62         # call your procedure/other scripts here below
    63         lib_arch=$(echo $i | sed -r "s/:(.*)//g")
    64         lib_config=$(echo $i | sed -r "s/(.*)://g")
    65         lib_dir="libcfa-${lib_arch}-${lib_config}"
    66 
    67         LIBCFA_TARGET_DIRS="${LIBCFA_TARGET_DIRS} ${lib_dir}"
    68         LIBCFA_TARGET_MAKEFILES="${LIBCFA_TARGET_MAKEFILES} ${lib_dir}/Makefile"
    69 
    70         mkdir -p libcfa-${lib_arch}-${lib_config}
    71         echo -n "${LIBCFA_GENERAL_ARGS} " > libcfa-${lib_arch}-${lib_config}/config.data
    72         echo -n "--host=${lib_arch} " >> libcfa-${lib_arch}-${lib_config}/config.data
    73         echo -n "CONFIGURATION=${lib_config}" >> libcfa-${lib_arch}-${lib_config}/config.data
    74 done
    75 
    76 AC_SUBST(LIBCFA_TARGET_DIRS)
    77 AC_SUBST(LIBCFA_TARGET_MAKEFILES)
    7830
    7931
     
    163115#==============================================================================
    164116# Create variables for commonly used targets
    165 DRIVER_DIR='$(top_builddir)/driver'
    166 CFACC=${DRIVER_DIR}/cfa
    167 CFACPP=${DRIVER_DIR}/cfa-cpp
     117
     118TOP_SRCDIR=$ac_pwd/$ac_confdir/
     119TOP_BUILDDIR=$ac_pwd/
     120PRELUDE_BUILDDIR=$ac_pwd/libcfa-x86_64-debug/prelude/
     121
     122AC_DEFINE_UNQUOTED(TOP_SRCDIR, "$TOP_SRCDIR", [Top src directory])
     123AC_DEFINE_UNQUOTED(TOP_BUILDDIR, "$TOP_BUILDDIR", [Top build directory])
     124AC_DEFINE_UNQUOTED(PRELUDE_BUILDDIR, "$PRELUDE_BUILDDIR", [Directory where the prelude files are built])
     125
     126DRIVER_DIR=${TOP_BUILDDIR}driver/
     127CFACC=${DRIVER_DIR}cfa
     128CFACPP=${DRIVER_DIR}cfa-cpp
    168129AC_SUBST(DRIVER_DIR)
    169130AC_SUBST(CFACC)
    170131AC_SUBST(CFACPP)
    171 AC_DEFINE_UNQUOTED(TOP_SRCDIR, "$ac_pwd/$ac_confdir/", [Top src directory])
    172 AC_DEFINE_UNQUOTED(TOP_BUILDDIR, "$ac_pwd/", [Top build directory])
    173 AC_DEFINE_UNQUOTED(PRELUDE_BUILDDIR, "$ac_pwd/libcfa/prelude/", [Directory where the prelude files are built])
    174132
    175133#==============================================================================
    176134# Flag variables needed to build in tree
    177 LIBCFA_SRC='$(top_srcdir)/libcfa/src'
    178 LIBCFA_BUILD='$(top_builddir)/libcfa/src'
    179 BUILD_IN_TREE_FLAGS_NOLIB="-XCFA -t -B${DRIVER_DIR}"
    180 BUILD_IN_TREE_FLAGS="${BUILD_IN_TREE_FLAGS_NOLIB} -L${LIBCFA_BUILD} -I${LIBCFA_SRC} -I${LIBCFA_SRC}/containers -I${LIBCFA_SRC}/concurrency -I${LIBCFA_SRC}/stdhdr"
    181 AC_SUBST(BUILD_IN_TREE_FLAGS_NOLIB)
     135LIBCFA_SRC='${TOP_SRCDIR}/libcfa/src'
     136BUILD_IN_TREE_FLAGS="-XCFA -t -B${DRIVER_DIR}"
    182137AC_SUBST(BUILD_IN_TREE_FLAGS)
     138
     139#==============================================================================
     140# handle the list of hosts to build for
     141for var in $ac_configure_args
     142do
     143        #strip quotes surrouding values
     144        var=$(echo $var | sed s/\'//g)
     145        case $var in
     146                # skip cross compilation related arguments
     147                --host=*) ;; host_alias=*) ;; --build=*) ;; build_alias=*) ;; --target=*) ;; target_alias=*) ;;
     148
     149                # skip the target hosts
     150                --with-target-hosts=*) ;;
     151
     152                # append all other arguments to the sub configure arguments
     153                *) LIBCFA_GENERAL_ARGS="${LIBCFA_GENERAL_ARGS} $var";;
     154        esac
     155done
     156
     157#==============================================================================
     158# handle the list of hosts to build for
     159AC_CANONICAL_BUILD
     160AC_CANONICAL_HOST
     161
     162default_target="${host_cpu}:debug, ${host_cpu}:nodebug"
     163AC_ARG_WITH(target-hosts,
     164        [  --with-target-hosts=HOSTS     HOSTS comma seperated list of hosts to build for, format ARCH:[debug|nodebug|nolib]],
     165        target_hosts=$withval, target_hosts=${default_target})
     166
     167AC_SUBST(TARGET_HOSTS, ${target_hosts})
     168
     169LIBCFA_PATHS="DRIVER_DIR=${DRIVER_DIR}"
     170
     171for i in $(echo $target_hosts | sed "s/,/ /g")
     172do
     173        # call your procedure/other scripts here below
     174        lib_arch=$(echo $i | sed -r "s/:(.*)//g")
     175        lib_config=$(echo $i | sed -r "s/(.*)://g")
     176        lib_dir="libcfa-${lib_arch}-${lib_config}"
     177
     178        LIBCFA_TARGET_DIRS="${LIBCFA_TARGET_DIRS} ${lib_dir}"
     179        LIBCFA_TARGET_MAKEFILES="${LIBCFA_TARGET_MAKEFILES} ${lib_dir}/Makefile"
     180
     181        mkdir -p libcfa-${lib_arch}-${lib_config}
     182        echo -n "${LIBCFA_GENERAL_ARGS} " > libcfa-${lib_arch}-${lib_config}/config.data
     183        echo -n "${LIBCFA_PATHS} " >> libcfa-${lib_arch}-${lib_config}/config.data
     184        echo -n "--host=${lib_arch} " >> libcfa-${lib_arch}-${lib_config}/config.data
     185        echo -n "CONFIGURATION=${lib_config}" >> libcfa-${lib_arch}-${lib_config}/config.data
     186done
     187
     188AC_SUBST(LIBCFA_TARGET_DIRS)
     189AC_SUBST(LIBCFA_TARGET_MAKEFILES)
    183190
    184191#==============================================================================
  • driver/Makefile.in

    rc59712e rff1e0f38  
    179179BACKEND_CC = @BACKEND_CC@
    180180BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@
    181 BUILD_IN_TREE_FLAGS_NOLIB = @BUILD_IN_TREE_FLAGS_NOLIB@
    182181CC = @CC@
    183182CCAS = @CCAS@
  • libcfa/Makefile.in

    rc59712e rff1e0f38  
    8989PRE_UNINSTALL = :
    9090POST_UNINSTALL = :
     91build_triplet = @build@
     92host_triplet = @host@
    9193subdir = .
    9294ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
     
    159161am__DIST_COMMON = $(srcdir)/Makefile.in \
    160162        $(top_srcdir)/./automake/compile \
     163        $(top_srcdir)/./automake/config.guess \
     164        $(top_srcdir)/./automake/config.sub \
    161165        $(top_srcdir)/./automake/install-sh \
    162166        $(top_srcdir)/./automake/missing ./automake/compile \
     167        ./automake/config.guess ./automake/config.sub \
    163168        ./automake/depcomp ./automake/install-sh ./automake/missing
    164169DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
     
    216221CCASFLAGS = @CCASFLAGS@
    217222CCDEPMODE = @CCDEPMODE@
     223CFACC = @CFACC@
     224CFACPP = @CFACPP@
     225CFA_BINDIR = @CFA_BINDIR@
     226CFA_INCDIR = @CFA_INCDIR@
     227CFA_LIBDIR = @CFA_LIBDIR@
     228CFA_PREFIX = @CFA_PREFIX@
    218229CFLAGS = @CFLAGS@
     230CONFIGURATION = @CONFIGURATION@
    219231CPPFLAGS = @CPPFLAGS@
    220232CXX = @CXX@
     
    224236DEFS = @DEFS@
    225237DEPDIR = @DEPDIR@
     238DRIVER_DIR = @DRIVER_DIR@
    226239ECHO_C = @ECHO_C@
    227240ECHO_N = @ECHO_N@
     
    265278am__untar = @am__untar@
    266279bindir = @bindir@
     280build = @build@
    267281build_alias = @build_alias@
     282build_cpu = @build_cpu@
     283build_os = @build_os@
     284build_vendor = @build_vendor@
    268285builddir = @builddir@
    269286datadir = @datadir@
     
    272289dvidir = @dvidir@
    273290exec_prefix = @exec_prefix@
     291host = @host@
    274292host_alias = @host_alias@
     293host_cpu = @host_cpu@
     294host_os = @host_os@
     295host_vendor = @host_vendor@
    275296htmldir = @htmldir@
    276297includedir = @includedir@
  • libcfa/configure

    rc59712e rff1e0f38  
    618618CXXFLAGS
    619619CXX
     620CFA_LIBDIR
     621CFA_BINDIR
     622CFA_INCDIR
     623CFA_PREFIX
     624CFACPP
     625CFACC
     626DRIVER_DIR
     627CONFIGURATION
     628host_os
     629host_vendor
     630host_cpu
     631host
     632build_os
     633build_vendor
     634build_cpu
     635build
    620636AM_BACKSLASH
    621637AM_DEFAULT_VERBOSITY
     
    693709host_alias
    694710target_alias
     711CONFIGURATION
     712DRIVER_DIR
    695713CXX
    696714CXXFLAGS
     
    13151333  --program-suffix=SUFFIX            append SUFFIX to installed program names
    13161334  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
     1335
     1336System types:
     1337  --build=BUILD     configure for building on BUILD [guessed]
     1338  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
    13171339_ACEOF
    13181340fi
     
    13361358
    13371359Some influential environment variables:
     1360  CONFIGURATION
     1361              The configuration to use when building libcfa, options are:
     1362              deubg, nodebug, nolib (prelude-only)
     1363  DRIVER_DIR  The path to the cforall driver directory
    13381364  CXX         C++ compiler command
    13391365  CXXFLAGS    C++ compiler flags
     
    24672493# Allow program name tansformation
    24682494# will fill program_transform_name with appropriate sed regex
     2495
     2496
     2497# Make sure we can run config.sub.
     2498$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
     2499  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
     2500
     2501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
     2502$as_echo_n "checking build system type... " >&6; }
     2503if ${ac_cv_build+:} false; then :
     2504  $as_echo_n "(cached) " >&6
     2505else
     2506  ac_build_alias=$build_alias
     2507test "x$ac_build_alias" = x &&
     2508  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
     2509test "x$ac_build_alias" = x &&
     2510  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
     2511ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
     2512  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
     2513
     2514fi
     2515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
     2516$as_echo "$ac_cv_build" >&6; }
     2517case $ac_cv_build in
     2518*-*-*) ;;
     2519*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
     2520esac
     2521build=$ac_cv_build
     2522ac_save_IFS=$IFS; IFS='-'
     2523set x $ac_cv_build
     2524shift
     2525build_cpu=$1
     2526build_vendor=$2
     2527shift; shift
     2528# Remember, the first character of IFS is used to create $*,
     2529# except with old shells:
     2530build_os=$*
     2531IFS=$ac_save_IFS
     2532case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
     2533
     2534
     2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
     2536$as_echo_n "checking host system type... " >&6; }
     2537if ${ac_cv_host+:} false; then :
     2538  $as_echo_n "(cached) " >&6
     2539else
     2540  if test "x$host_alias" = x; then
     2541  ac_cv_host=$ac_cv_build
     2542else
     2543  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
     2544    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
     2545fi
     2546
     2547fi
     2548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
     2549$as_echo "$ac_cv_host" >&6; }
     2550case $ac_cv_host in
     2551*-*-*) ;;
     2552*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
     2553esac
     2554host=$ac_cv_host
     2555ac_save_IFS=$IFS; IFS='-'
     2556set x $ac_cv_host
     2557shift
     2558host_cpu=$1
     2559host_vendor=$2
     2560shift; shift
     2561# Remember, the first character of IFS is used to create $*,
     2562# except with old shells:
     2563host_os=$*
     2564IFS=$ac_save_IFS
     2565case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
     2566
     2567
     2568
     2569
     2570
     2571
     2572CFACC=${DRIVER_DIR}cfa
     2573CFACPP=${DRIVER_DIR}cfa-cpp
     2574
     2575
     2576
     2577#==============================================================================
     2578# Installation paths
     2579if test "x$prefix" = "xNONE"; then
     2580        cfa_prefix=${ac_default_prefix}
     2581else
     2582        cfa_prefix=${prefix}
     2583fi
     2584
     2585cat >>confdefs.h <<_ACEOF
     2586#define CFA_PREFIX "${cfa_prefix}"
     2587_ACEOF
     2588
     2589CFA_PREFIX=${cfa_prefix}
     2590
     2591
     2592if test "$includedir" = '${prefix}/include'; then
     2593        cfa_incdir="${cfa_prefix}/include/${cfa_name}"
     2594else
     2595        cfa_incdir=${includedir}
     2596fi
     2597
     2598cat >>confdefs.h <<_ACEOF
     2599#define CFA_INCDIR "${cfa_incdir}"
     2600_ACEOF
     2601
     2602CFA_INCDIR=${cfa_incdir}
     2603
     2604
     2605if test "$bindir" = '${exec_prefix}/bin'; then
     2606        cfa_bindir="${cfa_prefix}/bin"
     2607else
     2608        cfa_bindir=${bindir}
     2609fi
     2610
     2611cat >>confdefs.h <<_ACEOF
     2612#define CFA_BINDIR "${cfa_bindir}"
     2613_ACEOF
     2614
     2615CFA_BINDIR=${cfa_bindir}
     2616
     2617
     2618if test "$libdir" = '${exec_prefix}/lib'; then
     2619        cfa_libdir="${cfa_prefix}/lib/${cfa_name}"
     2620else
     2621        cfa_libdir=${libdir}
     2622fi
     2623
     2624cat >>confdefs.h <<_ACEOF
     2625#define CFA_LIBDIR "${cfa_libdir}"
     2626_ACEOF
     2627
     2628CFA_LIBDIR=${cfa_libdir}
    24692629
    24702630
  • libcfa/configure.ac

    rc59712e rff1e0f38  
    1616
    1717AC_ARG_VAR(CONFIGURATION, [The configuration to use when building libcfa, options are: deubg, nodebug, nolib (prelude-only)])
     18AC_ARG_VAR(DRIVER_DIR, [The path to the cforall driver directory])
     19
     20CFACC=${DRIVER_DIR}cfa
     21CFACPP=${DRIVER_DIR}cfa-cpp
     22AC_SUBST(CFACC)
     23AC_SUBST(CFACPP)
     24
     25#==============================================================================
     26# Installation paths
     27if test "x$prefix" = "xNONE"; then
     28        cfa_prefix=${ac_default_prefix}
     29else
     30        cfa_prefix=${prefix}
     31fi
     32AC_DEFINE_UNQUOTED(CFA_PREFIX, "${cfa_prefix}", [Location of cfa install.])
     33AC_SUBST(CFA_PREFIX, ${cfa_prefix})
     34
     35if test "$includedir" = '${prefix}/include'; then
     36        cfa_incdir="${cfa_prefix}/include/${cfa_name}"
     37else
     38        cfa_incdir=${includedir}
     39fi
     40AC_DEFINE_UNQUOTED(CFA_INCDIR, "${cfa_incdir}", [Location of include files.])
     41AC_SUBST(CFA_INCDIR, ${cfa_incdir})
     42
     43if test "$bindir" = '${exec_prefix}/bin'; then
     44        cfa_bindir="${cfa_prefix}/bin"
     45else
     46        cfa_bindir=${bindir}
     47fi
     48AC_DEFINE_UNQUOTED(CFA_BINDIR, "${cfa_bindir}", [Location of cfa command.])
     49AC_SUBST(CFA_BINDIR, ${cfa_bindir})
     50
     51if test "$libdir" = '${exec_prefix}/lib'; then
     52        cfa_libdir="${cfa_prefix}/lib/${cfa_name}"
     53else
     54        cfa_libdir=${libdir}
     55fi
     56AC_DEFINE_UNQUOTED(CFA_LIBDIR, "${cfa_libdir}", [Location of cc1 and cfa-cpp commands.])
     57AC_SUBST(CFA_LIBDIR, ${cfa_libdir})
    1858
    1959# Checks for programs.
  • libcfa/prelude/Makefile.am

    rc59712e rff1e0f38  
    3333# create extra forward types/declarations to reduce inclusion of library files
    3434extras.cf : ${srcdir}/extras.regx ${srcdir}/extras.c
    35         ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -E ${srcdir}/extras.c | grep -f ${srcdir}/extras.regx > extras.cf
     35        ${AM_V_GEN}gcc -E ${srcdir}/extras.c | grep -f ${srcdir}/extras.regx > extras.cf
    3636
    3737# create forward declarations for gcc builtins
    3838gcc-builtins.cf : gcc-builtins.c ${srcdir}/prototypes.sed
    39         ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -I${srcdir} -E -P $< | sed -r -f ${srcdir}/prototypes.sed > $@
     39        ${AM_V_GEN}gcc -I${srcdir} -E -P $< | sed -r -f ${srcdir}/prototypes.sed > $@
    4040
    4141gcc-builtins.c : ${srcdir}/builtins.def ${srcdir}/prototypes.awk ${srcdir}/sync-builtins.cf ${srcdir}/prototypes.c
    42         ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -I${srcdir} -E ${srcdir}/prototypes.c | awk -f ${srcdir}/prototypes.awk > $@
     42        ${AM_V_GEN}gcc -I${srcdir} -E ${srcdir}/prototypes.c | awk -f ${srcdir}/prototypes.awk > $@
    4343
    4444prelude.cf : prelude-gen.cc
  • libcfa/prelude/Makefile.in

    rc59712e rff1e0f38  
    9090PRE_UNINSTALL = :
    9191POST_UNINSTALL = :
     92build_triplet = @build@
     93host_triplet = @host@
    9294subdir = prelude
    9395ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
     
    162164CCASFLAGS = @CCASFLAGS@
    163165CCDEPMODE = @CCDEPMODE@
     166CFACC = @CFACC@
     167CFACPP = @CFACPP@
     168CFA_BINDIR = @CFA_BINDIR@
     169CFA_INCDIR = @CFA_INCDIR@
     170CFA_LIBDIR = @CFA_LIBDIR@
     171CFA_PREFIX = @CFA_PREFIX@
    164172CFLAGS = @CFLAGS@
     173CONFIGURATION = @CONFIGURATION@
    165174CPPFLAGS = @CPPFLAGS@
    166175CXX = @CXX@
     
    170179DEFS = @DEFS@
    171180DEPDIR = @DEPDIR@
     181DRIVER_DIR = @DRIVER_DIR@
    172182ECHO_C = @ECHO_C@
    173183ECHO_N = @ECHO_N@
     
    211221am__untar = @am__untar@
    212222bindir = @bindir@
     223build = @build@
    213224build_alias = @build_alias@
     225build_cpu = @build_cpu@
     226build_os = @build_os@
     227build_vendor = @build_vendor@
    214228builddir = @builddir@
    215229datadir = @datadir@
     
    218232dvidir = @dvidir@
    219233exec_prefix = @exec_prefix@
     234host = @host@
    220235host_alias = @host_alias@
     236host_cpu = @host_cpu@
     237host_os = @host_os@
     238host_vendor = @host_vendor@
    221239htmldir = @htmldir@
    222240includedir = @includedir@
     
    472490# create extra forward types/declarations to reduce inclusion of library files
    473491extras.cf : ${srcdir}/extras.regx ${srcdir}/extras.c
    474         ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -E ${srcdir}/extras.c | grep -f ${srcdir}/extras.regx > extras.cf
     492        ${AM_V_GEN}gcc -E ${srcdir}/extras.c | grep -f ${srcdir}/extras.regx > extras.cf
    475493
    476494# create forward declarations for gcc builtins
    477495gcc-builtins.cf : gcc-builtins.c ${srcdir}/prototypes.sed
    478         ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -I${srcdir} -E -P $< | sed -r -f ${srcdir}/prototypes.sed > $@
     496        ${AM_V_GEN}gcc -I${srcdir} -E -P $< | sed -r -f ${srcdir}/prototypes.sed > $@
    479497
    480498gcc-builtins.c : ${srcdir}/builtins.def ${srcdir}/prototypes.awk ${srcdir}/sync-builtins.cf ${srcdir}/prototypes.c
    481         ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -I${srcdir} -E ${srcdir}/prototypes.c | awk -f ${srcdir}/prototypes.awk > $@
     499        ${AM_V_GEN}gcc -I${srcdir} -E ${srcdir}/prototypes.c | awk -f ${srcdir}/prototypes.awk > $@
    482500
    483501prelude.cf : prelude-gen.cc
  • libcfa/src/Makefile.am

    rc59712e rff1e0f38  
    2323
    2424libcfa-prelude.o : libcfa-prelude.c
    25          ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -Wall -O2 -c -o $@ $<
     25         ${AM_V_GEN}gcc -Wall -O2 -c -o $@ $<
    2626
    27 EXTRA_FLAGS = -g -Wall -Wno-unused-function -imacros libcfa-prelude.c @CFA_FLAGS@ $(DEFAULT_INCLUDES)
     27EXTRA_FLAGS = -g -Wall -Wno-unused-function -imacros libcfa-prelude.c $(DEFAULT_INCLUDES)
    2828
    29 AM_CCASFLAGS = @CFA_FLAGS@
     29AM_CCASFLAGS =
    3030
    3131#CFLAGS for most libcfa src
    3232#use -no-include-stdhdr to prevent rebuild cycles
    3333#The built sources must not depend on the installed headers
    34 CFLAGS = -quiet -no-include-stdhdr @BUILD_IN_TREE_FLAGS@ ${EXTRA_FLAGS}
     34CFLAGS = -quiet -no-include-stdhdr -XCFA -t -B@DRIVER_DIR@ ${EXTRA_FLAGS}
    3535CC = @CFACC@
    3636
     
    6060
    6161concurrency/invoke.o : concurrency/invoke.c
    62         ${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
     62        ${AM_V_CC}gcc -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
    6363
    6464exception.o : exception.c
    65         ${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
     65        ${AM_V_CC}gcc -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
    6666
    6767virtual.o : virtual.c
    68         ${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
     68        ${AM_V_CC}gcc -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
    6969
    7070${libobjs} : @CFACPP@ ${cfalib_DATA} # add dependency to cfa-cpp so all libraries are rebuilt with new translator
  • libcfa/src/Makefile.in

    rc59712e rff1e0f38  
    9191PRE_UNINSTALL = :
    9292POST_UNINSTALL = :
     93build_triplet = @build@
     94host_triplet = @host@
    9395subdir = src
    9496ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
     
    242244CCASFLAGS = @CCASFLAGS@
    243245CCDEPMODE = @CCDEPMODE@
     246CFACC = @CFACC@
     247CFACPP = @CFACPP@
     248CFA_BINDIR = @CFA_BINDIR@
     249CFA_INCDIR = @CFA_INCDIR@
     250CFA_LIBDIR = @CFA_LIBDIR@
     251CFA_PREFIX = @CFA_PREFIX@
    244252
    245253#CFLAGS for most libcfa src
    246254#use -no-include-stdhdr to prevent rebuild cycles
    247255#The built sources must not depend on the installed headers
    248 CFLAGS = -quiet -no-include-stdhdr @BUILD_IN_TREE_FLAGS@ ${EXTRA_FLAGS}
     256CFLAGS = -quiet -no-include-stdhdr -XCFA -t -B@DRIVER_DIR@ ${EXTRA_FLAGS}
     257CONFIGURATION = @CONFIGURATION@
    249258CPPFLAGS = @CPPFLAGS@
    250259CXX = @CXX@
     
    254263DEFS = @DEFS@
    255264DEPDIR = @DEPDIR@
     265DRIVER_DIR = @DRIVER_DIR@
    256266ECHO_C = @ECHO_C@
    257267ECHO_N = @ECHO_N@
     
    295305am__untar = @am__untar@
    296306bindir = @bindir@
     307build = @build@
    297308build_alias = @build_alias@
     309build_cpu = @build_cpu@
     310build_os = @build_os@
     311build_vendor = @build_vendor@
    298312builddir = @builddir@
    299313datadir = @datadir@
     
    302316dvidir = @dvidir@
    303317exec_prefix = @exec_prefix@
     318host = @host@
    304319host_alias = @host_alias@
     320host_cpu = @host_cpu@
     321host_os = @host_os@
     322host_vendor = @host_vendor@
    305323htmldir = @htmldir@
    306324includedir = @includedir@
     
    332350ARFLAGS = cr
    333351lib_LIBRARIES = libcfa.a
    334 EXTRA_FLAGS = -g -Wall -Wno-unused-function -imacros libcfa-prelude.c @CFA_FLAGS@ $(DEFAULT_INCLUDES)
    335 AM_CCASFLAGS = @CFA_FLAGS@
     352EXTRA_FLAGS = -g -Wall -Wno-unused-function -imacros libcfa-prelude.c $(DEFAULT_INCLUDES)
     353AM_CCASFLAGS =
    336354
    337355# not all platforms support concurrency, add option do disable it
     
    11881206
    11891207libcfa-prelude.o : libcfa-prelude.c
    1190          ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -Wall -O2 -c -o $@ $<
     1208         ${AM_V_GEN}gcc -Wall -O2 -c -o $@ $<
    11911209
    11921210# extensionless header files are overridden by -o flag in default makerule => explicitly override default rule to silently do nothing
     
    12021220
    12031221concurrency/invoke.o : concurrency/invoke.c
    1204         ${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
     1222        ${AM_V_CC}gcc -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
    12051223
    12061224exception.o : exception.c
    1207         ${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
     1225        ${AM_V_CC}gcc -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
    12081226
    12091227virtual.o : virtual.c
    1210         ${AM_V_CC}@BACKEND_CC@ -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
     1228        ${AM_V_CC}gcc -DHAVE_CONFIG_H -I. -I../.. -D__CFA_DEBUG__ -O0 ${EXTRA_FLAGS} -c -o $@ $<
    12111229
    12121230${libobjs} : @CFACPP@ ${cfalib_DATA} # add dependency to cfa-cpp so all libraries are rebuilt with new translator
  • src/Makefile.in

    rc59712e rff1e0f38  
    321321BACKEND_CC = @BACKEND_CC@
    322322BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@
    323 BUILD_IN_TREE_FLAGS_NOLIB = @BUILD_IN_TREE_FLAGS_NOLIB@
    324323CC = @CC@
    325324CCAS = @CCAS@
  • tests/Makefile.in

    rc59712e rff1e0f38  
    179179BACKEND_CC = @BACKEND_CC@
    180180BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@
    181 BUILD_IN_TREE_FLAGS_NOLIB = @BUILD_IN_TREE_FLAGS_NOLIB@
    182181CC = @CFACC@
    183182CCAS = @CCAS@
  • tests/preempt_longrun/Makefile.in

    rc59712e rff1e0f38  
    338338BACKEND_CC = @BACKEND_CC@
    339339BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@
    340 BUILD_IN_TREE_FLAGS_NOLIB = @BUILD_IN_TREE_FLAGS_NOLIB@
    341340CC = @CFACC@
    342341CCAS = @CCAS@
  • tools/Makefile.in

    rc59712e rff1e0f38  
    187187BACKEND_CC = @BACKEND_CC@
    188188BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@
    189 BUILD_IN_TREE_FLAGS_NOLIB = @BUILD_IN_TREE_FLAGS_NOLIB@
    190189CC = @BACKEND_CC@
    191190CCAS = @CCAS@
  • tools/prettyprinter/Makefile.in

    rc59712e rff1e0f38  
    211211BACKEND_CC = @BACKEND_CC@
    212212BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@
    213 BUILD_IN_TREE_FLAGS_NOLIB = @BUILD_IN_TREE_FLAGS_NOLIB@
    214213CC = @CC@
    215214CCAS = @CCAS@
Note: See TracChangeset for help on using the changeset viewer.