source: rtems/c/src/aclocal/env-rtemsbsp.m4 @ ea3f559

4.104.114.84.95
Last change on this file since ea3f559 was ea3f559, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 5, 2005 at 5:52:33 PM

2005-01-05 Ralf Corsepius <ralf.corsepius@…>

  • configure.ac: Pass CFLAGS to cpukit configure.
  • aclocal/rtems-flags.m4: Remove (Unused).
  • aclocal/prog-ccas.m4: Remove $(GCCSPECS).
  • aclocal/env-rtemsbsp.m4: Comment out CFLAGS_OPTIMIZE_V, CFLAGS_DEBUG_V, CPU_CFLAGS.
  • aclocal/prog-cc.m4: Don't invoke _RTEMS_FLAGS to set up RTEMS_CFLAGS.
  • automake/compile.am: AM_CFLAGS = RTEMS_CFLAGS. Add AM_CXXFLAGS. Remove CPPFLAGS, CFLAGS, CPU_CFLAGS, CFLAGS_OPTIMIZE, ASFLAGS. Cleanup comments.
  • Property mode set to 100644
File size: 1.5 KB
Line 
1dnl $Id$
2
3dnl Pass a single BSP via an environment variable
4dnl used by per BSP configure scripts
5AC_DEFUN([RTEMS_ENV_RTEMSBSP],
6[dnl
7AC_BEFORE([$0], [RTEMS_ENABLE_RTEMSBSP])dnl
8AC_BEFORE([$0], [RTEMS_PROJECT_ROOT])dnl
9AC_BEFORE([$0], [RTEMS_CHECK_CUSTOM_BSP])dnl
10
11# AC_ARG_VAR([CPU_CFLAGS],[CFLAGS specifying CPU-dependent features])
12# AC_ARG_VAR([CFLAGS_OPTIMIZE_V],[CFLAGS for building the OPTIMIZE variant])
13# AC_ARG_VAR([CFLAGS_DEBUG_V],[CFLAGS for building the DEBUG variant])
14AC_ARG_VAR([RTEMS_BSP_FAMILY],[RTEMS's BSP directory])
15AC_ARG_VAR([RTEMS_CPU_MODEL],[RTEMS's cpu model])
16
17AC_ARG_VAR([RTEMS_BSP],[RTEMS_BSP to build])
18AC_MSG_CHECKING([for RTEMS_BSP])
19AC_CACHE_VAL(rtems_cv_RTEMS_BSP,
20[dnl
21  test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
22])dnl
23if test -z "$rtems_cv_RTEMS_BSP"; then
24  AC_MSG_ERROR([Missing RTEMS_BSP])
25fi
26RTEMS_BSP="$rtems_cv_RTEMS_BSP"
27AC_MSG_RESULT(${RTEMS_BSP})
28AC_SUBST(RTEMS_BSP)
29
30RTEMS_BSP_SPECS="-specs bsp_specs -qrtems"
31AC_SUBST(RTEMS_BSP_SPECS)
32
33GCC_SPECS="-B\$(PROJECT_ROOT)/lib/ -B\$(PROJECT_ROOT)/$RTEMS_BSP/lib/"
34AC_SUBST(GCC_SPECS)
35
36AM_CONDITIONAL([MULTILIB],[false])
37
38includedir="\${exec_prefix}/${RTEMS_BSP}/lib/include"
39libdir="\${exec_prefix}/${RTEMS_BSP}/lib"
40
41AC_SUBST([PROJECT_INCLUDE],["\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"])
42AC_SUBST([PROJECT_LIB],["\$(PROJECT_ROOT)/$RTEMS_BSP/lib"])
43AC_SUBST([PROJECT_RELEASE],["\$(PROJECT_ROOT)/$RTEMS_BSP"])
44
45AC_SUBST([project_libdir],["\$(libdir)"])
46AC_SUBST([project_includedir],["\$(includedir)"])
47])
Note: See TracBrowser for help on using the repository browser.