Changeset 04c308c in rtems
- Timestamp:
- 03/19/99 23:11:36 (24 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 4fb9af8
- Parents:
- c0a36429
- Files:
-
- 16 added
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
aclocal.m4
rc0a36429 r04c308c 10 10 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A 11 11 dnl PARTICULAR PURPOSE. 12 13 dnl $Id$ 14 15 AC_DEFUN(RTEMS_TOP, 16 [dnl 17 RTEMS_TOPdir="$1"; 18 AC_SUBST(RTEMS_TOPdir) 19 20 PROJECT_ROOT=`pwd`/$RTEMS_TOPdir; 21 AC_SUBST(PROJECT_ROOT) 22 23 RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir; 24 AC_SUBST(RTEMS_ROOT) 25 ])dnl 26 27 dnl $Id$ 28 dnl 29 dnl Note: This option is considered obsolete 30 31 AC_DEFUN(RTEMS_ENABLE_GMAKE_PRINT, 32 [ 33 AC_ARG_ENABLE(gmake-print-directory, 34 [ --enable-gmake-print-directory enable GNU Make's print directory], 35 [case "${enableval}" in 36 yes) RTEMS_USE_OWN_PDIR=no ;; 37 no) RTEMS_USE_OWN_PDIR=yes ;; 38 *) AC_MSG_ERROR(bad value ${enableval} for gmake-print-directory option) 39 ;; 40 esac],[RTEMS_USE_OWN_PDIR=yes]) 41 ]) 42 43 dnl $Id$ 44 45 AC_DEFUN(RTEMS_ENABLE_MULTIPROCESSING, 46 [ 47 AC_ARG_ENABLE(multiprocessing, 48 [ --enable-multiprocessing enable multiprocessing interface], 49 [case "${enableval}" in 50 yes) RTEMS_HAS_MULTIPROCESSING=yes ;; 51 no) RTEMS_HAS_MULTIPROCESSING=no ;; 52 *) AC_MSG_ERROR(bad value ${enableval} for enable-multiprocessing option) ;; 53 esac],[RTEMS_HAS_MULTIPROCESSING=no]) 54 ]) 55 56 dnl $Id$ 57 58 AC_DEFUN(RTEMS_ENABLE_POSIX, 59 [ 60 AC_ARG_ENABLE(posix, 61 [ --enable-posix enable posix interface], 62 [case "${enableval}" in 63 yes) RTEMS_HAS_POSIX_API=yes ;; 64 no) RTEMS_HAS_POSIX_API=no ;; 65 *) AC_MSG_ERROR(bad value ${enableval} for enable-posix option) ;; 66 esac],[RTEMS_HAS_POSIX_API=yes]) 67 68 changequote(,)dnl 69 case "${target}" in 70 # hpux unix port should go here 71 i[3456]86-go32-rtems*) 72 RTEMS_HAS_POSIX_API=no 73 ;; 74 i[3456]86-pc-linux*) # unix "simulator" port 75 RTEMS_HAS_POSIX_API=no 76 ;; 77 i[3456]86-*freebsd2*) # unix "simulator" port 78 RTEMS_HAS_POSIX_API=no 79 ;; 80 no_cpu-*rtems*) 81 RTEMS_HAS_POSIX_API=no 82 ;; 83 sparc-sun-solaris*) # unix "simulator" port 84 RTEMS_HAS_POSIX_API=no 85 ;; 86 *) 87 ;; 88 esac 89 changequote([,])dnl 90 AC_SUBST(RTEMS_HAS_POSIX_API) 91 ]) 92 93 dnl $Id$ 94 95 AC_DEFUN(RTEMS_ENABLE_NETWORKING, 96 [ 97 AC_ARG_ENABLE(networking, 98 [ --enable-networking enable TCP/IP stack], 99 [case "${enableval}" in 100 yes) RTEMS_HAS_NETWORKING=yes ;; 101 no) RTEMS_HAS_NETWORKING=no ;; 102 *) AC_MSG_ERROR(bad value ${enableval} for enable-networking option) ;; 103 esac],[RTEMS_HAS_NETWORKING=yes]) 104 ]) 105 106 dnl $Id$ 107 108 AC_DEFUN(RTEMS_ENABLE_RDBG, 109 [ 110 AC_ARG_ENABLE(rdbg, 111 [ --enable-rdbg enable remote debugger], 112 [case "${enableval}" in 113 yes) RTEMS_HAS_RDBG=yes ;; 114 no) RTEMS_HAS_RDBG=no ;; 115 *) AC_MSG_ERROR(bad value ${enableval} for enable-rdbg option) ;; 116 esac],[RTEMS_HAS_RDBG=no]) 117 ]) 118 119 dnl $Id$ 120 121 AC_DEFUN(RTEMS_ENABLE_INLINES, 122 [AC_ARG_ENABLE(rtems-inlines, 123 [ --enable-rtems-inlines enable RTEMS inline functions] 124 [ (default:enabled, disable to use macros)], 125 [case "${enableval}" in 126 yes) RTEMS_USE_MACROS=no ;; 127 no) RTEMS_USE_MACROS=yes ;; 128 *) AC_MSG_ERROR(bad value ${enableval} for disable-rtems-inlines option) ;; 129 esac],[RTEMS_USE_MACROS=no]) 130 ]) 131 132 dnl $Id$ 133 134 AC_DEFUN(RTEMS_ENABLE_CXX, 135 [ 136 AC_ARG_ENABLE(cxx, 137 [ --enable-cxx enable C++ support,] 138 [ and build the rtems++ library], 139 [case "${enableval}" in 140 yes) RTEMS_HAS_CPLUSPLUS=yes ;; 141 no) RTEMS_HAS_CPLUSPLUS=no ;; 142 *) AC_MSG_ERROR(bad value ${enableval} for enable-cxx option) ;; 143 esac], [RTEMS_HAS_CPLUSPLUS=no]) 144 ]) 145 146 dnl $Id$ 147 148 AC_DEFUN(RTEMS_ENABLE_GCC28, 149 [ 150 AC_ARG_ENABLE(gcc28, 151 [ --enable-gcc28 enable use of gcc 2.8.x features], 152 [case "${enableval}" in 153 yes) RTEMS_USE_GCC272=no ;; 154 no) RTEMS_USE_GCC272=yes ;; 155 *) AC_MSG_ERROR(bad value ${enableval} for gcc-28 option) ;; 156 esac],[RTEMS_USE_GCC272=no]) 157 ]) 158 159 dnl $Id$ 160 161 AC_DEFUN(RTEMS_ENABLE_LIBCDIR, 162 [ 163 AC_ARG_ENABLE(libcdir, 164 [ --enable-libcdir=directory set the directory for the C library], 165 [ RTEMS_LIBC_DIR="${enableval}" ; \ 166 test -d ${enableval} || AC_MSG_ERROR("$enableval is not a directory" ) ] ) 167 ]) 168 169 AC_DEFUN(RTEMS_ENABLE_BARE, 170 [ 171 AC_ARG_ENABLE(bare-cpu-cflags, 172 [ --enable-bare-cpu-cflags specify a particular cpu cflag] 173 [ (bare bsp specific)], 174 [case "${enableval}" in 175 no) BARE_CPU_CFLAGS="" ;; 176 *) BARE_CPU_CFLAGS="${enableval}" ;; 177 esac], 178 [BARE_CPU_CFLAGS=""]) 179 180 AC_ARG_ENABLE(bare-cpu-model, 181 [ --enable-bare-cpu-model specify a particular cpu model] 182 [ (bare bsp specific)], 183 [case "${enableval}" in 184 no) BARE_CPU_MODEL="" ;; 185 *) BARE_CPU_MODEL="${enableval}" ;; 186 esac], 187 [BARE_CPU_MODEL=""]) 188 ]) 189 12 190 13 191 dnl $Id$ … … 123 301 AC_MSG_RESULT($target_cpu) 124 302 ]) 303 304 dnl $Id$ 305 306 dnl check if RTEMS support a cpu 307 AC_DEFUN(RTEMS_CHECK_CPU, 308 [dnl 309 AC_REQUIRE([RTEMS_TOP]) 310 AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU]) 311 # Is this a supported CPU? 312 AC_MSG_CHECKING([if cpu $target_cpu is supported]) 313 if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$target_cpu"; then 314 AC_MSG_RESULT(yes) 315 else 316 AC_MSG_ERROR(no) 317 fi 318 ])dnl 319 320 321 dnl $Id$ 322 323 AC_DEFUN(RTEMS_CANONICAL_HOST, 324 [dnl 325 AC_REQUIRE([AC_CANONICAL_HOST]) 326 RTEMS_HOST=$host_os 327 changequote(,)dnl 328 case "${target}" in 329 # hpux unix port should go here 330 i[3456]86-pc-linux*) # unix "simulator" port 331 RTEMS_HOST=Linux 332 ;; 333 i[3456]86-*freebsd2*) # unix "simulator" port 334 RTEMS_HOST=FreeBSD 335 ;; 336 sparc-sun-solaris*) # unix "simulator" port 337 RTEMS_HOST=Solaris 338 ;; 339 *) 340 ;; 341 esac 342 changequote([,])dnl 343 AC_SUBST(RTEMS_HOST) 344 ])dnl 125 345 126 346 dnl … … 482 702 483 703 dnl 484 dnl $Id$485 dnl486 dnl Detect the Cygwin32 environment (unix under Win32)487 dnl488 dnl 98/06/16 David Fiddes (D.J.Fiddes@hw.ac.uk)489 dnl Hacked from automake-1.3490 491 # Check to see if we're running under Cygwin32, without using492 # AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".493 # Otherwise set it to "no".494 495 dnl RTEMS_CYGWIN32()496 AC_DEFUN(RTEMS_CYGWIN32,497 [AC_CACHE_CHECK(for Cygwin32 environment, rtems_cv_cygwin32,498 [AC_TRY_COMPILE(,[return __CYGWIN32__;],499 rtems_cv_cygwin32=yes, rtems_cv_cygwin32=no)500 rm -f conftest*])501 CYGWIN32=502 test "$rtems_cv_cygwin32" = yes && CYGWIN32=yes])503 504 505 dnl506 dnl $Id$507 dnl508 dnl Set the EXE extension509 dnl510 dnl 98/06/16 David Fiddes (D.J.Fiddes@hw.ac.uk)511 dnl Hacked from automake-1.3512 513 # Check to see if we're running under Win32, without using514 # AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe".515 # Otherwise set it to "".516 517 dnl RTEMS_EXEEXT()518 dnl This knows we add .exe if we're building in the Cygwin32519 dnl environment. But if we're not, then it compiles a test program520 dnl to see if there is a suffix for executables.521 AC_DEFUN(RTEMS_EXEEXT,522 [AC_REQUIRE([RTEMS_CYGWIN32])523 AC_MSG_CHECKING([for executable suffix])524 AC_CACHE_VAL(rtems_cv_exeext,525 [if test "$CYGWIN32" = yes; then526 rtems_cv_exeext=.exe527 else528 cat > rtems_c_test.c << 'EOF'529 int main() {530 /* Nothing needed here */531 }532 EOF533 ${CC-cc} -o rtems_c_test $CFLAGS $CPPFLAGS $LDFLAGS rtems_c_test.c $LIBS 1>&5534 rtems_cv_exeext=`echo rtems_c_test.* | grep -v rtems_c_test.c | sed -e s/rtems_c_test//`535 rm -f rtems_c_test*])536 test x"${rtems_cv_exeext}" = x && rtems_cv_exeext=no537 fi538 EXEEXT=""539 test x"${rtems_cv_exeext}" != xno && EXEEXT=${rtems_cv_exeext}540 AC_MSG_RESULT(${rtems_cv_exeext})541 AC_SUBST(EXEEXT)])542 543 544 dnl545 704 dnl $Id$ 546 705 dnl … … 677 836 678 837 838 dnl $Id$ 839 840 AC_DEFUN(RTEMS_ENABLE_TESTS, 841 [ 842 # If the tests are enabled, then find all the test suite Makefiles 843 AC_MSG_CHECKING([if the test suites are enabled? ]) 844 tests_enabled=yes 845 AC_ARG_ENABLE(tests, 846 [ --enable-tests enable tests (default:disabled)], 847 [case "${enableval}" in 848 yes) AC_MSG_RESULT(yes) ;; 849 no) AC_MSG_RESULT(no) ; tests_enabled=no ;; 850 *) AC_MSG_ERROR(bad value ${enableval} for tests option) ;; 851 esac], AC_MSG_RESULT(no)) 852 ]) 853 854 dnl $Id$ 855 dnl 856 dnl FIXME: this needs to be reworked 857 858 AC_DEFUN(RTEMS_ENABLE_HWAPI, 859 [dnl 860 AC_ARG_ENABLE(hwapi, \ 861 [ --enable-hwapi enable hardware API library], 862 [case "${enableval}" in 863 yes) RTEMS_HAS_HWAPI=yes ;; 864 no) RTEMS_HAS_HWAPI=no ;; 865 *) AC_MSG_ERROR(bad value ${enableval} for hwapi option) ;; 866 esac],[RTEMS_HAS_HWAPI=no]) 867 ])dnl 868 -
aclocal/canonical-host.m4
rc0a36429 r04c308c 8 8 case "${target}" in 9 9 # hpux unix port should go here 10 i[3456]86-go32-rtems*)11 rtems_bsp="go32 go32_p5"12 skip_startfiles="yes"13 ;;14 10 i[3456]86-pc-linux*) # unix "simulator" port 15 11 RTEMS_HOST=Linux … … 27 23 AC_SUBST(RTEMS_HOST) 28 24 ])dnl 29 -
aclocal/enable-inlines.m4
rc0a36429 r04c308c 4 4 [AC_ARG_ENABLE(rtems-inlines, 5 5 [ --enable-rtems-inlines enable RTEMS inline functions] 6 [ ( use macros)],6 [ (default:enabled, disable to use macros)], 7 7 [case "${enableval}" in 8 8 yes) RTEMS_USE_MACROS=no ;; -
autogen
rc0a36429 r04c308c 54 54 aclocal -I $aclocal_dir; 55 55 autoconf; 56 test -n "`grep CONFIG_HEADER configure.in`" && autoheader ; 56 57 test -f Makefile.am && automake $verbose ; 57 58 ) -
c/Makefile.in
rc0a36429 r04c308c 82 82 83 83 pre_install_src: env make_src_makefiles 84 cd build-tools/scripts; $(MAKE) 84 cd build-tools/scripts; \ 85 $(MAKE) RTEMS_BSP=${RTEMS_BSP} install-exec-local 85 86 @echo "Order of preinstall directories" 86 87 cat make_src_makefiles … … 113 114 114 115 $(BUILD_DIRS): 115 -$(MKDIR)$(BUILD_DIRS)116 $(RTEMS_ROOT)/mkinstalldirs $(BUILD_DIRS) 116 117 if test -d $(PROJECT_ROOT)/c/src/lib/libhwapi; then \ 117 118 (cd $(PROJECT_ROOT)/c/src/lib/libhwapi ; $(MAKE) mkdirs) \ -
c/build-tools/Makefile.in
rc0a36429 r04c308c 1 # Makefile.in generated automatically by automake 1.4 from Makefile.am 2 3 # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. 4 # This Makefile.in is free software; the Free Software Foundation 5 # gives unlimited permission to copy and/or distribute it, 6 # with or without modifications, as long as this notice is preserved. 7 8 # This program is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 11 # PARTICULAR PURPOSE. 12 1 13 # 2 14 # $Id$ 3 15 # 4 16 5 @SET_MAKE@ 17 18 SHELL = @SHELL@ 19 6 20 srcdir = @srcdir@ 7 21 top_srcdir = @top_srcdir@ 8 top_builddir = ../.. 9 subdir = c/build-tools 22 VPATH = @srcdir@ 23 prefix = @prefix@ 24 exec_prefix = @exec_prefix@ 25 26 bindir = @bindir@ 27 sbindir = @sbindir@ 28 libexecdir = @libexecdir@ 29 datadir = @datadir@ 30 sysconfdir = @sysconfdir@ 31 sharedstatedir = @sharedstatedir@ 32 localstatedir = @localstatedir@ 33 libdir = @libdir@ 34 infodir = @infodir@ 35 mandir = @mandir@ 36 includedir = @includedir@ 37 oldincludedir = /usr/include 38 39 DESTDIR = 40 41 pkgdatadir = $(datadir)/@PACKAGE@ 42 pkglibdir = $(libdir)/@PACKAGE@ 43 pkgincludedir = $(includedir)/@PACKAGE@ 44 45 top_builddir = . 46 AUTOCONF = @AUTOCONF@ 47 AUTOMAKE = @AUTOMAKE@ 48 AUTOHEADER = @AUTOHEADER@ 10 49 11 50 INSTALL = @INSTALL@ 12 13 RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@ 51 INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) 52 INSTALL_DATA = @INSTALL_DATA@ 53 INSTALL_SCRIPT = @INSTALL_SCRIPT@ 54 transform = @program_transform_name@ 55 56 NORMAL_INSTALL = : 57 PRE_INSTALL = : 58 POST_INSTALL = : 59 NORMAL_UNINSTALL = : 60 PRE_UNINSTALL = : 61 POST_UNINSTALL = : 62 host_alias = @host_alias@ 63 host_triplet = @host@ 64 CC = @CC@ 65 EXEEXT = @EXEEXT@ 66 KSH = @KSH@ 67 MAKEINFO = @MAKEINFO@ 68 PACKAGE = @PACKAGE@ 14 69 PROJECT_ROOT = @PROJECT_ROOT@ 15 16 VPATH = @srcdir@ 17 18 include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg 19 include $(RTEMS_ROOT)/make/directory.cfg 20 21 SUB_DIRS=os scripts src 22 23 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 70 RTEMS_ROOT = @RTEMS_ROOT@ 71 RTEMS_TOPdir = @RTEMS_TOPdir@ 72 VERSION = @VERSION@ 73 74 AUTOMAKE_OPTIONS = foreign 75 ACLOCAL = @ACLOCAL@ -I $(RTEMS_TOPdir)/aclocal 76 77 SUBDIRS = scripts src 78 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 79 mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs 80 CONFIG_HEADER = ./src/config.h 81 CONFIG_CLEAN_FILES = 82 DIST_COMMON = Makefile.am Makefile.in aclocal.m4 configure configure.in 83 84 85 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) 86 87 TAR = tar 88 GZIP_ENV = --best 89 all: all-redirect 90 .SUFFIXES: 91 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 92 cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile 93 94 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) 24 95 cd $(top_builddir) \ 25 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 96 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status 97 98 $(ACLOCAL_M4): configure.in 99 cd $(srcdir) && $(ACLOCAL) 100 101 config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 102 $(SHELL) ./config.status --recheck 103 $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) 104 cd $(srcdir) && $(AUTOCONF) 105 106 # This directory's subdirectories are mostly independent; you can cd 107 # into them and run `make' without going through this Makefile. 108 # To change the values of `make' variables: instead of editing Makefiles, 109 # (1) if the variable is set in `config.status', edit `config.status' 110 # (which will cause the Makefiles to be regenerated when you run `make'); 111 # (2) otherwise, pass the desired values on the `make' command line. 112 113 @SET_MAKE@ 114 115 all-recursive install-data-recursive install-exec-recursive \ 116 installdirs-recursive install-recursive uninstall-recursive \ 117 check-recursive installcheck-recursive info-recursive dvi-recursive: 118 @set fnord $(MAKEFLAGS); amf=$$2; \ 119 dot_seen=no; \ 120 target=`echo $@ | sed s/-recursive//`; \ 121 list='$(SUBDIRS)'; for subdir in $$list; do \ 122 echo "Making $$target in $$subdir"; \ 123 if test "$$subdir" = "."; then \ 124 dot_seen=yes; \ 125 local_target="$$target-am"; \ 126 else \ 127 local_target="$$target"; \ 128 fi; \ 129 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 130 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ 131 done; \ 132 if test "$$dot_seen" = "no"; then \ 133 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ 134 fi; test -z "$$fail" 135 136 mostlyclean-recursive clean-recursive distclean-recursive \ 137 maintainer-clean-recursive: 138 @set fnord $(MAKEFLAGS); amf=$$2; \ 139 dot_seen=no; \ 140 rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \ 141 rev="$$subdir $$rev"; \ 142 test "$$subdir" = "." && dot_seen=yes; \ 143 done; \ 144 test "$$dot_seen" = "no" && rev=". $$rev"; \ 145 target=`echo $@ | sed s/-recursive//`; \ 146 for subdir in $$rev; do \ 147 echo "Making $$target in $$subdir"; \ 148 if test "$$subdir" = "."; then \ 149 local_target="$$target-am"; \ 150 else \ 151 local_target="$$target"; \ 152 fi; \ 153 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 154 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ 155 done && test -z "$$fail" 156 tags-recursive: 157 list='$(SUBDIRS)'; for subdir in $$list; do \ 158 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ 159 done 160 161 tags: TAGS 162 163 ID: $(HEADERS) $(SOURCES) $(LISP) 164 list='$(SOURCES) $(HEADERS)'; \ 165 unique=`for i in $$list; do echo $$i; done | \ 166 awk ' { files[$$0] = 1; } \ 167 END { for (i in files) print i; }'`; \ 168 here=`pwd` && cd $(srcdir) \ 169 && mkid -f$$here/ID $$unique $(LISP) 170 171 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) 172 tags=; \ 173 here=`pwd`; \ 174 list='$(SUBDIRS)'; for subdir in $$list; do \ 175 if test "$$subdir" = .; then :; else \ 176 test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \ 177 fi; \ 178 done; \ 179 list='$(SOURCES) $(HEADERS)'; \ 180 unique=`for i in $$list; do echo $$i; done | \ 181 awk ' { files[$$0] = 1; } \ 182 END { for (i in files) print i; }'`; \ 183 test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ 184 || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) 185 186 mostlyclean-tags: 187 188 clean-tags: 189 190 distclean-tags: 191 -rm -f TAGS ID 192 193 maintainer-clean-tags: 194 195 distdir = $(PACKAGE)-$(VERSION) 196 top_distdir = $(distdir) 197 198 # This target untars the dist file and tries a VPATH configuration. Then 199 # it guarantees that the distribution is self-contained by making another 200 # tarfile. 201 distcheck: dist 202 -rm -rf $(distdir) 203 GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz 204 mkdir $(distdir)/=build 205 mkdir $(distdir)/=inst 206 dc_install_base=`cd $(distdir)/=inst && pwd`; \ 207 cd $(distdir)/=build \ 208 && ../configure --srcdir=.. --prefix=$$dc_install_base \ 209 && $(MAKE) $(AM_MAKEFLAGS) \ 210 && $(MAKE) $(AM_MAKEFLAGS) dvi \ 211 && $(MAKE) $(AM_MAKEFLAGS) check \ 212 && $(MAKE) $(AM_MAKEFLAGS) install \ 213 && $(MAKE) $(AM_MAKEFLAGS) installcheck \ 214 && $(MAKE) $(AM_MAKEFLAGS) dist 215 -rm -rf $(distdir) 216 @banner="$(distdir).tar.gz is ready for distribution"; \ 217 dashes=`echo "$$banner" | sed s/./=/g`; \ 218 echo "$$dashes"; \ 219 echo "$$banner"; \ 220 echo "$$dashes" 221 dist: distdir 222 -chmod -R a+r $(distdir) 223 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) 224 -rm -rf $(distdir) 225 dist-all: distdir 226 -chmod -R a+r $(distdir) 227 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) 228 -rm -rf $(distdir) 229 distdir: $(DISTFILES) 230 -rm -rf $(distdir) 231 mkdir $(distdir) 232 -chmod 777 $(distdir) 233 here=`cd $(top_builddir) && pwd`; \ 234 top_distdir=`cd $(distdir) && pwd`; \ 235 distdir=`cd $(distdir) && pwd`; \ 236 cd $(top_srcdir) \ 237 && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile 238 @for file in $(DISTFILES); do \ 239 d=$(srcdir); \ 240 if test -d $$d/$$file; then \ 241 cp -pr $$/$$file $(distdir)/$$file; \ 242 else \ 243 test -f $(distdir)/$$file \ 244 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ 245 || cp -p $$d/$$file $(distdir)/$$file || :; \ 246 fi; \ 247 done 248 for subdir in $(SUBDIRS); do \ 249 if test "$$subdir" = .; then :; else \ 250 test -d $(distdir)/$$subdir \ 251 || mkdir $(distdir)/$$subdir \ 252 || exit 1; \ 253 chmod 777 $(distdir)/$$subdir; \ 254 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \ 255 || exit 1; \ 256 fi; \ 257 done 258 info-am: 259 info: info-recursive 260 dvi-am: 261 dvi: dvi-recursive 262 check-am: all-am 263 check: check-recursive 264 installcheck-am: 265 installcheck: installcheck-recursive 266 install-exec-am: 267 install-exec: install-exec-recursive 268 269 install-data-am: 270 install-data: install-data-recursive 271 272 install-am: all-am 273 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 274 install: install-recursive 275 uninstall-am: 276 uninstall: uninstall-recursive 277 all-am: Makefile 278 all-redirect: all-recursive 279 install-strip: 280 $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install 281 installdirs: installdirs-recursive 282 installdirs-am: 283 284 285 mostlyclean-generic: 286 287 clean-generic: 288 289 distclean-generic: 290 -rm -f Makefile $(CONFIG_CLEAN_FILES) 291 -rm -f config.cache config.log stamp-h stamp-h[0-9]* 292 293 maintainer-clean-generic: 294 mostlyclean-am: mostlyclean-tags mostlyclean-generic 295 296 mostlyclean: mostlyclean-recursive 297 298 clean-am: clean-tags clean-generic mostlyclean-am 299 300 clean: clean-recursive 301 302 distclean-am: distclean-tags distclean-generic clean-am 303 304 distclean: distclean-recursive 305 -rm -f config.status 306 307 maintainer-clean-am: maintainer-clean-tags maintainer-clean-generic \ 308 distclean-am 309 @echo "This command is intended for maintainers to use;" 310 @echo "it deletes files that may require special tools to rebuild." 311 312 maintainer-clean: maintainer-clean-recursive 313 -rm -f config.status 314 315 .PHONY: install-data-recursive uninstall-data-recursive \ 316 install-exec-recursive uninstall-exec-recursive installdirs-recursive \ 317 uninstalldirs-recursive all-recursive check-recursive \ 318 installcheck-recursive info-recursive dvi-recursive \ 319 mostlyclean-recursive distclean-recursive clean-recursive \ 320 maintainer-clean-recursive tags tags-recursive mostlyclean-tags \ 321 distclean-tags clean-tags maintainer-clean-tags distdir info-am info \ 322 dvi-am dvi check check-am installcheck-am installcheck install-exec-am \ 323 install-exec install-data-am install-data install-am install \ 324 uninstall-am uninstall all-redirect all-am all installdirs-am \ 325 installdirs mostlyclean-generic distclean-generic clean-generic \ 326 maintainer-clean-generic clean mostlyclean distclean maintainer-clean 327 328 329 # Tell versions [3.59,3.63) of GNU make to not export all variables. 330 # Otherwise a system limit (for SysV at least) may be exceeded. 331 .NOEXPORT: -
c/build-tools/scripts/Makefile.in
rc0a36429 r04c308c 1 # Makefile.in generated automatically by automake 1.4 from Makefile.am 2 3 # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. 4 # This Makefile.in is free software; the Free Software Foundation 5 # gives unlimited permission to copy and/or distribute it, 6 # with or without modifications, as long as this notice is preserved. 7 8 # This program is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 11 # PARTICULAR PURPOSE. 12 1 13 # 2 14 # $Id$ 3 15 # 4 # RTEMS build tools 5 # NOTE: of course we can't use any of these tools 6 # in this Makefile. Most notably: install-if-change 7 # 8 9 @SET_MAKE@ 16 17 18 SHELL = @SHELL@ 19 10 20 srcdir = @srcdir@ 11 21 top_srcdir = @top_srcdir@ 12 top_builddir = ../../.. 13 subdir = c/build-tools/scripts 22 VPATH = @srcdir@ 23 prefix = @prefix@ 24 exec_prefix = @exec_prefix@ 25 26 bindir = @bindir@ 27 sbindir = @sbindir@ 28 libexecdir = @libexecdir@ 29 datadir = @datadir@ 30 sysconfdir = @sysconfdir@ 31 sharedstatedir = @sharedstatedir@ 32 localstatedir = @localstatedir@ 33 libdir = @libdir@ 34 infodir = @infodir@ 35 mandir = @mandir@ 36 includedir = @includedir@ 37 oldincludedir = /usr/include 38 39 DESTDIR = 40 41 pkgdatadir = $(datadir)/@PACKAGE@ 42 pkglibdir = $(libdir)/@PACKAGE@ 43 pkgincludedir = $(includedir)/@PACKAGE@ 44 45 top_builddir = .. 46 47 ACLOCAL = @ACLOCAL@ 48 AUTOCONF = @AUTOCONF@ 49 AUTOMAKE = @AUTOMAKE@ 50 AUTOHEADER = @AUTOHEADER@ 14 51 15 52 INSTALL = @INSTALL@ 16 17 RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@ 53 INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) 54 INSTALL_DATA = @INSTALL_DATA@ 55 INSTALL_SCRIPT = @INSTALL_SCRIPT@ 56 transform = @program_transform_name@ 57 58 NORMAL_INSTALL = : 59 PRE_INSTALL = : 60 POST_INSTALL = : 61 NORMAL_UNINSTALL = : 62 PRE_UNINSTALL = : 63 POST_UNINSTALL = : 64 host_alias = @host_alias@ 65 host_triplet = @host@ 66 CC = @CC@ 67 EXEEXT = @EXEEXT@ 68 KSH = @KSH@ 69 MAKEINFO = @MAKEINFO@ 70 PACKAGE = @PACKAGE@ 18 71 PROJECT_ROOT = @PROJECT_ROOT@ 19 20 VPATH = @srcdir@ 21 22 include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg 23 include $(RTEMS_ROOT)/make/leaf.cfg 24 25 DESTDIR=$(PROJECT_RELEASE)/build-tools 26 27 BUILD_PGMS=install-if-change rcs-clean lock-directory unlock-directory 28 PGMS = $(BUILD_PGMS) search-id.sh 29 30 CLEAN_ADDITIONS += $(BUILD_PGMS) 31 32 INSTALLED_PGMS=$(PGMS:%=$(DESTDIR)/%) 33 34 all: $(DESTDIR) $(PGMS) install 35 36 $(DESTDIR): 37 @top_srcdir@/mkinstalldirs $@ 38 39 $(INSTALLED_PGMS): $(PGMS) 40 $(INSTALL) $(INSTBINFLAGS) $^ $(DESTDIR) 41 42 install: $(DESTDIR) $(INSTALLED_PGMS) 43 44 %: $(srcdir)/%.in $(top_builddir)/config.status 72 RTEMS_ROOT = @RTEMS_ROOT@ 73 RTEMS_TOPdir = @RTEMS_TOPdir@ 74 VERSION = @VERSION@ 75 76 AUTOMAKE_OPTIONS = foreign 77 78 bin_SCRIPTS = install-if-change lock-directory unlock-directory rcs-clean 79 80 81 noinst_SCRIPTS = search-id.sh 82 mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs 83 CONFIG_HEADER = ../src/config.h 84 CONFIG_CLEAN_FILES = install-if-change lock-directory rcs-clean \ 85 unlock-directory 86 SCRIPTS = $(bin_SCRIPTS) $(noinst_SCRIPTS) 87 88 DIST_COMMON = README Makefile.am Makefile.in install-if-change.in \ 89 lock-directory.in rcs-clean.in unlock-directory.in 90 91 92 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) 93 94 TAR = tar 95 GZIP_ENV = --best 96 all: all-redirect 97 .SUFFIXES: 98 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 99 cd $(top_srcdir) && $(AUTOMAKE) --foreign scripts/Makefile 100 101 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) 45 102 cd $(top_builddir) \ 46 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 103 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 104 105 install-if-change: $(top_builddir)/config.status install-if-change.in 106 cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 107 lock-directory: $(top_builddir)/config.status lock-directory.in 108 cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 109 rcs-clean: $(top_builddir)/config.status rcs-clean.in 110 cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 111 unlock-directory: $(top_builddir)/config.status unlock-directory.in 112 cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 113 114 install-binSCRIPTS: $(bin_SCRIPTS) 115 @$(NORMAL_INSTALL) 116 $(mkinstalldirs) $(DESTDIR)$(bindir) 117 @list='$(bin_SCRIPTS)'; for p in $$list; do \ 118 if test -f $$p; then \ 119 echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \ 120 $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \ 121 else if test -f $(srcdir)/$$p; then \ 122 echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \ 123 $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \ 124 else :; fi; fi; \ 125 done 126 127 uninstall-binSCRIPTS: 128 @$(NORMAL_UNINSTALL) 129 list='$(bin_SCRIPTS)'; for p in $$list; do \ 130 rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \ 131 done 132 tags: TAGS 133 TAGS: 134 135 136 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) 137 138 subdir = scripts 139 140 distdir: $(DISTFILES) 141 here=`cd $(top_builddir) && pwd`; \ 142 top_distdir=`cd $(top_distdir) && pwd`; \ 143 distdir=`cd $(distdir) && pwd`; \ 144 cd $(top_srcdir) \ 145 && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign scripts/Makefile 146 @for file in $(DISTFILES); do \ 147 d=$(srcdir); \ 148 if test -d $$d/$$file; then \ 149 cp -pr $$/$$file $(distdir)/$$file; \ 150 else \ 151 test -f $(distdir)/$$file \ 152 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ 153 || cp -p $$d/$$file $(distdir)/$$file || :; \ 154 fi; \ 155 done 156 info-am: 157 info: info-am 158 dvi-am: 159 dvi: dvi-am 160 check-am: all-am 161 check: check-am 162 installcheck-am: 163 installcheck: installcheck-am 164 install-exec-am: install-binSCRIPTS install-exec-local 165 install-exec: install-exec-am 166 167 install-data-am: 168 install-data: install-data-am 169 170 install-am: all-am 171 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 172 install: install-am 173 uninstall-am: uninstall-binSCRIPTS 174 uninstall: uninstall-am 175 all-am: Makefile $(SCRIPTS) 176 all-redirect: all-am 177 install-strip: 178 $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install 179 installdirs: 180 $(mkinstalldirs) $(DESTDIR)$(bindir) 181 182 183 mostlyclean-generic: 184 185 clean-generic: 186 187 distclean-generic: 188 -rm -f Makefile $(CONFIG_CLEAN_FILES) 189 -rm -f config.cache config.log stamp-h stamp-h[0-9]* 190 191 maintainer-clean-generic: 192 mostlyclean-am: mostlyclean-generic 193 194 mostlyclean: mostlyclean-am 195 196 clean-am: clean-generic mostlyclean-am 197 198 clean: clean-am 199 200 distclean-am: distclean-generic clean-am 201 202 distclean: distclean-am 203 204 maintainer-clean-am: maintainer-clean-generic distclean-am 205 @echo "This command is intended for maintainers to use;" 206 @echo "it deletes files that may require special tools to rebuild." 207 208 maintainer-clean: maintainer-clean-am 209 210 .PHONY: uninstall-binSCRIPTS install-binSCRIPTS tags distdir info-am \ 211 info dvi-am dvi check check-am installcheck-am installcheck \ 212 install-exec-local install-exec-am install-exec install-data-am \ 213 install-data install-am install uninstall-am uninstall all-redirect \ 214 all-am all installdirs mostlyclean-generic distclean-generic \ 215 clean-generic maintainer-clean-generic clean mostlyclean distclean \ 216 maintainer-clean 217 218 219 # 220 # HACK: install to the build-tree 221 # 222 install-exec-local: $(bin_SCRIPTS) 223 $(mkinstalldirs) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools 224 $(INSTALL_SCRIPT) $(bin_SCRIPTS) \ 225 $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools 226 227 preinstall: install-exec-local 228 229 # Tell versions [3.59,3.63) of GNU make to not export all variables. 230 # Otherwise a system limit (for SysV at least) may be exceeded. 231 .NOEXPORT: -
c/build-tools/src/Makefile.in
rc0a36429 r04c308c 1 # Makefile.in generated automatically by automake 1.4 from Makefile.am 2 3 # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. 4 # This Makefile.in is free software; the Free Software Foundation 5 # gives unlimited permission to copy and/or distribute it, 6 # with or without modifications, as long as this notice is preserved. 7 8 # This program is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 11 # PARTICULAR PURPOSE. 12 1 13 # 2 14 # $Id$ 3 15 # 4 16 5 @SET_MAKE@ 17 18 SHELL = @SHELL@ 19 6 20 srcdir = @srcdir@ 7 21 top_srcdir = @top_srcdir@ 8 top_builddir = ../../.. 9 subdir = c/build-tools/src 22 VPATH = @srcdir@ 23 prefix = @prefix@ 24 exec_prefix = @exec_prefix@ 25 26 bindir = @bindir@ 27 sbindir = @sbindir@ 28 libexecdir = @libexecdir@ 29 datadir = @datadir@ 30 sysconfdir = @sysconfdir@ 31 sharedstatedir = @sharedstatedir@ 32 localstatedir = @localstatedir@ 33 libdir = @libdir@ 34 infodir = @infodir@ 35 mandir = @mandir@ 36 includedir = @includedir@ 37 oldincludedir = /usr/include 38 39 DESTDIR = 40 41 pkgdatadir = $(datadir)/@PACKAGE@ 42 pkglibdir = $(libdir)/@PACKAGE@ 43 pkgincludedir = $(includedir)/@PACKAGE@ 44 45 top_builddir = .. 46 47 ACLOCAL = @ACLOCAL@ 48 AUTOCONF = @AUTOCONF@ 49 AUTOMAKE = @AUTOMAKE@ 50 AUTOHEADER = @AUTOHEADER@ 10 51 11 52 INSTALL = @INSTALL@ 12 13 RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@ 53 INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) 54 INSTALL_DATA = @INSTALL_DATA@ 55 INSTALL_SCRIPT = @INSTALL_SCRIPT@ 56 transform = @program_transform_name@ 57 58 NORMAL_INSTALL = : 59 PRE_INSTALL = : 60 POST_INSTALL = : 61 NORMAL_UNINSTALL = : 62 PRE_UNINSTALL = : 63 POST_UNINSTALL = : 64 host_alias = @host_alias@ 65 host_triplet = @host@ 66 CC = @CC@ 67 EXEEXT = @EXEEXT@ 68 KSH = @KSH@ 69 MAKEINFO = @MAKEINFO@ 70 PACKAGE = @PACKAGE@ 14 71 PROJECT_ROOT = @PROJECT_ROOT@ 15 16 exec_prefix = @exec_prefix@ 17 bindir = @bindir@ 18 libdir = @libdir@ 19 includedir = @includedir@ 20 manext = 1 21 mandir = @mandir@/man$(manext) 22 23 # FIXME: $EXEEXT should be set in a central cfg-file used for native 24 # compiling (e.g. gcc.cfg) instead of setting EXEEXE here. 25 EXEEXT=@EXEEXT@ 26 27 VPATH = @srcdir@ 28 29 # we use host compiler in this directory 30 USE_HOST_COMPILER=yes 31 32 # C source names, if any, go here -- minus the .c 33 C_PIECES=cklength eolstrip packhex unhex 34 C_FILES=$(C_PIECES:%=%.c) 35 C_O_FILES=$(C_PIECES:%=$(ARCH)/%.o) 36 37 H_FILES= 38 39 SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) 40 OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES) 41 42 # FIXME: building into $(ARCH) doesn't make sense for host programs 43 PGMS=$(ARCH)/cklength$(EXEEXT) $(ARCH)/eolstrip$(EXEEXT) \ 44 $(ARCH)/packhex$(EXEEXT) $(ARCH)/unhex$(EXEEXT) 45 46 include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg 47 include $(RTEMS_ROOT)/make/leaf.cfg 72 RTEMS_ROOT = @RTEMS_ROOT@ 73 RTEMS_TOPdir = @RTEMS_TOPdir@ 74 VERSION = @VERSION@ 75 76 AUTOMAKE_OPTIONS = foreign 77 78 bin_PROGRAMS = cklength eolstrip packhex unhex 79 80 cklength_SOURCES = cklength.c 81 eolstrip_SOURCES = eolstrip.c 82 packhex_SOURCES = packhex.c 83 unhex_SOURCES = unhex.c 84 mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs 85 CONFIG_HEADER = config.h 86 CONFIG_CLEAN_FILES = 87 bin_PROGRAMS = cklength$(EXEEXT) eolstrip$(EXEEXT) packhex$(EXEEXT) \ 88 unhex$(EXEEXT) 89 PROGRAMS = $(bin_PROGRAMS) 90 91 92 DEFS = @DEFS@ -I. -I$(srcdir) -I. 93 CPPFLAGS = @CPPFLAGS@ 94 LDFLAGS = @LDFLAGS@ 95 LIBS = @LIBS@ 96 cklength_OBJECTS = cklength.o 97 cklength_LDADD = $(LDADD) 98 cklength_DEPENDENCIES = 99 cklength_LDFLAGS = 100 eolstrip_OBJECTS = eolstrip.o 101 eolstrip_LDADD = $(LDADD) 102 eolstrip_DEPENDENCIES = 103 eolstrip_LDFLAGS = 104 packhex_OBJECTS = packhex.o 105 packhex_LDADD = $(LDADD) 106 packhex_DEPENDENCIES = 107 packhex_LDFLAGS = 108 unhex_OBJECTS = unhex.o 109 unhex_LDADD = $(LDADD) 110 unhex_DEPENDENCIES = 111 unhex_LDFLAGS = 112 CFLAGS = @CFLAGS@ 113 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 114 CCLD = $(CC) 115 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ 116 DIST_COMMON = ./stamp-h.in Makefile.am Makefile.in config.h.in 117 118 119 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) 120 121 TAR = tar 122 GZIP_ENV = --best 123 DEP_FILES = .deps/cklength.P .deps/eolstrip.P .deps/packhex.P \ 124 .deps/unhex.P 125 SOURCES = $(cklength_SOURCES) $(eolstrip_SOURCES) $(packhex_SOURCES) $(unhex_SOURCES) 126 OBJECTS = $(cklength_OBJECTS) $(eolstrip_OBJECTS) $(packhex_OBJECTS) $(unhex_OBJECTS) 127 128 all: all-redirect 129 .SUFFIXES: 130 .SUFFIXES: .S .c .o .s 131 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 132 cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile 133 134 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) 135 cd $(top_builddir) \ 136 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 137 138 139 config.h: stamp-h 140 @if test ! -f $@; then \ 141 rm -f stamp-h; \ 142 $(MAKE) stamp-h; \ 143 else :; fi 144 stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status 145 cd $(top_builddir) \ 146 && CONFIG_FILES= CONFIG_HEADERS=src/config.h \ 147 $(SHELL) ./config.status 148 @echo timestamp > stamp-h 2> /dev/null 149 $(srcdir)/config.h.in: $(srcdir)/stamp-h.in 150 @if test ! -f $@; then \ 151 rm -f $(srcdir)/stamp-h.in; \ 152 $(MAKE) $(srcdir)/stamp-h.in; \ 153 else :; fi 154 $(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) 155 cd $(top_srcdir) && $(AUTOHEADER) 156 @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null 157 158 mostlyclean-hdr: 159 160 clean-hdr: 161 162 distclean-hdr: 163 -rm -f config.h 164 165 maintainer-clean-hdr: 166 167 mostlyclean-binPROGRAMS: 168 169 clean-binPROGRAMS: 170 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) 171 172 distclean-binPROGRAMS: 173 174 maintainer-clean-binPROGRAMS: 175 176 install-binPROGRAMS: $(bin_PROGRAMS) 177 @$(NORMAL_INSTALL) 178 $(mkinstalldirs) $(DESTDIR)$(bindir) 179 @list='$(bin_PROGRAMS)'; for p in $$list; do \ 180 if test -f $$p; then \ 181 echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ 182 $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ 183 else :; fi; \ 184 done 185 186 uninstall-binPROGRAMS: 187 @$(NORMAL_UNINSTALL) 188 list='$(bin_PROGRAMS)'; for p in $$list; do \ 189 rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ 190 done 191 192 .s.o: 193 $(COMPILE) -c $< 194 195 .S.o: 196 $(COMPILE) -c $< 197 198 mostlyclean-compile: 199 -rm -f *.o core *.core 200 201 clean-compile: 202 203 distclean-compile: 204 -rm -f *.tab.c 205 206 maintainer-clean-compile: 207 208 cklength$(EXEEXT): $(cklength_OBJECTS) $(cklength_DEPENDENCIES) 209 @rm -f cklength$(EXEEXT) 210 $(LINK) $(cklength_LDFLAGS) $(cklength_OBJECTS) $(cklength_LDADD) $(LIBS) 211 212 eolstrip$(EXEEXT): $(eolstrip_OBJECTS) $(eolstrip_DEPENDENCIES) 213 @rm -f eolstrip$(EXEEXT) 214 $(LINK) $(eolstrip_LDFLAGS) $(eolstrip_OBJECTS) $(eolstrip_LDADD) $(LIBS) 215 216 packhex$(EXEEXT): $(packhex_OBJECTS) $(packhex_DEPENDENCIES) 217 @rm -f packhex$(EXEEXT) 218 $(LINK) $(packhex_LDFLAGS) $(packhex_OBJECTS) $(packhex_LDADD) $(LIBS) 219 220 unhex$(EXEEXT): $(unhex_OBJECTS) $(unhex_DEPENDENCIES) 221 @rm -f unhex$(EXEEXT) 222 $(LINK) $(unhex_LDFLAGS) $(unhex_OBJECTS) $(unhex_LDADD) $(LIBS) 223 224 tags: TAGS 225 226 ID: $(HEADERS) $(SOURCES) $(LISP) 227 list='$(SOURCES) $(HEADERS)'; \ 228 unique=`for i in $$list; do echo $$i; done | \ 229 awk ' { files[$$0] = 1; } \ 230 END { for (i in files) print i; }'`; \ 231 here=`pwd` && cd $(srcdir) \ 232 && mkid -f$$here/ID $$unique $(LISP) 233 234 TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP) 235 tags=; \ 236 here=`pwd`; \ 237 list='$(SOURCES) $(HEADERS)'; \ 238 unique=`for i in $$list; do echo $$i; done | \ 239 awk ' { files[$$0] = 1; } \ 240 END { for (i in files) print i; }'`; \ 241 test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \ 242 || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS) 243 244 mostlyclean-tags: 245 246 clean-tags: 247 248 distclean-tags: 249 -rm -f TAGS ID 250 251 maintainer-clean-tags: 252 253 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) 254 255 subdir = src 256 257 distdir: $(DISTFILES) 258 here=`cd $(top_builddir) && pwd`; \ 259 top_distdir=`cd $(top_distdir) && pwd`; \ 260 distdir=`cd $(distdir) && pwd`; \ 261 cd $(top_srcdir) \ 262 && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign src/Makefile 263 @for file in $(DISTFILES); do \ 264 d=$(srcdir); \ 265 if test -d $$d/$$file; then \ 266 cp -pr $$/$$file $(distdir)/$$file; \ 267 else \ 268 test -f $(distdir)/$$file \ 269 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ 270 || cp -p $$d/$$file $(distdir)/$$file || :; \ 271 fi; \ 272 done 273 274 DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) 275 276 -include $(DEP_FILES) 277 278 mostlyclean-depend: 279 280 clean-depend: 281 282 distclean-depend: 283 -rm -rf .deps 284 285 maintainer-clean-depend: 286 287 %.o: %.c 288 @echo '$(COMPILE) -c $<'; \ 289 $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $< 290 @-cp .deps/$(*F).pp .deps/$(*F).P; \ 291 tr ' ' '\012' < .deps/$(*F).pp \ 292 | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ 293 >> .deps/$(*F).P; \ 294 rm .deps/$(*F).pp 295 296 %.lo: %.c 297 @echo '$(LTCOMPILE) -c $<'; \ 298 $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< 299 @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ 300 < .deps/$(*F).pp > .deps/$(*F).P; \ 301 tr ' ' '\012' < .deps/$(*F).pp \ 302 | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ 303 >> .deps/$(*F).P; \ 304 rm -f .deps/$(*F).pp 305 info-am: 306 info: info-am 307 dvi-am: 308 dvi: dvi-am 309 check-am: all-am 310 check: check-am 311 installcheck-am: 312 installcheck: installcheck-am 313 all-recursive-am: config.h 314 $(MAKE) $(AM_MAKEFLAGS) all-recursive 315 316 install-exec-am: install-binPROGRAMS install-exec-local 317 install-exec: install-exec-am 318 319 install-data-am: 320 install-data: install-data-am 321 322 install-am: all-am 323 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 324 install: install-am 325 uninstall-am: uninstall-binPROGRAMS 326 uninstall: uninstall-am 327 all-am: Makefile $(PROGRAMS) config.h 328 all-redirect: all-am 329 install-strip: 330 $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install 331 installdirs: 332 $(mkinstalldirs) $(DESTDIR)$(bindir) 333 334 335 mostlyclean-generic: 336 337 clean-generic: 338 339 distclean-generic: 340 -rm -f Makefile $(CONFIG_CLEAN_FILES) 341 -rm -f config.cache config.log stamp-h stamp-h[0-9]* 342 343 maintainer-clean-generic: 344 mostlyclean-am: mostlyclean-hdr mostlyclean-binPROGRAMS \ 345 mostlyclean-compile mostlyclean-tags mostlyclean-depend \ 346 mostlyclean-generic 347 348 mostlyclean: mostlyclean-am 349 350 clean-am: clean-hdr clean-binPROGRAMS clean-compile clean-tags \ 351 clean-depend clean-generic mostlyclean-am 352 353 clean: clean-am 354 355 distclean-am: distclean-hdr distclean-binPROGRAMS distclean-compile \ 356 distclean-tags distclean-depend distclean-generic \ 357 clean-am 358 359 distclean: distclean-am 360 361 maintainer-clean-am: maintainer-clean-hdr maintainer-clean-binPROGRAMS \ 362 maintainer-clean-compile maintainer-clean-tags \ 363 maintainer-clean-depend maintainer-clean-generic \ 364 distclean-am 365 @echo "This command is intended for maintainers to use;" 366 @echo "it deletes files that may require special tools to rebuild." 367 368 maintainer-clean: maintainer-clean-am 369 370 .PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \ 371 mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \ 372 maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \ 373 mostlyclean-compile distclean-compile clean-compile \ 374 maintainer-clean-compile tags mostlyclean-tags distclean-tags \ 375 clean-tags maintainer-clean-tags distdir mostlyclean-depend \ 376 distclean-depend clean-depend maintainer-clean-depend info-am info \ 377 dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \ 378 install-exec-local install-exec-am install-exec install-data-am \ 379 install-data install-am install uninstall-am uninstall all-redirect \ 380 all-am all installdirs mostlyclean-generic distclean-generic \ 381 clean-generic maintainer-clean-generic clean mostlyclean distclean \ 382 maintainer-clean 383 48 384 49 385 # 50 # (OPTIONAL) Add local stuff here using +=386 # HACK: install to the build-tree 51 387 # 52 53 DEFINES += 54 CPPFLAGS += -I. 55 CFLAGS += 56 57 LD_PATHS += 58 LD_LIBS += 59 LDFLAGS += 60 61 # 62 # Add your list of files to delete here. The config files 63 # already know how to delete some stuff, so you may want 64 # to just run 'make clean' first to see what gets missed. 65 # 'make clobber' already includes 'make clean' 66 # 67 68 CLEAN_ADDITIONS += $(HOST_ARCH) 69 CLOBBER_ADDITIONS += 70 71 DESTDIR=${PROJECT_RELEASE}/build-tools 72 73 $(DESTDIR): 74 @top_srcdir@/mkinstalldirs $@ 75 76 all: $(ARCH) $(DESTDIR) $(SRCS) $(PGMS) 77 $(INSTALL) $(INSTBINFLAGS) $(PGMS) $(DESTDIR) 78 79 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 80 cd $(top_builddir) \ 81 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 388 install-exec-local: $(bin_PROGRAMS) 389 $(mkinstalldirs) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools 390 $(INSTALL_PROGRAM) $(bin_PROGRAMS) \ 391 $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools 392 393 preinstall: install-exec-local 394 395 # Tell versions [3.59,3.63) of GNU make to not export all variables. 396 # Otherwise a system limit (for SysV at least) may be exceeded. 397 .NOEXPORT: -
c/build-tools/src/config.h.in
rc0a36429 r04c308c 1 /* 2 * This file is editted automatically by autoconf. 3 * 4 * $Id$ 5 */ 1 /* src/config.h.in. Generated automatically from configure.in by autoheader. */ 6 2 7 3 /* Define if you have the strerror function. */ 8 4 #undef HAVE_STRERROR 9 -
c/src/lib/libcpu/i386/Makefile.in
rc0a36429 r04c308c 62 62 63 63 preinstall : 64 $( MKDIR)$(PROJECT_INCLUDE)/libcpu64 $(RTEMS_ROOT)/mkinstalldirs $(PROJECT_INCLUDE)/libcpu 65 65 $(INSTALL_CHANGE) -m 444 ${H_FILES} $(PROJECT_INCLUDE)/libcpu 66 66 -
c/src/lib/libcpu/powerpc/mpc860/include/Makefile.in
rc0a36429 r04c308c 29 29 30 30 install: 31 test -d $(PROJECT_INCLUDE)/mpc860 || $(MKDIR)$(PROJECT_INCLUDE)/mpc86031 $(RTEMS_ROOT)/mkinstalldirs $(PROJECT_INCLUDE)/mpc860 32 32 $(INSTALL_CHANGE) -m 444 $(H_FILES) $(PROJECT_INCLUDE)/mpc860 33 33 -
c/src/lib/libcpu/sh/sh7032/include/Makefile.in
rc0a36429 r04c308c 32 32 33 33 install: 34 test -d $(PROJECT_INCLUDE)/sh || $(MKDIR)$(PROJECT_INCLUDE)/sh34 $(RTEMS_ROOT)/mkinstalldirs $(PROJECT_INCLUDE)/sh 35 35 $(INSTALL_CHANGE) -m 444 $(H_FILES) $(PROJECT_INCLUDE)/sh 36 36 -
c/src/lib/libmisc/wrapup/Makefile.in
rc0a36429 r04c308c 38 38 $(LIB): ${LIBS} $(RELS) 39 39 $(RM) -r $(ARCH) 40 $(MKDIR)$(ARCH)40 mkdir $(ARCH) 41 41 cd $(ARCH); for lib in $(LIBS:%=../%); do \ 42 42 $(AR) -xv $$lib; \ -
c/src/libmisc/wrapup/Makefile.in
rc0a36429 r04c308c 38 38 $(LIB): ${LIBS} $(RELS) 39 39 $(RM) -r $(ARCH) 40 $(MKDIR)$(ARCH)40 mkdir $(ARCH) 41 41 cd $(ARCH); for lib in $(LIBS:%=../%); do \ 42 42 $(AR) -xv $$lib; \ -
configure
rc0a36429 r04c308c 5 5 6 6 7 # Check to see if we're running under Cygwin32, without using8 # AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".9 # Otherwise set it to "no".10 11 12 13 14 15 # Check to see if we're running under Win32, without using16 # AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe".17 # Otherwise set it to "".18 7 19 8 … … 49 38 --with-cross-host=HOST host (cygnus)" 50 39 ac_help="$ac_help 51 \ 52 --enable-gmake-print-directory enable GNU Make's print directory" 40 --enable-gmake-print-directory enable GNU Make's print directory" 53 41 ac_help="$ac_help 54 \ 55 --enable-multiprocessing enable multiprocessing interface" 42 --enable-multiprocessing enable multiprocessing interface" 56 43 ac_help="$ac_help 57 \ 58 --enable-posix enable posix interface" 44 --enable-posix enable posix interface" 59 45 ac_help="$ac_help 60 \ 61 --enable-networking enable TCP/IP stack" 46 --enable-networking enable TCP/IP stack" 62 47 ac_help="$ac_help 63 \ 64 --enable-rdbg enable remote debugger" 48 --enable-rdbg enable remote debugger" 65 49 ac_help="$ac_help 66 \ 67 --enable-rtems-inlines enable RTEMS inline functions, the default (disable to use macros)"50 --enable-rtems-inlines enable RTEMS inline functions 51 (default:enabled, disable to use macros)" 68 52 ac_help="$ac_help 69 \ 70 --enable-cxx enable C++ support,and build the rtems++ library"53 --enable-cxx enable C++ support, 54 and build the rtems++ library" 71 55 ac_help="$ac_help 72 \ 73 --enable-gcc28 enable use of gcc 2.8.x features" 56 --enable-gcc28 enable use of gcc 2.8.x features" 74 57 ac_help="$ac_help 75 \ 76 --enable-libcdir=directory set the directory for the C library" 58 --enable-libcdir=directory set the directory for the C library" 77 59 ac_help="$ac_help 78 --enable-bare-cpu-cflags \79 specify a particular cpu cflag(bare bsp specific)"60 --enable-bare-cpu-cflags specify a particular cpu cflag 61 (bare bsp specific)" 80 62 ac_help="$ac_help 81 --enable-bare-cpu-model \82 specify a particular cpu model(bare bsp specific)"63 --enable-bare-cpu-model specify a particular cpu model 64 (bare bsp specific)" 83 65 ac_help="$ac_help 84 66 \ 85 67 --enable-rtemsbsp=bsp1 bsp2 .. BSPs to include in build" 86 68 ac_help="$ac_help 87 \ 88 --enable-tests enable tests (default:disabled)" 69 --enable-tests enable tests (default:disabled)" 89 70 ac_help="$ac_help 90 71 \ 91 --enable-hwapi enable hardware API library"72 --enable-hwapi enable hardware API library" 92 73 93 74 # Initialize some variables set by options. … … 600 581 601 582 583 RTEMS_TOPdir="."; 584 585 586 PROJECT_ROOT=`pwd`/$RTEMS_TOPdir; 587 588 589 RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir; 590 591 602 592 603 593 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 604 echo "configure: 605: checking whether ${MAKE-make} sets \${MAKE}" >&5594 echo "configure:595: checking whether ${MAKE-make} sets \${MAKE}" >&5 605 595 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 606 596 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then … … 675 665 676 666 echo $ac_n "checking host system type""... $ac_c" 1>&6 677 echo "configure:6 78: checking host system type" >&5667 echo "configure:668: checking host system type" >&5 678 668 679 669 host_alias=$host … … 696 686 697 687 echo $ac_n "checking target system type""... $ac_c" 1>&6 698 echo "configure:6 99: checking target system type" >&5688 echo "configure:689: checking target system type" >&5 699 689 700 690 target_alias=$target … … 714 704 715 705 echo $ac_n "checking build system type""... $ac_c" 1>&6 716 echo "configure:7 17: checking build system type" >&5706 echo "configure:707: checking build system type" >&5 717 707 718 708 build_alias=$build … … 736 726 program_prefix=${target_alias}- 737 727 728 738 729 # Check whether --with-cross-host or --without-cross-host was given. 739 730 if test "${with_cross_host+set}" = set; then … … 744 735 745 736 737 746 738 # Check whether --enable-gmake-print-directory or --disable-gmake-print-directory was given. 747 739 if test "${enable_gmake_print_directory+set}" = set; then 748 740 enableval="$enable_gmake_print_directory" 749 \ 750 case "${enableval}" in 741 case "${enableval}" in 751 742 yes) RTEMS_USE_OWN_PDIR=no ;; 752 743 no) RTEMS_USE_OWN_PDIR=yes ;; 753 *) { echo "configure: error: bad value ${enableval} for gmake-print-directory option" 1>&2; exit 1; } ;; 744 *) { echo "configure: error: bad value ${enableval} for gmake-print-directory option" 1>&2; exit 1; } 745 ;; 754 746 esac 755 747 else 756 748 RTEMS_USE_OWN_PDIR=yes 757 749 fi 750 758 751 759 752 … … 761 754 if test "${enable_multiprocessing+set}" = set; then 762 755 enableval="$enable_multiprocessing" 763 \ 764 case "${enableval}" in 756 case "${enableval}" in 765 757 yes) RTEMS_HAS_MULTIPROCESSING=yes ;; 766 758 no) RTEMS_HAS_MULTIPROCESSING=no ;; … … 772 764 773 765 766 774 767 # Check whether --enable-posix or --disable-posix was given. 775 768 if test "${enable_posix+set}" = set; then 776 769 enableval="$enable_posix" 777 \ 778 case "${enableval}" in 770 case "${enableval}" in 779 771 yes) RTEMS_HAS_POSIX_API=yes ;; 780 772 no) RTEMS_HAS_POSIX_API=no ;; … … 784 776 RTEMS_HAS_POSIX_API=yes 785 777 fi 778 779 780 case "${target}" in 781 # hpux unix port should go here 782 i[3456]86-go32-rtems*) 783 RTEMS_HAS_POSIX_API=no 784 ;; 785 i[3456]86-pc-linux*) # unix "simulator" port 786 RTEMS_HAS_POSIX_API=no 787 ;; 788 i[3456]86-*freebsd2*) # unix "simulator" port 789 RTEMS_HAS_POSIX_API=no 790 ;; 791 no_cpu-*rtems*) 792 RTEMS_HAS_POSIX_API=no 793 ;; 794 sparc-sun-solaris*) # unix "simulator" port 795 RTEMS_HAS_POSIX_API=no 796 ;; 797 *) 798 ;; 799 esac 800 786 801 787 802 … … 789 804 if test "${enable_networking+set}" = set; then 790 805 enableval="$enable_networking" 791 \ 792 case "${enableval}" in 806 case "${enableval}" in 793 807 yes) RTEMS_HAS_NETWORKING=yes ;; 794 808 no) RTEMS_HAS_NETWORKING=no ;; … … 800 814 801 815 816 802 817 # Check whether --enable-rdbg or --disable-rdbg was given. 803 818 if test "${enable_rdbg+set}" = set; then 804 819 enableval="$enable_rdbg" 805 \ 806 case "${enableval}" in 820 case "${enableval}" in 807 821 yes) RTEMS_HAS_RDBG=yes ;; 808 822 no) RTEMS_HAS_RDBG=no ;; … … 817 831 if test "${enable_rtems_inlines+set}" = set; then 818 832 enableval="$enable_rtems_inlines" 819 \ 820 case "${enableval}" in 833 case "${enableval}" in 821 834 yes) RTEMS_USE_MACROS=no ;; 822 835 no) RTEMS_USE_MACROS=yes ;; … … 828 841 829 842 843 830 844 # Check whether --enable-cxx or --disable-cxx was given. 831 845 if test "${enable_cxx+set}" = set; then 832 846 enableval="$enable_cxx" 833 \ 834 case "${enableval}" in 847 case "${enableval}" in 835 848 yes) RTEMS_HAS_CPLUSPLUS=yes ;; 836 849 no) RTEMS_HAS_CPLUSPLUS=no ;; … … 842 855 843 856 857 844 858 # Check whether --enable-gcc28 or --disable-gcc28 was given. 845 859 if test "${enable_gcc28+set}" = set; then 846 860 enableval="$enable_gcc28" 847 \ 848 case "${enableval}" in 861 case "${enableval}" in 849 862 yes) RTEMS_USE_GCC272=no ;; 850 863 no) RTEMS_USE_GCC272=yes ;; … … 856 869 857 870 871 858 872 # Check whether --enable-libcdir or --disable-libcdir was given. 859 873 if test "${enable_libcdir+set}" = set; then 860 874 enableval="$enable_libcdir" 861 \ 862 RTEMS_LIBC_DIR="${enableval}" ; \ 875 RTEMS_LIBC_DIR="${enableval}" ; \ 863 876 test -d ${enableval} || { echo "configure: error: "$enableval is not a directory" " 1>&2; exit 1; } 864 877 fi 878 865 879 866 880 … … 889 903 890 904 905 891 906 RTEMS_PREFIX=${target_cpu}-${target_vendor} 892 907 … … 895 910 set dummy cat; ac_word=$2 896 911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 897 echo "configure: 898: checking for $ac_word" >&5912 echo "configure:913: checking for $ac_word" >&5 898 913 if eval "test \"`echo '$''{'ac_cv_path_CAT'+set}'`\" = set"; then 899 914 echo $ac_n "(cached) $ac_c" 1>&6 … … 930 945 set dummy rm; ac_word=$2 931 946 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 932 echo "configure:9 33: checking for $ac_word" >&5947 echo "configure:948: checking for $ac_word" >&5 933 948 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then 934 949 echo $ac_n "(cached) $ac_c" 1>&6 … … 965 980 set dummy cp; ac_word=$2 966 981 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 967 echo "configure:9 68: checking for $ac_word" >&5982 echo "configure:983: checking for $ac_word" >&5 968 983 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then 969 984 echo $ac_n "(cached) $ac_c" 1>&6 … … 1000 1015 set dummy mv; ac_word=$2 1001 1016 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1002 echo "configure:10 03: checking for $ac_word" >&51017 echo "configure:1018: checking for $ac_word" >&5 1003 1018 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then 1004 1019 echo $ac_n "(cached) $ac_c" 1>&6 … … 1035 1050 set dummy ln; ac_word=$2 1036 1051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1037 echo "configure:10 38: checking for $ac_word" >&51052 echo "configure:1053: checking for $ac_word" >&5 1038 1053 if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then 1039 1054 echo $ac_n "(cached) $ac_c" 1>&6 … … 1068 1083 1069 1084 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1070 echo "configure:10 71: checking whether ln -s works" >&51085 echo "configure:1086: checking whether ln -s works" >&5 1071 1086 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1072 1087 echo $ac_n "(cached) $ac_c" 1>&6 … … 1091 1106 set dummy chmod; ac_word=$2 1092 1107 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1093 echo "configure:1 094: checking for $ac_word" >&51108 echo "configure:1109: checking for $ac_word" >&5 1094 1109 if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then 1095 1110 echo $ac_n "(cached) $ac_c" 1>&6 … … 1126 1141 set dummy sort; ac_word=$2 1127 1142 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1128 echo "configure:11 29: checking for $ac_word" >&51143 echo "configure:1144: checking for $ac_word" >&5 1129 1144 if eval "test \"`echo '$''{'ac_cv_path_SORT'+set}'`\" = set"; then 1130 1145 echo $ac_n "(cached) $ac_c" 1>&6 … … 1170 1185 # ./install, which can be erroneously created by make from ./install.sh. 1171 1186 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1172 echo "configure:11 73: checking for a BSD compatible install" >&51187 echo "configure:1188: checking for a BSD compatible install" >&5 1173 1188 if test -z "$INSTALL"; then 1174 1189 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then … … 1226 1241 set dummy perl; ac_word=$2 1227 1242 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1228 echo "configure:12 29: checking for $ac_word" >&51243 echo "configure:1244: checking for $ac_word" >&5 1229 1244 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then 1230 1245 echo $ac_n "(cached) $ac_c" 1>&6 … … 1268 1283 set dummy mkdir; ac_word=$2 1269 1284 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1270 echo "configure:12 71: checking for $ac_word" >&51285 echo "configure:1286: checking for $ac_word" >&5 1271 1286 if eval "test \"`echo '$''{'ac_cv_path_MKDIR'+set}'`\" = set"; then 1272 1287 echo $ac_n "(cached) $ac_c" 1>&6 … … 1304 1319 1305 1320 echo $ac_n "checking for working $MKDIR -m 0755""... $ac_c" 1>&6 1306 echo "configure:13 07: checking for working $MKDIR -m 0755" >&51321 echo "configure:1322: checking for working $MKDIR -m 0755" >&5 1307 1322 if eval "test \"`echo '$''{'rtems_cv_prog_MKDIR_P'+set}'`\" = set"; then 1308 1323 echo $ac_n "(cached) $ac_c" 1>&6 … … 1321 1336 1322 1337 echo $ac_n "checking for working $MKDIR -p""... $ac_c" 1>&6 1323 echo "configure:13 24: checking for working $MKDIR -p" >&51338 echo "configure:1339: checking for working $MKDIR -p" >&5 1324 1339 if eval "test \"`echo '$''{'rtems_cv_prog_mkdir_p'+set}'`\" = set"; then 1325 1340 echo $ac_n "(cached) $ac_c" 1>&6 … … 1341 1356 set dummy touch; ac_word=$2 1342 1357 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1343 echo "configure:13 44: checking for $ac_word" >&51358 echo "configure:1359: checking for $ac_word" >&5 1344 1359 if eval "test \"`echo '$''{'ac_cv_path_TOUCH'+set}'`\" = set"; then 1345 1360 echo $ac_n "(cached) $ac_c" 1>&6 … … 1376 1391 set dummy cmp; ac_word=$2 1377 1392 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1378 echo "configure:13 79: checking for $ac_word" >&51393 echo "configure:1394: checking for $ac_word" >&5 1379 1394 if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then 1380 1395 echo $ac_n "(cached) $ac_c" 1>&6 … … 1412 1427 set dummy sed; ac_word=$2 1413 1428 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1414 echo "configure:14 15: checking for $ac_word" >&51429 echo "configure:1430: checking for $ac_word" >&5 1415 1430 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then 1416 1431 echo $ac_n "(cached) $ac_c" 1>&6 … … 1449 1464 set dummy $ac_prog; ac_word=$2 1450 1465 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1451 echo "configure:14 52: checking for $ac_word" >&51466 echo "configure:1467: checking for $ac_word" >&5 1452 1467 if eval "test \"`echo '$''{'ac_cv_path_M4'+set}'`\" = set"; then 1453 1468 echo $ac_n "(cached) $ac_c" 1>&6 … … 1491 1506 set dummy $ac_prog; ac_word=$2 1492 1507 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1493 echo "configure:1 494: checking for $ac_word" >&51508 echo "configure:1509: checking for $ac_word" >&5 1494 1509 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then 1495 1510 echo $ac_n "(cached) $ac_c" 1>&6 … … 1541 1556 1542 1557 echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6 1543 echo "configure:15 44: checking rtems target cpu" >&51558 echo "configure:1559: checking rtems target cpu" >&5 1544 1559 case "${target}" in 1545 1560 # hpux unix port should go here … … 1569 1584 1570 1585 1586 1587 # Is this a supported CPU? 1588 echo $ac_n "checking if cpu $target_cpu is supported""... $ac_c" 1>&6 1589 echo "configure:1590: checking if cpu $target_cpu is supported" >&5 1590 if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$target_cpu"; then 1591 echo "$ac_t""yes" 1>&6 1592 else 1593 { echo "configure: error: no" 1>&2; exit 1; } 1594 fi 1595 1596 1597 RTEMS_HOST=$host_os 1571 1598 case "${target}" in 1572 1599 # hpux unix port should go here 1573 i[3456]86-go32-rtems*)1574 rtems_bsp="go32 go32_p5"1575 skip_startfiles="yes"1576 RTEMS_HAS_POSIX_API=no1577 ;;1578 1600 i[3456]86-pc-linux*) # unix "simulator" port 1579 1601 RTEMS_HOST=Linux 1580 # override these settings1581 RTEMS_HAS_POSIX_API=no1582 1602 ;; 1583 1603 i[3456]86-*freebsd2*) # unix "simulator" port 1584 1604 RTEMS_HOST=FreeBSD 1585 # override these settings1586 RTEMS_HAS_POSIX_API=no1587 ;;1588 no_cpu-*rtems*)1589 RTEMS_HAS_POSIX_API=no1590 1605 ;; 1591 1606 sparc-sun-solaris*) # unix "simulator" port 1592 1607 RTEMS_HOST=Solaris 1593 # override these settings1594 RTEMS_HAS_POSIX_API=no1595 1608 ;; 1596 1609 *) … … 1598 1611 esac 1599 1612 1613 1614 1615 case "${target}" in 1616 i[3456]86-go32-rtems*) 1617 rtems_bsp="go32 go32_p5" 1618 skip_startfiles="yes" 1619 ;; 1620 *) 1621 ;; 1622 esac 1600 1623 1601 1624 # Override the set of BSPs to be built. … … 1609 1632 1610 1633 1611 # Is this a supported CPU?1612 echo $ac_n "checking if cpu $target_cpu is supported""... $ac_c" 1>&61613 echo "configure:1614: checking if cpu $target_cpu is supported" >&51614 if test -d "$srcdir/c/src/exec/score/cpu/$target_cpu"; then1615 echo "$ac_t""yes" 1>&61616 else1617 { echo "configure: error: no" 1>&2; exit 1; }1618 fi1619 1620 1634 1621 1635 if [ "${program_prefix}" = "NONE" ] ; then … … 1635 1649 set dummy $ac_prog; ac_word=$2 1636 1650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1637 echo "configure:16 38: checking for $ac_word" >&51651 echo "configure:1652: checking for $ac_word" >&5 1638 1652 if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then 1639 1653 echo $ac_n "(cached) $ac_c" 1>&6 … … 1679 1693 1680 1694 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1681 echo "configure:16 82: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&51695 echo "configure:1696: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1682 1696 1683 1697 ac_ext=c … … 1690 1704 cat > conftest.$ac_ext << EOF 1691 1705 1692 #line 1 693"configure"1706 #line 1707 "configure" 1693 1707 #include "confdefs.h" 1694 1708 1695 1709 main(){return(0);} 1696 1710 EOF 1697 if { (eval echo configure:1 698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1711 if { (eval echo configure:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1698 1712 ac_cv_prog_cc_works=yes 1699 1713 # If we can't run a trivial program, we are probably using a cross compiler. … … 1721 1735 fi 1722 1736 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1723 echo "configure:17 24: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&51737 echo "configure:1738: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1724 1738 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1725 1739 cross_compiling=$ac_cv_prog_cc_cross 1726 1740 1727 1741 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1728 echo "configure:17 29: checking whether we are using GNU C" >&51742 echo "configure:1743: checking whether we are using GNU C" >&5 1729 1743 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1730 1744 echo $ac_n "(cached) $ac_c" 1>&6 … … 1735 1749 #endif 1736 1750 EOF 1737 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:17 38: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then1751 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1738 1752 ac_cv_prog_gcc=yes 1739 1753 else … … 1750 1764 CFLAGS= 1751 1765 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1752 echo "configure:17 53: checking whether ${CC-cc} accepts -g" >&51766 echo "configure:1767: checking whether ${CC-cc} accepts -g" >&5 1753 1767 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1754 1768 echo $ac_n "(cached) $ac_c" 1>&6 … … 1792 1806 1793 1807 echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6 1794 echo "configure:1 795: checking whether $CC_FOR_TARGET accepts -specs" >&51808 echo "configure:1809: checking whether $CC_FOR_TARGET accepts -specs" >&5 1795 1809 if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then 1796 1810 echo $ac_n "(cached) $ac_c" 1>&6 … … 1813 1827 1814 1828 echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6 1815 echo "configure:18 16: checking whether $CC_FOR_TARGET accepts --pipe" >&51829 echo "configure:1830: checking whether $CC_FOR_TARGET accepts --pipe" >&5 1816 1830 if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then 1817 1831 echo $ac_n "(cached) $ac_c" 1>&6 … … 1854 1868 set dummy $ac_prog; ac_word=$2 1855 1869 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1856 echo "configure:18 57: checking for $ac_word" >&51870 echo "configure:1871: checking for $ac_word" >&5 1857 1871 if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then 1858 1872 echo $ac_n "(cached) $ac_c" 1>&6 … … 1898 1912 1899 1913 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1900 echo "configure:19 01: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&51914 echo "configure:1915: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 1901 1915 1902 1916 ac_ext=C … … 1909 1923 cat > conftest.$ac_ext << EOF 1910 1924 1911 #line 19 12"configure"1925 #line 1926 "configure" 1912 1926 #include "confdefs.h" 1913 1927 1914 1928 int main(){return(0);} 1915 1929 EOF 1916 if { (eval echo configure:19 17: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1930 if { (eval echo configure:1931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1917 1931 ac_cv_prog_cxx_works=yes 1918 1932 # If we can't run a trivial program, we are probably using a cross compiler. … … 1940 1954 fi 1941 1955 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1942 echo "configure:19 43: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&51956 echo "configure:1957: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 1943 1957 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 1944 1958 cross_compiling=$ac_cv_prog_cxx_cross 1945 1959 1946 1960 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 1947 echo "configure:19 48: checking whether we are using GNU C++" >&51961 echo "configure:1962: checking whether we are using GNU C++" >&5 1948 1962 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 1949 1963 echo $ac_n "(cached) $ac_c" 1>&6 … … 1954 1968 #endif 1955 1969 EOF 1956 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:19 57: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then1970 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1957 1971 ac_cv_prog_gxx=yes 1958 1972 else … … 1969 1983 CXXFLAGS= 1970 1984 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 1971 echo "configure:19 72: checking whether ${CXX-g++} accepts -g" >&51985 echo "configure:1986: checking whether ${CXX-g++} accepts -g" >&5 1972 1986 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 1973 1987 echo $ac_n "(cached) $ac_c" 1>&6 … … 2023 2037 2024 2038 echo $ac_n "checking target's ar""... $ac_c" 1>&6 2025 echo "configure:20 26: checking target's ar" >&52039 echo "configure:2040: checking target's ar" >&5 2026 2040 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then 2027 2041 echo $ac_n "(cached) $ac_c" 1>&6 … … 2056 2070 # intends 2057 2071 echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6 2058 echo "configure:20 59: checking whether environment variable AR_FOR_TARGET is an absolute path" >&52072 echo "configure:2073: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5 2059 2073 case "$AR_FOR_TARGET" in 2060 2074 /*) # valid … … 2073 2087 set dummy "$program_prefix"ar; ac_word=$2 2074 2088 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2075 echo "configure:20 76: checking for $ac_word" >&52089 echo "configure:2090: checking for $ac_word" >&5 2076 2090 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then 2077 2091 echo $ac_n "(cached) $ac_c" 1>&6 … … 2110 2124 2111 2125 echo $ac_n "checking target's as""... $ac_c" 1>&6 2112 echo "configure:21 13: checking target's as" >&52126 echo "configure:2127: checking target's as" >&5 2113 2127 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then 2114 2128 echo $ac_n "(cached) $ac_c" 1>&6 … … 2143 2157 # intends 2144 2158 echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6 2145 echo "configure:21 46: checking whether environment variable AS_FOR_TARGET is an absolute path" >&52159 echo "configure:2160: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5 2146 2160 case "$AS_FOR_TARGET" in 2147 2161 /*) # valid … … 2160 2174 set dummy "$program_prefix"as; ac_word=$2 2161 2175 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2162 echo "configure:21 63: checking for $ac_word" >&52176 echo "configure:2177: checking for $ac_word" >&5 2163 2177 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then 2164 2178 echo $ac_n "(cached) $ac_c" 1>&6 … … 2197 2211 2198 2212 echo $ac_n "checking target's ld""... $ac_c" 1>&6 2199 echo "configure:22 00: checking target's ld" >&52213 echo "configure:2214: checking target's ld" >&5 2200 2214 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then 2201 2215 echo $ac_n "(cached) $ac_c" 1>&6 … … 2230 2244 # intends 2231 2245 echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6 2232 echo "configure:22 33: checking whether environment variable LD_FOR_TARGET is an absolute path" >&52246 echo "configure:2247: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5 2233 2247 case "$LD_FOR_TARGET" in 2234 2248 /*) # valid … … 2247 2261 set dummy "$program_prefix"ld; ac_word=$2 2248 2262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2249 echo "configure:22 50: checking for $ac_word" >&52263 echo "configure:2264: checking for $ac_word" >&5 2250 2264 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then 2251 2265 echo $ac_n "(cached) $ac_c" 1>&6 … … 2284 2298 2285 2299 echo $ac_n "checking target's nm""... $ac_c" 1>&6 2286 echo "configure:2 287: checking target's nm" >&52300 echo "configure:2301: checking target's nm" >&5 2287 2301 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then 2288 2302 echo $ac_n "(cached) $ac_c" 1>&6 … … 2317 2331 # intends 2318 2332 echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6 2319 echo "configure:23 20: checking whether environment variable NM_FOR_TARGET is an absolute path" >&52333 echo "configure:2334: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5 2320 2334 case "$NM_FOR_TARGET" in 2321 2335 /*) # valid … … 2334 2348 set dummy "$program_prefix"nm; ac_word=$2 2335 2349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2336 echo "configure:23 37: checking for $ac_word" >&52350 echo "configure:2351: checking for $ac_word" >&5 2337 2351 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then 2338 2352 echo $ac_n "(cached) $ac_c" 1>&6 … … 2372 2386 2373 2387 echo $ac_n "checking target's ranlib""... $ac_c" 1>&6 2374 echo "configure:23 75: checking target's ranlib" >&52388 echo "configure:2389: checking target's ranlib" >&5 2375 2389 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then 2376 2390 echo $ac_n "(cached) $ac_c" 1>&6 … … 2405 2419 # intends 2406 2420 echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6 2407 echo "configure:24 08: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&52421 echo "configure:2422: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5 2408 2422 case "$RANLIB_FOR_TARGET" in 2409 2423 /*) # valid … … 2422 2436 set dummy "$program_prefix"ranlib; ac_word=$2 2423 2437 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2424 echo "configure:24 25: checking for $ac_word" >&52438 echo "configure:2439: checking for $ac_word" >&5 2425 2439 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then 2426 2440 echo $ac_n "(cached) $ac_c" 1>&6 … … 2461 2475 2462 2476 echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6 2463 echo "configure:24 64: checking whether $AR_FOR_TARGET -s works" >&52477 echo "configure:2478: checking whether $AR_FOR_TARGET -s works" >&5 2464 2478 if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then 2465 2479 echo $ac_n "(cached) $ac_c" 1>&6 … … 2470 2484 { return b; } 2471 2485 EOF 2472 if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:24 73: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \2473 && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:24 74: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \2486 if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:2487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \ 2487 && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:2488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \ 2474 2488 && test -s conftest.a ; \ 2475 2489 then … … 2496 2510 2497 2511 echo $ac_n "checking target's objcopy""... $ac_c" 1>&6 2498 echo "configure:2 499: checking target's objcopy" >&52512 echo "configure:2513: checking target's objcopy" >&5 2499 2513 if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then 2500 2514 echo $ac_n "(cached) $ac_c" 1>&6 … … 2529 2543 # intends 2530 2544 echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6 2531 echo "configure:25 32: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&52545 echo "configure:2546: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5 2532 2546 case "$OBJCOPY_FOR_TARGET" in 2533 2547 /*) # valid … … 2546 2560 set dummy "$program_prefix"objcopy; ac_word=$2 2547 2561 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2548 echo "configure:25 49: checking for $ac_word" >&52562 echo "configure:2563: checking for $ac_word" >&5 2549 2563 if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then 2550 2564 echo $ac_n "(cached) $ac_c" 1>&6 … … 2583 2597 2584 2598 echo $ac_n "checking target's size""... $ac_c" 1>&6 2585 echo "configure:2 586: checking target's size" >&52599 echo "configure:2600: checking target's size" >&5 2586 2600 if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then 2587 2601 echo $ac_n "(cached) $ac_c" 1>&6 … … 2616 2630 # intends 2617 2631 echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6 2618 echo "configure:26 19: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&52632 echo "configure:2633: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5 2619 2633 case "$SIZE_FOR_TARGET" in 2620 2634 /*) # valid … … 2633 2647 set dummy "$program_prefix"size; ac_word=$2 2634 2648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2635 echo "configure:26 36: checking for $ac_word" >&52649 echo "configure:2650: checking for $ac_word" >&5 2636 2650 if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then 2637 2651 echo $ac_n "(cached) $ac_c" 1>&6 … … 2670 2684 2671 2685 echo $ac_n "checking target's strip""... $ac_c" 1>&6 2672 echo "configure:26 73: checking target's strip" >&52686 echo "configure:2687: checking target's strip" >&5 2673 2687 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then 2674 2688 echo $ac_n "(cached) $ac_c" 1>&6 … … 2703 2717 # intends 2704 2718 echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6 2705 echo "configure:27 06: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&52719 echo "configure:2720: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5 2706 2720 case "$STRIP_FOR_TARGET" in 2707 2721 /*) # valid … … 2720 2734 set dummy "$program_prefix"strip; ac_word=$2 2721 2735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2722 echo "configure:27 23: checking for $ac_word" >&52736 echo "configure:2737: checking for $ac_word" >&5 2723 2737 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then 2724 2738 echo $ac_n "(cached) $ac_c" 1>&6 … … 2759 2773 if test "${target_cpu}" = "i386"; then 2760 2774 echo $ac_n "checking for 16 bit mode assembler support""... $ac_c" 1>&6 2761 echo "configure:27 62: checking for 16 bit mode assembler support" >&52775 echo "configure:2776: checking for 16 bit mode assembler support" >&5 2762 2776 if eval "test \"`echo '$''{'rtems_cv_prog_gas_code16'+set}'`\" = set"; then 2763 2777 echo $ac_n "(cached) $ac_c" 1>&6 … … 2769 2783 lgdt 0 2770 2784 EOF 2771 if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:27 72: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then2785 if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then 2772 2786 rtems_cv_prog_gas_code16=yes 2773 2787 else … … 2784 2798 set dummy gcc; ac_word=$2 2785 2799 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2786 echo "configure:2 787: checking for $ac_word" >&52800 echo "configure:2801: checking for $ac_word" >&5 2787 2801 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 2788 2802 echo $ac_n "(cached) $ac_c" 1>&6 … … 2814 2828 set dummy cc; ac_word=$2 2815 2829 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2816 echo "configure:28 17: checking for $ac_word" >&52830 echo "configure:2831: checking for $ac_word" >&5 2817 2831 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 2818 2832 echo $ac_n "(cached) $ac_c" 1>&6 … … 2865 2879 set dummy cl; ac_word=$2 2866 2880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2867 echo "configure:28 68: checking for $ac_word" >&52881 echo "configure:2882: checking for $ac_word" >&5 2868 2882 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 2869 2883 echo $ac_n "(cached) $ac_c" 1>&6 … … 2897 2911 2898 2912 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2899 echo "configure:29 00: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&52913 echo "configure:2914: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2900 2914 2901 2915 ac_ext=c … … 2908 2922 cat > conftest.$ac_ext << EOF 2909 2923 2910 #line 29 11"configure"2924 #line 2925 "configure" 2911 2925 #include "confdefs.h" 2912 2926 2913 2927 main(){return(0);} 2914 2928 EOF 2915 if { (eval echo configure:29 16: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2929 if { (eval echo configure:2930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2916 2930 ac_cv_prog_cc_works=yes 2917 2931 # If we can't run a trivial program, we are probably using a cross compiler. … … 2939 2953 fi 2940 2954 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2941 echo "configure:29 42: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&52955 echo "configure:2956: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2942 2956 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2943 2957 cross_compiling=$ac_cv_prog_cc_cross 2944 2958 2945 2959 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2946 echo "configure:29 47: checking whether we are using GNU C" >&52960 echo "configure:2961: checking whether we are using GNU C" >&5 2947 2961 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 2948 2962 echo $ac_n "(cached) $ac_c" 1>&6 … … 2953 2967 #endif 2954 2968 EOF 2955 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:29 56: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then2969 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 2956 2970 ac_cv_prog_gcc=yes 2957 2971 else … … 2972 2986 CFLAGS= 2973 2987 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2974 echo "configure:29 75: checking whether ${CC-cc} accepts -g" >&52988 echo "configure:2989: checking whether ${CC-cc} accepts -g" >&5 2975 2989 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 2976 2990 echo $ac_n "(cached) $ac_c" 1>&6 … … 3003 3017 fi 3004 3018 3005 3006 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6 3007 echo "configure:3008: checking for Cygwin32 environment" >&5 3008 if eval "test \"`echo '$''{'rtems_cv_cygwin32'+set}'`\" = set"; then 3019 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 3020 echo "configure:3021: checking for Cygwin environment" >&5 3021 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then 3009 3022 echo $ac_n "(cached) $ac_c" 1>&6 3010 3023 else 3011 3024 cat > conftest.$ac_ext <<EOF 3012 #line 30 13"configure"3025 #line 3026 "configure" 3013 3026 #include "confdefs.h" 3014 3027 3015 3028 int main() { 3016 return __CYGWIN32__; 3029 3030 #ifndef __CYGWIN__ 3031 #define __CYGWIN__ __CYGWIN32__ 3032 #endif 3033 return __CYGWIN__; 3017 3034 ; return 0; } 3018 3035 EOF 3019 if { (eval echo configure:30 20: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3036 if { (eval echo configure:3037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3020 3037 rm -rf conftest* 3021 rtems_cv_cygwin32=yes3038 ac_cv_cygwin=yes 3022 3039 else 3023 3040 echo "configure: failed program was:" >&5 3024 3041 cat conftest.$ac_ext >&5 3025 3042 rm -rf conftest* 3026 rtems_cv_cygwin32=no3043 ac_cv_cygwin=no 3027 3044 fi 3028 3045 rm -f conftest* … … 3030 3047 fi 3031 3048 3032 echo "$ac_t""$rtems_cv_cygwin32" 1>&6 3033 CYGWIN32= 3034 test "$rtems_cv_cygwin32" = yes && CYGWIN32=yes 3049 echo "$ac_t""$ac_cv_cygwin" 1>&6 3050 CYGWIN= 3051 test "$ac_cv_cygwin" = yes && CYGWIN=yes 3052 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 3053 echo "configure:3054: checking for mingw32 environment" >&5 3054 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then 3055 echo $ac_n "(cached) $ac_c" 1>&6 3056 else 3057 cat > conftest.$ac_ext <<EOF 3058 #line 3059 "configure" 3059 #include "confdefs.h" 3060 3061 int main() { 3062 return __MINGW32__; 3063 ; return 0; } 3064 EOF 3065 if { (eval echo configure:3066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3066 rm -rf conftest* 3067 ac_cv_mingw32=yes 3068 else 3069 echo "configure: failed program was:" >&5 3070 cat conftest.$ac_ext >&5 3071 rm -rf conftest* 3072 ac_cv_mingw32=no 3073 fi 3074 rm -f conftest* 3075 rm -f conftest* 3076 fi 3077 3078 echo "$ac_t""$ac_cv_mingw32" 1>&6 3079 MINGW32= 3080 test "$ac_cv_mingw32" = yes && MINGW32=yes 3081 3035 3082 3036 3083 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 3037 echo "configure:3038: checking for executable suffix" >&5 3038 if eval "test \"`echo '$''{'rtems_cv_exeext'+set}'`\" = set"; then 3039 echo $ac_n "(cached) $ac_c" 1>&6 3040 else 3041 if test "$CYGWIN32" = yes; then 3042 rtems_cv_exeext=.exe 3043 else 3044 cat > rtems_c_test.c << 'EOF' 3045 int main() { 3046 /* Nothing needed here */ 3047 } 3048 EOF 3049 ${CC-cc} -o rtems_c_test $CFLAGS $CPPFLAGS $LDFLAGS rtems_c_test.c $LIBS 1>&5 3050 rtems_cv_exeext=`echo rtems_c_test.* | grep -v rtems_c_test.c | sed -e s/rtems_c_test//` 3051 rm -f rtems_c_test* 3052 fi 3053 3054 test x"${rtems_cv_exeext}" = x && rtems_cv_exeext=no 3055 fi 3084 echo "configure:3085: checking for executable suffix" >&5 3085 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 3086 echo $ac_n "(cached) $ac_c" 1>&6 3087 else 3088 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 3089 ac_cv_exeext=.exe 3090 else 3091 rm -f conftest* 3092 echo 'int main () { return 0; }' > conftest.$ac_ext 3093 ac_cv_exeext= 3094 if { (eval echo configure:3095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 3095 for file in conftest.*; do 3096 case $file in 3097 *.c | *.o | *.obj) ;; 3098 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; 3099 esac 3100 done 3101 else 3102 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } 3103 fi 3104 rm -f conftest* 3105 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no 3106 fi 3107 fi 3108 3056 3109 EXEEXT="" 3057 test x"${rtems_cv_exeext}" != xno && EXEEXT=${rtems_cv_exeext} 3058 echo "$ac_t""${rtems_cv_exeext}" 1>&6 3110 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} 3111 echo "$ac_t""${ac_cv_exeext}" 1>&6 3112 ac_exeext=$EXEEXT 3059 3113 3060 3114 … … 3073 3127 test "$ac_cv_prog_cc_g" = "yes" && CC_CFLAGS_DEBUG_V=${CC_CFLAGS_DEBUG_V-"-g"} 3074 3128 3075 for ac_func in strerror3076 do3077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&63078 echo "configure:3079: checking for $ac_func" >&53079 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then3080 echo $ac_n "(cached) $ac_c" 1>&63081 else3082 cat > conftest.$ac_ext <<EOF3083 #line 3084 "configure"3084 #include "confdefs.h"3085 /* System header to define __stub macros and hopefully few prototypes,3086 which can conflict with char $ac_func(); below. */3087 #include <assert.h>3088 /* Override any gcc2 internal prototype to avoid an error. */3089 /* We use char because int might match the return type of a gcc23090 builtin and then its argument prototype would still apply. */3091 char $ac_func();3092 3093 int main() {3094 3095 /* The GNU C library defines this for functions which it implements3096 to always fail with ENOSYS. Some functions are actually named3097 something starting with __ and the normal name is an alias. */3098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)3099 choke me3100 #else3101 $ac_func();3102 #endif3103 3104 ; return 0; }3105 EOF3106 if { (eval echo configure:3107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3107 rm -rf conftest*3108 eval "ac_cv_func_$ac_func=yes"3109 else3110 echo "configure: failed program was:" >&53111 cat conftest.$ac_ext >&53112 rm -rf conftest*3113 eval "ac_cv_func_$ac_func=no"3114 fi3115 rm -f conftest*3116 fi3117 3118 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then3119 echo "$ac_t""yes" 1>&63120 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`3121 cat >> confdefs.h <<EOF3122 #define $ac_tr_func 13123 EOF3124 3125 else3126 echo "$ac_t""no" 1>&63127 fi3128 done3129 3130 3131 3129 if test "$target_cpu" = "unix" ; then 3132 3130 3133 3131 3134 3132 echo $ac_n "checking whether $RTEMS_HOST supports System V semaphores""... $ac_c" 1>&6 3135 echo "configure:313 6: checking whether $RTEMS_HOST supports System V semaphores" >&53133 echo "configure:3134: checking whether $RTEMS_HOST supports System V semaphores" >&5 3136 3134 if eval "test \"`echo '$''{'rtems_cv_sysv_sem'+set}'`\" = set"; then 3137 3135 echo $ac_n "(cached) $ac_c" 1>&6 … … 3142 3140 else 3143 3141 cat > conftest.$ac_ext <<EOF 3144 #line 314 5"configure"3142 #line 3143 "configure" 3145 3143 #include "confdefs.h" 3146 3144 … … 3168 3166 3169 3167 EOF 3170 if { (eval echo configure:31 71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3168 if { (eval echo configure:3169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3171 3169 then 3172 3170 rtems_cv_sysv_sem="yes" … … 3191 3189 3192 3190 echo $ac_n "checking whether $RTEMS_HOST supports System V shared memory""... $ac_c" 1>&6 3193 echo "configure:319 4: checking whether $RTEMS_HOST supports System V shared memory" >&53191 echo "configure:3192: checking whether $RTEMS_HOST supports System V shared memory" >&5 3194 3192 if eval "test \"`echo '$''{'rtems_cv_sysv_shm'+set}'`\" = set"; then 3195 3193 echo $ac_n "(cached) $ac_c" 1>&6 … … 3200 3198 else 3201 3199 cat > conftest.$ac_ext <<EOF 3202 #line 320 3"configure"3200 #line 3201 "configure" 3203 3201 #include "confdefs.h" 3204 3202 … … 3216 3214 3217 3215 EOF 3218 if { (eval echo configure:321 9: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3216 if { (eval echo configure:3217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3219 3217 then 3220 3218 rtems_cv_sysv_shm="yes" … … 3239 3237 3240 3238 echo $ac_n "checking whether $RTEMS_HOST supports System V messages""... $ac_c" 1>&6 3241 echo "configure:324 2: checking whether $RTEMS_HOST supports System V messages" >&53239 echo "configure:3240: checking whether $RTEMS_HOST supports System V messages" >&5 3242 3240 if eval "test \"`echo '$''{'rtems_cv_sysv_msg'+set}'`\" = set"; then 3243 3241 echo $ac_n "(cached) $ac_c" 1>&6 … … 3248 3246 else 3249 3247 cat > conftest.$ac_ext <<EOF 3250 #line 32 51"configure"3248 #line 3249 "configure" 3251 3249 #include "confdefs.h" 3252 3250 … … 3264 3262 3265 3263 EOF 3266 if { (eval echo configure:326 7: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3264 if { (eval echo configure:3265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3267 3265 then 3268 3266 rtems_cv_sysv_msg="yes" … … 3289 3287 3290 3288 echo $ac_n "checking for Makefile.in in c/src/exec/score/tools/$target_cpu""... $ac_c" 1>&6 3291 echo "configure:329 2: checking for Makefile.in in c/src/exec/score/tools/$target_cpu" >&53289 echo "configure:3290: checking for Makefile.in in c/src/exec/score/tools/$target_cpu" >&5 3292 3290 if test -d $srcdir/c/src/exec/score/tools/$target_cpu; then 3293 3291 rtems_av_save_dir=`pwd`; … … 3304 3302 3305 3303 echo $ac_n "checking for Makefile.in in c/src/exec/rtems""... $ac_c" 1>&6 3306 echo "configure:330 7: checking for Makefile.in in c/src/exec/rtems" >&53304 echo "configure:3305: checking for Makefile.in in c/src/exec/rtems" >&5 3307 3305 if test -d $srcdir/c/src/exec/rtems; then 3308 3306 rtems_av_save_dir=`pwd`; … … 3319 3317 3320 3318 echo $ac_n "checking for Makefile.in in c/src/exec/sapi""... $ac_c" 1>&6 3321 echo "configure:332 2: checking for Makefile.in in c/src/exec/sapi" >&53319 echo "configure:3320: checking for Makefile.in in c/src/exec/sapi" >&5 3322 3320 if test -d $srcdir/c/src/exec/sapi; then 3323 3321 rtems_av_save_dir=`pwd`; … … 3334 3332 3335 3333 echo $ac_n "checking for Makefile.in in c/src/exec/score/cpu/$target_cpu""... $ac_c" 1>&6 3336 echo "configure:333 7: checking for Makefile.in in c/src/exec/score/cpu/$target_cpu" >&53334 echo "configure:3335: checking for Makefile.in in c/src/exec/score/cpu/$target_cpu" >&5 3337 3335 if test -d $srcdir/c/src/exec/score/cpu/$target_cpu; then 3338 3336 rtems_av_save_dir=`pwd`; … … 3351 3349 3352 3350 echo $ac_n "checking for Makefile.in in c/src/exec/posix""... $ac_c" 1>&6 3353 echo "configure:335 4: checking for Makefile.in in c/src/exec/posix" >&53351 echo "configure:3352: checking for Makefile.in in c/src/exec/posix" >&5 3354 3352 if test -d $srcdir/c/src/exec/posix; then 3355 3353 rtems_av_save_dir=`pwd`; … … 3373 3371 if test -z "$rtems_bsp"; then 3374 3372 echo $ac_n "checking for bsps""... $ac_c" 1>&6 3375 echo "configure:337 6: checking for bsps" >&53373 echo "configure:3374: checking for bsps" >&5 3376 3374 files=`ls $srcdir/c/src/lib/libbsp/$target_cpu` 3377 3375 for file in $files; do … … 3438 3436 3439 3437 echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/$bspcpudir$bspdir""... $ac_c" 1>&6 3440 echo "configure:34 41: checking for Makefile.in in c/src/lib/libbsp/$bspcpudir$bspdir" >&53438 echo "configure:3439: checking for Makefile.in in c/src/lib/libbsp/$bspcpudir$bspdir" >&5 3441 3439 if test -d $srcdir/c/src/lib/libbsp/$bspcpudir$bspdir; then 3442 3440 rtems_av_save_dir=`pwd`; … … 3453 3451 3454 3452 echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/${bspcpudir}shared""... $ac_c" 1>&6 3455 echo "configure:345 6: checking for Makefile.in in c/src/lib/libbsp/${bspcpudir}shared" >&53453 echo "configure:3454: checking for Makefile.in in c/src/lib/libbsp/${bspcpudir}shared" >&5 3456 3454 if test -d $srcdir/c/src/lib/libbsp/${bspcpudir}shared; then 3457 3455 rtems_av_save_dir=`pwd`; … … 3476 3474 3477 3475 echo $ac_n "checking for Makefile.in in c/src/lib/libcpu/$target_cpu""... $ac_c" 1>&6 3478 echo "configure:347 9: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&53476 echo "configure:3477: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&5 3479 3477 if test -d $srcdir/c/src/lib/libcpu/$target_cpu; then 3480 3478 rtems_av_save_dir=`pwd`; … … 3493 3491 3494 3492 echo $ac_n "checking for Makefile.in in c/src/lib/start/$target_cpu""... $ac_c" 1>&6 3495 echo "configure:349 6: checking for Makefile.in in c/src/lib/start/$target_cpu" >&53493 echo "configure:3494: checking for Makefile.in in c/src/lib/start/$target_cpu" >&5 3496 3494 if test -d $srcdir/c/src/lib/start/$target_cpu; then 3497 3495 rtems_av_save_dir=`pwd`; … … 3509 3507 3510 3508 3511 3512 3509 PROJECT_ROOT=`pwd;` 3513 3510 … … 3525 3522 # If the TCP/IP stack is enabled, then find all TCP/IP Makefiles 3526 3523 echo $ac_n "checking if networking is enabled? ""... $ac_c" 1>&6 3527 echo "configure:352 8: checking if networking is enabled? " >&53524 echo "configure:3525: checking if networking is enabled? " >&5 3528 3525 echo "$ac_t""$RTEMS_HAS_NETWORKING" 1>&6 3529 3526 if test "$RTEMS_HAS_NETWORKING" = "yes"; then 3530 3527 3531 3528 echo $ac_n "checking for Makefile.in in c/src/lib/libnetworking""... $ac_c" 1>&6 3532 echo "configure:353 3: checking for Makefile.in in c/src/lib/libnetworking" >&53529 echo "configure:3530: checking for Makefile.in in c/src/lib/libnetworking" >&5 3533 3530 if test -d $srcdir/c/src/lib/libnetworking; then 3534 3531 rtems_av_save_dir=`pwd`; … … 3545 3542 3546 3543 echo $ac_n "checking for Makefile.in in c/src/lib/librpc""... $ac_c" 1>&6 3547 echo "configure:354 8: checking for Makefile.in in c/src/lib/librpc" >&53544 echo "configure:3545: checking for Makefile.in in c/src/lib/librpc" >&5 3548 3545 if test -d $srcdir/c/src/lib/librpc; then 3549 3546 rtems_av_save_dir=`pwd`; … … 3561 3558 3562 3559 echo $ac_n "checking for Makefile.in in c/src/lib/librdbg""... $ac_c" 1>&6 3563 echo "configure:356 4: checking for Makefile.in in c/src/lib/librdbg" >&53560 echo "configure:3561: checking for Makefile.in in c/src/lib/librdbg" >&5 3564 3561 if test -d $srcdir/c/src/lib/librdbg; then 3565 3562 rtems_av_save_dir=`pwd`; … … 3582 3579 fi 3583 3580 3581 3584 3582 # If the tests are enabled, then find all the test suite Makefiles 3585 3583 echo $ac_n "checking if the test suites are enabled? ""... $ac_c" 1>&6 3586 echo "configure:358 7: checking if the test suites are enabled? " >&53587 tests_enabled= no3584 echo "configure:3585: checking if the test suites are enabled? " >&5 3585 tests_enabled=yes 3588 3586 # Check whether --enable-tests or --disable-tests was given. 3589 3587 if test "${enable_tests+set}" = set; then 3590 3588 enableval="$enable_tests" 3591 \3592 3589 case "${enableval}" in 3593 yes) echo "$ac_t""yes" 1>&6 ; tests_enabled=yes ;;3590 yes) echo "$ac_t""yes" 1>&6 ;; 3594 3591 no) echo "$ac_t""no" 1>&6 ; tests_enabled=no ;; 3595 3592 *) { echo "configure: error: bad value ${enableval} for tests option" 1>&2; exit 1; } ;; … … 3597 3594 else 3598 3595 echo "$ac_t""no" 1>&6 3599 3600 fi 3596 fi 3597 3601 3598 3602 3599 3603 3600 3604 3601 echo $ac_n "checking for Makefile.in in c/src/tests/tools/$target_cpu""... $ac_c" 1>&6 3605 echo "configure:360 6: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&53602 echo "configure:3603: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&5 3606 3603 if test -d $srcdir/c/src/tests/tools/$target_cpu; then 3607 3604 rtems_av_save_dir=`pwd`; … … 3620 3617 3621 3618 echo $ac_n "checking for Makefile.in in c/src/tests/libtests""... $ac_c" 1>&6 3622 echo "configure:362 3: checking for Makefile.in in c/src/tests/libtests" >&53619 echo "configure:3620: checking for Makefile.in in c/src/tests/libtests" >&5 3623 3620 if test -d $srcdir/c/src/tests/libtests; then 3624 3621 rtems_av_save_dir=`pwd`; … … 3635 3632 3636 3633 echo $ac_n "checking for Makefile.in in c/src/tests/sptests""... $ac_c" 1>&6 3637 echo "configure:363 8: checking for Makefile.in in c/src/tests/sptests" >&53634 echo "configure:3635: checking for Makefile.in in c/src/tests/sptests" >&5 3638 3635 if test -d $srcdir/c/src/tests/sptests; then 3639 3636 rtems_av_save_dir=`pwd`; … … 3650 3647 3651 3648 echo $ac_n "checking for Makefile.in in c/src/tests/tmtests""... $ac_c" 1>&6 3652 echo "configure:365 3: checking for Makefile.in in c/src/tests/tmtests" >&53649 echo "configure:3650: checking for Makefile.in in c/src/tests/tmtests" >&5 3653 3650 if test -d $srcdir/c/src/tests/tmtests; then 3654 3651 rtems_av_save_dir=`pwd`; … … 3666 3663 3667 3664 echo $ac_n "checking for Makefile.in in c/src/tests/mptests""... $ac_c" 1>&6 3668 echo "configure:366 9: checking for Makefile.in in c/src/tests/mptests" >&53665 echo "configure:3666: checking for Makefile.in in c/src/tests/mptests" >&5 3669 3666 if test -d $srcdir/c/src/tests/mptests; then 3670 3667 rtems_av_save_dir=`pwd`; … … 3683 3680 3684 3681 echo $ac_n "checking for Makefile.in in c/src/tests/psxtests""... $ac_c" 1>&6 3685 echo "configure:368 6: checking for Makefile.in in c/src/tests/psxtests" >&53682 echo "configure:3683: checking for Makefile.in in c/src/tests/psxtests" >&5 3686 3683 if test -d $srcdir/c/src/tests/psxtests; then 3687 3684 rtems_av_save_dir=`pwd`; … … 3700 3697 3701 3698 # If the HWAPI is enabled, the find the HWAPI Makefiles 3702 echo $ac_n "checking if the HWAPI is enabled? ""... $ac_c" 1>&63703 echo "configure:3704: checking if the HWAPI is enabled? " >&53704 3699 # Check whether --enable-hwapi or --disable-hwapi was given. 3705 3700 if test "${enable_hwapi+set}" = set; then 3706 3701 enableval="$enable_hwapi" 3707 \3708 3702 case "${enableval}" in 3709 yes) echo "$ac_t""yes" 1>&6 3710 if test -f ${srcdir}/c/src/lib/libhwapi/Makefile.in ; then 3711 makefiles="$makefiles c/src/lib/libhwapi/Makefile" 3712 3703 yes) RTEMS_HAS_HWAPI=yes ;; 3704 no) RTEMS_HAS_HWAPI=no ;; 3705 *) { echo "configure: error: bad value ${enableval} for hwapi option" 1>&2; exit 1; } ;; 3706 esac 3707 else 3708 RTEMS_HAS_HWAPI=no 3709 fi 3710 3711 3712 if test "$RTEMS_HAS_HWAPI" = "yes"; then 3713 echo $ac_n "checking whether libwapi is present""... $ac_c" 1>&6 3714 echo "configure:3715: checking whether libwapi is present" >&5 3715 if test -f ${srcdir}/c/src/lib/libhwapi/Makefile.in ; then 3716 echo "$ac_t""yes" 1>&6 3717 makefiles="$makefiles c/src/lib/libhwapi/Makefile" 3718 3713 3719 echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/analog""... $ac_c" 1>&6 3714 echo "configure:37 15: checking for Makefile.in in c/src/lib/libhwapi/analog" >&53720 echo "configure:3721: checking for Makefile.in in c/src/lib/libhwapi/analog" >&5 3715 3721 if test -d $srcdir/c/src/lib/libhwapi/analog; then 3716 3722 rtems_av_save_dir=`pwd`; … … 3725 3731 3726 3732 3727 3733 3728 3734 echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/discrete""... $ac_c" 1>&6 3729 echo "configure:373 0: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&53735 echo "configure:3736: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&5 3730 3736 if test -d $srcdir/c/src/lib/libhwapi/discrete; then 3731 3737 rtems_av_save_dir=`pwd`; … … 3740 3746 3741 3747 3742 3748 3743 3749 echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/drivers""... $ac_c" 1>&6 3744 echo "configure:37 45: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&53750 echo "configure:3751: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&5 3745 3751 if test -d $srcdir/c/src/lib/libhwapi/drivers; then 3746 3752 rtems_av_save_dir=`pwd`; … … 3755 3761 3756 3762 3757 3763 3758 3764 echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory""... $ac_c" 1>&6 3759 echo "configure:376 0: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&53765 echo "configure:3766: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&5 3760 3766 if test -d $srcdir/c/src/lib/libhwapi/non_volatile_memory; then 3761 3767 rtems_av_save_dir=`pwd`; … … 3770 3776 3771 3777 3772 3778 3773 3779 echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/serial""... $ac_c" 1>&6 3774 echo "configure:37 75: checking for Makefile.in in c/src/lib/libhwapi/serial" >&53780 echo "configure:3781: checking for Makefile.in in c/src/lib/libhwapi/serial" >&5 3775 3781 if test -d $srcdir/c/src/lib/libhwapi/serial; then 3776 3782 rtems_av_save_dir=`pwd`; … … 3785 3791 3786 3792 3787 3793 3788 3794 echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/support""... $ac_c" 1>&6 3789 echo "configure:379 0: checking for Makefile.in in c/src/lib/libhwapi/support" >&53795 echo "configure:3796: checking for Makefile.in in c/src/lib/libhwapi/support" >&5 3790 3796 if test -d $srcdir/c/src/lib/libhwapi/support; then 3791 3797 rtems_av_save_dir=`pwd`; … … 3800 3806 3801 3807 3802 3808 3803 3809 echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/wrapup""... $ac_c" 1>&6 3804 echo "configure:38 05: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&53810 echo "configure:3811: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&5 3805 3811 if test -d $srcdir/c/src/lib/libhwapi/wrapup; then 3806 3812 rtems_av_save_dir=`pwd`; … … 3815 3821 3816 3822 3817 else 3818 { echo "configure: error: No source code found for the HWAPI" 1>&2; exit 1; } 3819 fi 3820 ;; 3821 no) echo "$ac_t""no" 1>&6 ;; 3822 *) { echo "configure: error: bad value ${enableval} for hwapi option" 1>&2; exit 1; } ;; 3823 esac 3824 else 3825 echo "$ac_t""no" 1>&6 3826 3827 fi 3828 3823 else 3824 { echo "configure: error: No source code found for the HWAPI" 1>&2; exit 1; } 3825 fi 3826 fi 3829 3827 3830 3828 … … 3852 3850 # pick up all the Makefiles in required parts of the tree 3853 3851 3854 echo $ac_n "checking for Makefile.in in c/build-tools""... $ac_c" 1>&63855 echo "configure:3856: checking for Makefile.in in c/build-tools" >&53856 if test -d $srcdir/c/build-tools; then3857 rtems_av_save_dir=`pwd`;3858 cd $srcdir;3859 rtems_av_tmp=`find c/build-tools -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`3860 makefiles="$makefiles $rtems_av_tmp";3861 cd $rtems_av_save_dir;3862 echo "$ac_t""done" 1>&63863 else3864 echo "$ac_t""no" 1>&63865 fi3866 3867 3868 3869 3852 echo $ac_n "checking for Makefile.in in make""... $ac_c" 1>&6 3870 echo "configure:38 71: checking for Makefile.in in make" >&53853 echo "configure:3854: checking for Makefile.in in make" >&5 3871 3854 if test -d $srcdir/make; then 3872 3855 rtems_av_save_dir=`pwd`; … … 3883 3866 3884 3867 echo $ac_n "checking for Makefile.in in c/src/lib/libchip""... $ac_c" 1>&6 3885 echo "configure:38 86: checking for Makefile.in in c/src/lib/libchip" >&53868 echo "configure:3869: checking for Makefile.in in c/src/lib/libchip" >&5 3886 3869 if test -d $srcdir/c/src/lib/libchip; then 3887 3870 rtems_av_save_dir=`pwd`; … … 3898 3881 3899 3882 echo $ac_n "checking for Makefile.in in c/src/lib/libmisc""... $ac_c" 1>&6 3900 echo "configure:3 901: checking for Makefile.in in c/src/lib/libmisc" >&53883 echo "configure:3884: checking for Makefile.in in c/src/lib/libmisc" >&5 3901 3884 if test -d $srcdir/c/src/lib/libmisc; then 3902 3885 rtems_av_save_dir=`pwd`; … … 3913 3896 3914 3897 echo $ac_n "checking for Makefile.in in c/src/tests/samples""... $ac_c" 1>&6 3915 echo "configure:3 916: checking for Makefile.in in c/src/tests/samples" >&53898 echo "configure:3899: checking for Makefile.in in c/src/tests/samples" >&5 3916 3899 if test -d $srcdir/c/src/tests/samples; then 3917 3900 rtems_av_save_dir=`pwd`; … … 3927 3910 3928 3911 3929 3912 subdirs="c/build-tools" 3913 3914 # FIXME: libwapi needs a separate configure.in in future ;- 3915 # AC_CONFIG_SUBDIRS(c/src/lib/libwapi) 3930 3916 3931 3917 # try not to explicitly list a Makefile here … … 3993 3979 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 3994 3980 3995 DEFS=-DHAVE_CONFIG_H 3981 # Transform confdefs.h into DEFS. 3982 # Protect against shell expansion while executing Makefile rules. 3983 # Protect against Makefile macro expansion. 3984 cat > conftest.defs <<\EOF 3985 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g 3986 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g 3987 s%\[%\\&%g 3988 s%\]%\\&%g 3989 s%\$%$$%g 3990 EOF 3991 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` 3992 rm -f conftest.defs 3993 3996 3994 3997 3995 # Without the "./", some shells look in PATH for config.status. … … 4069 4067 c/src/tests/tools/generic/Makefile 4070 4068 $makefiles 4071 c/update-tools/Makefile c/build-tools/src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 154069 c/update-tools/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 4072 4070 EOF 4073 4071 cat >> $CONFIG_STATUS <<EOF … … 4101 4099 s%@infodir@%$infodir%g 4102 4100 s%@mandir@%$mandir%g 4101 s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g 4102 s%@PROJECT_ROOT@%$PROJECT_ROOT%g 4103 s%@RTEMS_ROOT@%$RTEMS_ROOT%g 4103 4104 s%@SET_MAKE@%$SET_MAKE%g 4104 4105 s%@host@%$host%g … … 4117 4118 s%@build_vendor@%$build_vendor%g 4118 4119 s%@build_os@%$build_os%g 4120 s%@RTEMS_HAS_POSIX_API@%$RTEMS_HAS_POSIX_API%g 4119 4121 s%@CAT@%$CAT%g 4120 4122 s%@RM@%$RM%g … … 4135 4137 s%@M4@%$M4%g 4136 4138 s%@KSH@%$KSH%g 4139 s%@RTEMS_HOST@%$RTEMS_HOST%g 4137 4140 s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g 4138 4141 s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g … … 4151 4154 s%@rtems_cv_prog_cc_cross@%$rtems_cv_prog_cc_cross%g 4152 4155 s%@RTEMS_BSP_LIST@%$RTEMS_BSP_LIST%g 4153 s%@RTEMS_HOST@%$RTEMS_HOST%g4154 4156 s%@RTEMS_LIBC_DIR@%$RTEMS_LIBC_DIR%g 4155 4157 s%@RTEMS_USE_OWN_PDIR@%$RTEMS_USE_OWN_PDIR%g 4156 s%@RTEMS_HAS_POSIX_API@%$RTEMS_HAS_POSIX_API%g4157 4158 s%@RTEMS_HAS_NETWORKING@%$RTEMS_HAS_NETWORKING%g 4158 4159 s%@RTEMS_HAS_RDBG@%$RTEMS_HAS_RDBG%g … … 4162 4163 s%@BARE_CPU_CFLAGS@%$BARE_CPU_CFLAGS%g 4163 4164 s%@BARE_CPU_MODEL@%$BARE_CPU_MODEL%g 4164 s%@PROJECT_ROOT@%$PROJECT_ROOT%g4165 4165 s%@program_prefix@%$program_prefix%g 4166 4166 s%@CC_CFLAGS_DEFAULT@%$CC_CFLAGS_DEFAULT%g … … 4168 4168 s%@CC_CFLAGS_PROFILE_V@%$CC_CFLAGS_PROFILE_V%g 4169 4169 s%@CC_LDFLAGS_PROFILE_V@%$CC_LDFLAGS_PROFILE_V%g 4170 s%@subdirs@%$subdirs%g 4170 4171 4171 4172 CEOF … … 4306 4307 rm -f conftest.s* 4307 4308 4308 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where4309 # NAME is the cpp macro being defined and VALUE is the value it is being given.4310 #4311 # ac_d sets the value in "#define NAME VALUE" lines.4312 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'4313 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'4314 ac_dC='\3'4315 ac_dD='%g'4316 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".4317 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'4318 ac_uB='\([ ]\)%\1#\2define\3'4319 ac_uC=' '4320 ac_uD='\4%g'4321 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".4322 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'4323 ac_eB='$%\1#\2define\3'4324 ac_eC=' '4325 ac_eD='%g'4326 4327 if test "${CONFIG_HEADERS+set}" != set; then4328 EOF4329 cat >> $CONFIG_STATUS <<EOF4330 CONFIG_HEADERS="c/build-tools/src/config.h"4331 EOF4332 cat >> $CONFIG_STATUS <<\EOF4333 fi4334 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then4335 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".4336 case "$ac_file" in4337 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`4338 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;4339 *) ac_file_in="${ac_file}.in" ;;4340 esac4341 4342 echo creating $ac_file4343 4344 rm -f conftest.frag conftest.in conftest.out4345 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`4346 cat $ac_file_inputs > conftest.in4347 4348 EOF4349 4350 # Transform confdefs.h into a sed script conftest.vals that substitutes4351 # the proper values into config.h.in to produce config.h. And first:4352 # Protect against being on the right side of a sed subst in config.status.4353 # Protect against being in an unquoted here document in config.status.4354 rm -f conftest.vals4355 cat > conftest.hdr <<\EOF4356 s/[\\&%]/\\&/g4357 s%[\\$`]%\\&%g4358 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp4359 s%ac_d%ac_u%gp4360 s%ac_u%ac_e%gp4361 EOF4362 sed -n -f conftest.hdr confdefs.h > conftest.vals4363 rm -f conftest.hdr4364 4365 # This sed command replaces #undef with comments. This is necessary, for4366 # example, in the case of _POSIX_SOURCE, which is predefined and required4367 # on some systems where configure will not decide to define it.4368 cat >> conftest.vals <<\EOF4369 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%4370 EOF4371 4372 # Break up conftest.vals because some shells have a limit on4373 # the size of here documents, and old seds have small limits too.4374 4375 rm -f conftest.tail4376 while :4377 do4378 ac_lines=`grep -c . conftest.vals`4379 # grep -c gives empty output for an empty file on some AIX systems.4380 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi4381 # Write a limited-size here document to conftest.frag.4382 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS4383 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS4384 echo 'CEOF4385 sed -f conftest.frag conftest.in > conftest.out4386 rm -f conftest.in4387 mv conftest.out conftest.in4388 ' >> $CONFIG_STATUS4389 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail4390 rm -f conftest.vals4391 mv conftest.tail conftest.vals4392 done4393 rm -f conftest.vals4394 4395 cat >> $CONFIG_STATUS <<\EOF4396 rm -f conftest.frag conftest.h4397 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h4398 cat conftest.in >> conftest.h4399 rm -f conftest.in4400 if cmp -s $ac_file conftest.h 2>/dev/null; then4401 echo "$ac_file is unchanged"4402 rm -f conftest.h4403 else4404 # Remove last slash and all that follows it. Not all systems have dirname.4405 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`4406 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then4407 # The file is in a subdirectory.4408 test ! -d "$ac_dir" && mkdir "$ac_dir"4409 fi4410 rm -f $ac_file4411 mv conftest.h $ac_file4412 fi4413 fi; done4414 4415 4309 EOF 4416 4310 cat >> $CONFIG_STATUS <<EOF … … 4424 4318 rm -fr confdefs* $ac_clean_files 4425 4319 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 4320 4321 if test "$no_recursion" != yes; then 4322 4323 # Remove --cache-file and --srcdir arguments so they do not pile up. 4324 ac_sub_configure_args= 4325 ac_prev= 4326 for ac_arg in $ac_configure_args; do 4327 if test -n "$ac_prev"; then 4328 ac_prev= 4329 continue 4330 fi 4331 case "$ac_arg" in 4332 -cache-file | --cache-file | --cache-fil | --cache-fi \ 4333 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 4334 ac_prev=cache_file ;; 4335 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 4336 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 4337 ;; 4338 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 4339 ac_prev=srcdir ;; 4340 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 4341 ;; 4342 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; 4343 esac 4344 done 4345 4346 for ac_config_dir in c/build-tools; do 4347 4348 # Do not complain, so a configure script can configure whichever 4349 # parts of a large source tree are present. 4350 if test ! -d $srcdir/$ac_config_dir; then 4351 continue 4352 fi 4353 4354 echo configuring in $ac_config_dir 4355 4356 case "$srcdir" in 4357 .) ;; 4358 *) 4359 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; 4360 else 4361 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } 4362 fi 4363 ;; 4364 esac 4365 4366 ac_popdir=`pwd` 4367 cd $ac_config_dir 4368 4369 # A "../" for each directory in /$ac_config_dir. 4370 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` 4371 4372 case "$srcdir" in 4373 .) # No --srcdir option. We are building in place. 4374 ac_sub_srcdir=$srcdir ;; 4375 /*) # Absolute path. 4376 ac_sub_srcdir=$srcdir/$ac_config_dir ;; 4377 *) # Relative path. 4378 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; 4379 esac 4380 4381 # Check for guested configure; otherwise get Cygnus style configure. 4382 if test -f $ac_sub_srcdir/configure; then 4383 ac_sub_configure=$ac_sub_srcdir/configure 4384 elif test -f $ac_sub_srcdir/configure.in; then 4385 ac_sub_configure=$ac_configure 4386 else 4387 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 4388 ac_sub_configure= 4389 fi 4390 4391 # The recursion is here. 4392 if test -n "$ac_sub_configure"; then 4393 4394 # Make the cache file name correct relative to the subdirectory. 4395 case "$cache_file" in 4396 /*) ac_sub_cache_file=$cache_file ;; 4397 *) # Relative path. 4398 ac_sub_cache_file="$ac_dots$cache_file" ;; 4399 esac 4400 case "$ac_given_INSTALL" in 4401 [/$]*) INSTALL="$ac_given_INSTALL" ;; 4402 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 4403 esac 4404 4405 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" 4406 # The eval makes quoting arguments work. 4407 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir 4408 then : 4409 else 4410 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } 4411 fi 4412 fi 4413 4414 cd $ac_popdir 4415 done 4416 fi 4426 4417 4427 4418 -
configure.in
rc0a36429 r04c308c 3 3 dnl $Id$ 4 4 5 AC_PREREQ(2.1 2)5 AC_PREREQ(2.13) 6 6 AC_INIT(README) 7 7 RTEMS_TOP(.) … … 10 10 AC_PROG_MAKE_SET 11 11 AC_CANONICAL_SYSTEM 12 12 13 AC_ARG_WITH(cross-host,[ --with-cross-host=HOST host (cygnus)], \ 13 14 host=$withval) 14 15 15 AC_ARG_ENABLE(gmake-print-directory, \ 16 [ --enable-gmake-print-directory enable GNU Make's print directory], \ 17 [case "${enableval}" in 18 yes) RTEMS_USE_OWN_PDIR=no ;; 19 no) RTEMS_USE_OWN_PDIR=yes ;; 20 *) AC_MSG_ERROR(bad value ${enableval} for gmake-print-directory option) ;; 21 esac],[RTEMS_USE_OWN_PDIR=yes]) 22 23 AC_ARG_ENABLE(multiprocessing, \ 24 [ --enable-multiprocessing enable multiprocessing interface], \ 25 [case "${enableval}" in 26 yes) RTEMS_HAS_MULTIPROCESSING=yes ;; 27 no) RTEMS_HAS_MULTIPROCESSING=no ;; 28 *) AC_MSG_ERROR(bad value ${enableval} for enable-multiprocessing option) ;; 29 esac],[RTEMS_HAS_MULTIPROCESSING=no]) 30 31 AC_ARG_ENABLE(posix, \ 32 [ --enable-posix enable posix interface], \ 33 [case "${enableval}" in 34 yes) RTEMS_HAS_POSIX_API=yes ;; 35 no) RTEMS_HAS_POSIX_API=no ;; 36 *) AC_MSG_ERROR(bad value ${enableval} for enable-posix option) ;; 37 esac],[RTEMS_HAS_POSIX_API=yes]) 38 39 AC_ARG_ENABLE(networking, \ 40 [ --enable-networking enable TCP/IP stack], \ 41 [case "${enableval}" in 42 yes) RTEMS_HAS_NETWORKING=yes ;; 43 no) RTEMS_HAS_NETWORKING=no ;; 44 *) AC_MSG_ERROR(bad value ${enableval} for enable-networking option) ;; 45 esac],[RTEMS_HAS_NETWORKING=yes]) 46 47 AC_ARG_ENABLE(rdbg, \ 48 [ --enable-rdbg enable remote debugger], \ 49 [case "${enableval}" in 50 yes) RTEMS_HAS_RDBG=yes ;; 51 no) RTEMS_HAS_RDBG=no ;; 52 *) AC_MSG_ERROR(bad value ${enableval} for enable-rdbg option) ;; 53 esac],[RTEMS_HAS_RDBG=no]) 54 55 AC_ARG_ENABLE(rtems-inlines, \ 56 [ --enable-rtems-inlines enable RTEMS inline functions, the default (disable to use macros)], \ 57 [case "${enableval}" in 58 yes) RTEMS_USE_MACROS=no ;; 59 no) RTEMS_USE_MACROS=yes ;; 60 *) AC_MSG_ERROR(bad value ${enableval} for disable-rtems-inlines option) ;; 61 esac],[RTEMS_USE_MACROS=no]) 62 63 AC_ARG_ENABLE(cxx, \ 64 [ --enable-cxx enable C++ support, and build the rtems++ library], \ 65 [case "${enableval}" in 66 yes) RTEMS_HAS_CPLUSPLUS=yes ;; 67 no) RTEMS_HAS_CPLUSPLUS=no ;; 68 *) AC_MSG_ERROR(bad value ${enableval} for enable-cxx option) ;; 69 esac], [RTEMS_HAS_CPLUSPLUS=no]) 70 71 AC_ARG_ENABLE(gcc28, \ 72 [ --enable-gcc28 enable use of gcc 2.8.x features], \ 73 [case "${enableval}" in 74 yes) RTEMS_USE_GCC272=no ;; 75 no) RTEMS_USE_GCC272=yes ;; 76 *) AC_MSG_ERROR(bad value ${enableval} for gcc-28 option) ;; 77 esac],[RTEMS_USE_GCC272=no]) 78 79 AC_ARG_ENABLE(libcdir, \ 80 [ --enable-libcdir=directory set the directory for the C library], \ 81 [ RTEMS_LIBC_DIR="${enableval}" ; \ 82 test -d ${enableval} || AC_MSG_ERROR("$enableval is not a directory" ) ] ) 83 84 AC_ARG_ENABLE(bare-cpu-cflags, 85 [ --enable-bare-cpu-cflags \ 86 specify a particular cpu cflag (bare bsp specific)], 87 [case "${enableval}" in 88 no) BARE_CPU_CFLAGS="" ;; 89 *) BARE_CPU_CFLAGS="${enableval}" ;; 90 esac], 91 [BARE_CPU_CFLAGS=""]) 92 93 AC_ARG_ENABLE(bare-cpu-model, 94 [ --enable-bare-cpu-model \ 95 specify a particular cpu model (bare bsp specific)], 96 [case "${enableval}" in 97 no) BARE_CPU_MODEL="" ;; 98 *) BARE_CPU_MODEL="${enableval}" ;; 99 esac], 100 [BARE_CPU_MODEL=""]) 16 RTEMS_ENABLE_GMAKE_PRINT 17 RTEMS_ENABLE_MULTIPROCESSING 18 RTEMS_ENABLE_POSIX 19 RTEMS_ENABLE_NETWORKING 20 RTEMS_ENABLE_RDBG 21 RTEMS_ENABLE_INLINES 22 RTEMS_ENABLE_CXX 23 RTEMS_ENABLE_GCC28 24 RTEMS_ENABLE_LIBCDIR 25 RTEMS_ENABLE_BARE 101 26 102 27 RTEMS_PREFIX=${target_cpu}-${target_vendor} … … 116 41 117 42 dnl check mkdir behaviour, try to get mkdir -p -m 0755 43 dnl NOTE: This is considered obsolete 44 dnl MKDIR is not used anywhere in the source tree anymore. 45 dnl In Makefile.ins/Makefile.ams, use 46 dnl "mkinstalldirs" for recursive mkdir and 47 dnl "mkdir" for non-recursive mkdir, instead 118 48 RTEMS_PATH_MKDIR 119 49 RTEMS_PROG_MKDIR_M … … 151 81 152 82 RTEMS_CANONICAL_TARGET_CPU 83 RTEMS_CHECK_CPU 84 RTEMS_CANONICAL_HOST 153 85 154 86 changequote(,)dnl 155 87 case "${target}" in 156 # hpux unix port should go here157 88 i[3456]86-go32-rtems*) 158 rtems_bsp="go32 go32_p5" 159 skip_startfiles="yes" 160 RTEMS_HAS_POSIX_API=no 161 ;; 162 i[3456]86-pc-linux*) # unix "simulator" port 163 RTEMS_HOST=Linux 164 # override these settings 165 RTEMS_HAS_POSIX_API=no 166 ;; 167 i[3456]86-*freebsd2*) # unix "simulator" port 168 RTEMS_HOST=FreeBSD 169 # override these settings 170 RTEMS_HAS_POSIX_API=no 171 ;; 172 no_cpu-*rtems*) 173 RTEMS_HAS_POSIX_API=no 174 ;; 175 sparc-sun-solaris*) # unix "simulator" port 176 RTEMS_HOST=Solaris 177 # override these settings 178 RTEMS_HAS_POSIX_API=no 179 ;; 180 *) 181 ;; 89 rtems_bsp="go32 go32_p5" 90 skip_startfiles="yes" 91 ;; 92 *) 93 ;; 182 94 esac 183 95 changequote([,])dnl 184 185 96 186 97 # Override the set of BSPs to be built. … … 189 100 rtems_bsp=$enableval \ 190 101 ) 191 192 # Is this a supported CPU?193 AC_MSG_CHECKING([if cpu $target_cpu is supported])194 if test -d "$srcdir/c/src/exec/score/cpu/$target_cpu"; then195 AC_MSG_RESULT(yes)196 else197 AC_MSG_ERROR(no)198 fi199 102 200 103 RTEMS_TOOL_PREFIX … … 237 140 dnl check host cc 238 141 AC_PROG_CC 239 240 RTEMS_CYGWIN32 241 RTEMS_EXEEXT 142 dnl check for .exe (Cygwin) 143 AC_EXEEXT 242 144 243 145 dnl FIXME: HACK for egcs/cygwin mixing '\\' and '/' in gcc -print-* … … 261 163 dnl Add -g if the host compiler accepts -g, assume -g means debugging 262 164 test "$ac_cv_prog_cc_g" = "yes" && CC_CFLAGS_DEBUG_V=${CC_CFLAGS_DEBUG_V-"-g"} 263 264 dnl check for host library functions265 dnl NOTE: must be called after AC_PROG_CC266 AC_CHECK_FUNCS(strerror)267 165 268 166 dnl check for SysV IPC used by simulators … … 380 278 dnl END configure.target.in 381 279 382 383 280 PROJECT_ROOT=`pwd;` 384 281 … … 410 307 fi 411 308 412 # If the tests are enabled, then find all the test suite Makefiles 413 AC_MSG_CHECKING([if the test suites are enabled? ]) 414 tests_enabled=no 415 AC_ARG_ENABLE(tests, \ 416 [ --enable-tests enable tests (default:disabled)], \ 417 [case "${enableval}" in 418 yes) AC_MSG_RESULT(yes) ; tests_enabled=yes ;; 419 no) AC_MSG_RESULT(no) ; tests_enabled=no ;; 420 *) AC_MSG_ERROR(bad value ${enableval} for tests option) ;; 421 esac], 422 AC_MSG_RESULT(no) 423 ) 309 RTEMS_ENABLE_TESTS 424 310 425 311 RTEMS_CHECK_MAKEFILE(c/src/tests/tools/$target_cpu) … … 438 324 439 325 # If the HWAPI is enabled, the find the HWAPI Makefiles 440 AC_MSG_CHECKING([if the HWAPI is enabled? ]) 441 AC_ARG_ENABLE(hwapi, \ 442 [ --enable-hwapi enable hardware API library], \ 443 [case "${enableval}" in 444 yes) AC_MSG_RESULT(yes) 445 if test -f ${srcdir}/c/src/lib/libhwapi/Makefile.in ; then 446 makefiles="$makefiles c/src/lib/libhwapi/Makefile" 447 RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/analog) 448 RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/discrete) 449 RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/drivers) 450 RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/non_volatile_memory) 451 RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/serial) 452 RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/support) 453 RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/wrapup) 454 else 455 AC_MSG_ERROR(No source code found for the HWAPI) 456 fi 457 ;; 458 no) AC_MSG_RESULT(no) ;; 459 *) AC_MSG_ERROR(bad value ${enableval} for hwapi option) ;; 460 esac], 461 AC_MSG_RESULT(no) 462 ) 326 RTEMS_ENABLE_HWAPI 327 if test "$RTEMS_HAS_HWAPI" = "yes"; then 328 AC_MSG_CHECKING(whether libwapi is present) 329 if test -f ${srcdir}/c/src/lib/libhwapi/Makefile.in ; then 330 AC_MSG_RESULT(yes) 331 makefiles="$makefiles c/src/lib/libhwapi/Makefile" 332 RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/analog) 333 RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/discrete) 334 RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/drivers) 335 RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/non_volatile_memory) 336 RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/serial) 337 RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/support) 338 RTEMS_CHECK_MAKEFILE(c/src/lib/libhwapi/wrapup) 339 else 340 AC_MSG_ERROR(No source code found for the HWAPI) 341 fi 342 fi 463 343 464 344 AC_SUBST(RTEMS_GAS_CODE16) … … 485 365 486 366 # pick up all the Makefiles in required parts of the tree 487 RTEMS_CHECK_MAKEFILE(c/build-tools)488 367 RTEMS_CHECK_MAKEFILE(make) 489 368 RTEMS_CHECK_MAKEFILE(c/src/lib/libchip) … … 491 370 RTEMS_CHECK_MAKEFILE(c/src/tests/samples) 492 371 493 AC_CONFIG_HEADER(c/build-tools/src/config.h) 372 AC_CONFIG_SUBDIRS(c/build-tools) 373 # FIXME: libwapi needs a separate configure.in in future ;- 374 # AC_CONFIG_SUBDIRS(c/src/lib/libwapi) 494 375 495 376 # try not to explicitly list a Makefile here -
tools/build/Makefile.in
rc0a36429 r04c308c 1 # Makefile.in generated automatically by automake 1.4 from Makefile.am 2 3 # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. 4 # This Makefile.in is free software; the Free Software Foundation 5 # gives unlimited permission to copy and/or distribute it, 6 # with or without modifications, as long as this notice is preserved. 7 8 # This program is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 11 # PARTICULAR PURPOSE. 12 1 13 # 2 14 # $Id$ 3 15 # 4 16 5 @SET_MAKE@ 17 18 SHELL = @SHELL@ 19 6 20 srcdir = @srcdir@ 7 21 top_srcdir = @top_srcdir@ 8 top_builddir = ../.. 9 subdir = c/build-tools 22 VPATH = @srcdir@ 23 prefix = @prefix@ 24 exec_prefix = @exec_prefix@ 25 26 bindir = @bindir@ 27 sbindir = @sbindir@ 28 libexecdir = @libexecdir@ 29 datadir = @datadir@ 30 sysconfdir = @sysconfdir@ 31 sharedstatedir = @sharedstatedir@ 32 localstatedir = @localstatedir@ 33 libdir = @libdir@ 34 infodir = @infodir@ 35 mandir = @mandir@ 36 includedir = @includedir@ 37 oldincludedir = /usr/include 38 39 DESTDIR = 40 41 pkgdatadir = $(datadir)/@PACKAGE@ 42 pkglibdir = $(libdir)/@PACKAGE@ 43 pkgincludedir = $(includedir)/@PACKAGE@ 44 45 top_builddir = . 46 AUTOCONF = @AUTOCONF@ 47 AUTOMAKE = @AUTOMAKE@ 48 AUTOHEADER = @AUTOHEADER@ 10 49 11 50 INSTALL = @INSTALL@ 12 13 RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@ 51 INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) 52 INSTALL_DATA = @INSTALL_DATA@ 53 INSTALL_SCRIPT = @INSTALL_SCRIPT@ 54 transform = @program_transform_name@ 55 56 NORMAL_INSTALL = : 57 PRE_INSTALL = : 58 POST_INSTALL = : 59 NORMAL_UNINSTALL = : 60 PRE_UNINSTALL = : 61 POST_UNINSTALL = : 62 host_alias = @host_alias@ 63 host_triplet = @host@ 64 CC = @CC@ 65 EXEEXT = @EXEEXT@ 66 KSH = @KSH@ 67 MAKEINFO = @MAKEINFO@ 68 PACKAGE = @PACKAGE@ 14 69 PROJECT_ROOT = @PROJECT_ROOT@ 15 16 VPATH = @srcdir@ 17 18 include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg 19 include $(RTEMS_ROOT)/make/directory.cfg 20 21 SUB_DIRS=os scripts src 22 23 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 70 RTEMS_ROOT = @RTEMS_ROOT@ 71 RTEMS_TOPdir = @RTEMS_TOPdir@ 72 VERSION = @VERSION@ 73 74 AUTOMAKE_OPTIONS = foreign 75 ACLOCAL = @ACLOCAL@ -I $(RTEMS_TOPdir)/aclocal 76 77 SUBDIRS = scripts src 78 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 79 mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs 80 CONFIG_HEADER = ./src/config.h 81 CONFIG_CLEAN_FILES = 82 DIST_COMMON = Makefile.am Makefile.in aclocal.m4 configure configure.in 83 84 85 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) 86 87 TAR = tar 88 GZIP_ENV = --best 89 all: all-redirect 90 .SUFFIXES: 91 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 92 cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile 93 94 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) 24 95 cd $(top_builddir) \ 25 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 96 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status 97 98 $(ACLOCAL_M4): configure.in 99 cd $(srcdir) && $(ACLOCAL) 100 101 config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 102 $(SHELL) ./config.status --recheck 103 $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) 104 cd $(srcdir) && $(AUTOCONF) 105 106 # This directory's subdirectories are mostly independent; you can cd 107 # into them and run `make' without going through this Makefile. 108 # To change the values of `make' variables: instead of editing Makefiles, 109 # (1) if the variable is set in `config.status', edit `config.status' 110 # (which will cause the Makefiles to be regenerated when you run `make'); 111 # (2) otherwise, pass the desired values on the `make' command line. 112 113 @SET_MAKE@ 114 115 all-recursive install-data-recursive install-exec-recursive \ 116 installdirs-recursive install-recursive uninstall-recursive \ 117 check-recursive installcheck-recursive info-recursive dvi-recursive: 118 @set fnord $(MAKEFLAGS); amf=$$2; \ 119 dot_seen=no; \ 120 target=`echo $@ | sed s/-recursive//`; \ 121 list='$(SUBDIRS)'; for subdir in $$list; do \ 122 echo "Making $$target in $$subdir"; \ 123 if test "$$subdir" = "."; then \ 124 dot_seen=yes; \ 125 local_target="$$target-am"; \ 126 else \ 127 local_target="$$target"; \ 128 fi; \ 129 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 130 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ 131 done; \ 132 if test "$$dot_seen" = "no"; then \ 133 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ 134 fi; test -z "$$fail" 135 136 mostlyclean-recursive clean-recursive distclean-recursive \ 137 maintainer-clean-recursive: 138 @set fnord $(MAKEFLAGS); amf=$$2; \ 139 dot_seen=no; \ 140 rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \ 141 rev="$$subdir $$rev"; \ 142 test "$$subdir" = "." && dot_seen=yes; \ 143 done; \ 144 test "$$dot_seen" = "no" && rev=". $$rev"; \ 145 target=`echo $@ | sed s/-recursive//`; \ 146 for subdir in $$rev; do \ 147 echo "Making $$target in $$subdir"; \ 148 if test "$$subdir" = "."; then \ 149 local_target="$$target-am"; \ 150 else \ 151 local_target="$$target"; \ 152 fi; \ 153 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 154 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ 155 done && test -z "$$fail" 156 tags-recursive: 157 list='$(SUBDIRS)'; for subdir in $$list; do \ 158 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ 159 done 160 161 tags: TAGS 162 163 ID: $(HEADERS) $(SOURCES) $(LISP) 164 list='$(SOURCES) $(HEADERS)'; \ 165 unique=`for i in $$list; do echo $$i; done | \ 166 awk ' { files[$$0] = 1; } \ 167 END { for (i in files) print i; }'`; \ 168 here=`pwd` && cd $(srcdir) \ 169 && mkid -f$$here/ID $$unique $(LISP) 170 171 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) 172 tags=; \ 173 here=`pwd`; \ 174 list='$(SUBDIRS)'; for subdir in $$list; do \ 175 if test "$$subdir" = .; then :; else \ 176 test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \ 177 fi; \ 178 done; \ 179 list='$(SOURCES) $(HEADERS)'; \ 180 unique=`for i in $$list; do echo $$i; done | \ 181 awk ' { files[$$0] = 1; } \ 182 END { for (i in files) print i; }'`; \ 183 test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ 184 || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) 185 186 mostlyclean-tags: 187 188 clean-tags: 189 190 distclean-tags: 191 -rm -f TAGS ID 192 193 maintainer-clean-tags: 194 195 distdir = $(PACKAGE)-$(VERSION) 196 top_distdir = $(distdir) 197 198 # This target untars the dist file and tries a VPATH configuration. Then 199 # it guarantees that the distribution is self-contained by making another 200 # tarfile. 201 distcheck: dist 202 -rm -rf $(distdir) 203 GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz 204 mkdir $(distdir)/=build 205 mkdir $(distdir)/=inst 206 dc_install_base=`cd $(distdir)/=inst && pwd`; \ 207 cd $(distdir)/=build \ 208 && ../configure --srcdir=.. --prefix=$$dc_install_base \ 209 && $(MAKE) $(AM_MAKEFLAGS) \ 210 && $(MAKE) $(AM_MAKEFLAGS) dvi \ 211 && $(MAKE) $(AM_MAKEFLAGS) check \ 212 && $(MAKE) $(AM_MAKEFLAGS) install \ 213 && $(MAKE) $(AM_MAKEFLAGS) installcheck \ 214 && $(MAKE) $(AM_MAKEFLAGS) dist 215 -rm -rf $(distdir) 216 @banner="$(distdir).tar.gz is ready for distribution"; \ 217 dashes=`echo "$$banner" | sed s/./=/g`; \ 218 echo "$$dashes"; \ 219 echo "$$banner"; \ 220 echo "$$dashes" 221 dist: distdir 222 -chmod -R a+r $(distdir) 223 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) 224 -rm -rf $(distdir) 225 dist-all: distdir 226 -chmod -R a+r $(distdir) 227 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) 228 -rm -rf $(distdir) 229 distdir: $(DISTFILES) 230 -rm -rf $(distdir) 231 mkdir $(distdir) 232 -chmod 777 $(distdir) 233 here=`cd $(top_builddir) && pwd`; \ 234 top_distdir=`cd $(distdir) && pwd`; \ 235 distdir=`cd $(distdir) && pwd`; \ 236 cd $(top_srcdir) \ 237 && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile 238 @for file in $(DISTFILES); do \ 239 d=$(srcdir); \ 240 if test -d $$d/$$file; then \ 241 cp -pr $$/$$file $(distdir)/$$file; \ 242 else \ 243 test -f $(distdir)/$$file \ 244 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ 245 || cp -p $$d/$$file $(distdir)/$$file || :; \ 246 fi; \ 247 done 248 for subdir in $(SUBDIRS); do \ 249 if test "$$subdir" = .; then :; else \ 250 test -d $(distdir)/$$subdir \ 251 || mkdir $(distdir)/$$subdir \ 252 || exit 1; \ 253 chmod 777 $(distdir)/$$subdir; \ 254 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \ 255 || exit 1; \ 256 fi; \ 257 done 258 info-am: 259 info: info-recursive 260 dvi-am: 261 dvi: dvi-recursive 262 check-am: all-am 263 check: check-recursive 264 installcheck-am: 265 installcheck: installcheck-recursive 266 install-exec-am: 267 install-exec: install-exec-recursive 268 269 install-data-am: 270 install-data: install-data-recursive 271 272 install-am: all-am 273 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 274 install: install-recursive 275 uninstall-am: 276 uninstall: uninstall-recursive 277 all-am: Makefile 278 all-redirect: all-recursive 279 install-strip: 280 $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install 281 installdirs: installdirs-recursive 282 installdirs-am: 283 284 285 mostlyclean-generic: 286 287 clean-generic: 288 289 distclean-generic: 290 -rm -f Makefile $(CONFIG_CLEAN_FILES) 291 -rm -f config.cache config.log stamp-h stamp-h[0-9]* 292 293 maintainer-clean-generic: 294 mostlyclean-am: mostlyclean-tags mostlyclean-generic 295 296 mostlyclean: mostlyclean-recursive 297 298 clean-am: clean-tags clean-generic mostlyclean-am 299 300 clean: clean-recursive 301 302 distclean-am: distclean-tags distclean-generic clean-am 303 304 distclean: distclean-recursive 305 -rm -f config.status 306 307 maintainer-clean-am: maintainer-clean-tags maintainer-clean-generic \ 308 distclean-am 309 @echo "This command is intended for maintainers to use;" 310 @echo "it deletes files that may require special tools to rebuild." 311 312 maintainer-clean: maintainer-clean-recursive 313 -rm -f config.status 314 315 .PHONY: install-data-recursive uninstall-data-recursive \ 316 install-exec-recursive uninstall-exec-recursive installdirs-recursive \ 317 uninstalldirs-recursive all-recursive check-recursive \ 318 installcheck-recursive info-recursive dvi-recursive \ 319 mostlyclean-recursive distclean-recursive clean-recursive \ 320 maintainer-clean-recursive tags tags-recursive mostlyclean-tags \ 321 distclean-tags clean-tags maintainer-clean-tags distdir info-am info \ 322 dvi-am dvi check check-am installcheck-am installcheck install-exec-am \ 323 install-exec install-data-am install-data install-am install \ 324 uninstall-am uninstall all-redirect all-am all installdirs-am \ 325 installdirs mostlyclean-generic distclean-generic clean-generic \ 326 maintainer-clean-generic clean mostlyclean distclean maintainer-clean 327 328 329 # Tell versions [3.59,3.63) of GNU make to not export all variables. 330 # Otherwise a system limit (for SysV at least) may be exceeded. 331 .NOEXPORT: -
tools/build/scripts/Makefile.in
rc0a36429 r04c308c 1 # Makefile.in generated automatically by automake 1.4 from Makefile.am 2 3 # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. 4 # This Makefile.in is free software; the Free Software Foundation 5 # gives unlimited permission to copy and/or distribute it, 6 # with or without modifications, as long as this notice is preserved. 7 8 # This program is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 11 # PARTICULAR PURPOSE. 12 1 13 # 2 14 # $Id$ 3 15 # 4 # RTEMS build tools 5 # NOTE: of course we can't use any of these tools 6 # in this Makefile. Most notably: install-if-change 7 # 8 9 @SET_MAKE@ 16 17 18 SHELL = @SHELL@ 19 10 20 srcdir = @srcdir@ 11 21 top_srcdir = @top_srcdir@ 12 top_builddir = ../../.. 13 subdir = c/build-tools/scripts 22 VPATH = @srcdir@ 23 prefix = @prefix@ 24 exec_prefix = @exec_prefix@ 25 26 bindir = @bindir@ 27 sbindir = @sbindir@ 28 libexecdir = @libexecdir@ 29 datadir = @datadir@ 30 sysconfdir = @sysconfdir@ 31 sharedstatedir = @sharedstatedir@ 32 localstatedir = @localstatedir@ 33 libdir = @libdir@ 34 infodir = @infodir@ 35 mandir = @mandir@ 36 includedir = @includedir@ 37 oldincludedir = /usr/include 38 39 DESTDIR = 40 41 pkgdatadir = $(datadir)/@PACKAGE@ 42 pkglibdir = $(libdir)/@PACKAGE@ 43 pkgincludedir = $(includedir)/@PACKAGE@ 44 45 top_builddir = .. 46 47 ACLOCAL = @ACLOCAL@ 48 AUTOCONF = @AUTOCONF@ 49 AUTOMAKE = @AUTOMAKE@ 50 AUTOHEADER = @AUTOHEADER@ 14 51 15 52 INSTALL = @INSTALL@ 16 17 RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@ 53 INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) 54 INSTALL_DATA = @INSTALL_DATA@ 55 INSTALL_SCRIPT = @INSTALL_SCRIPT@ 56 transform = @program_transform_name@ 57 58 NORMAL_INSTALL = : 59 PRE_INSTALL = : 60 POST_INSTALL = : 61 NORMAL_UNINSTALL = : 62 PRE_UNINSTALL = : 63 POST_UNINSTALL = : 64 host_alias = @host_alias@ 65 host_triplet = @host@ 66 CC = @CC@ 67 EXEEXT = @EXEEXT@ 68 KSH = @KSH@ 69 MAKEINFO = @MAKEINFO@ 70 PACKAGE = @PACKAGE@ 18 71 PROJECT_ROOT = @PROJECT_ROOT@ 19 20 VPATH = @srcdir@ 21 22 include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg 23 include $(RTEMS_ROOT)/make/leaf.cfg 24 25 DESTDIR=$(PROJECT_RELEASE)/build-tools 26 27 BUILD_PGMS=install-if-change rcs-clean lock-directory unlock-directory 28 PGMS = $(BUILD_PGMS) search-id.sh 29 30 CLEAN_ADDITIONS += $(BUILD_PGMS) 31 32 INSTALLED_PGMS=$(PGMS:%=$(DESTDIR)/%) 33 34 all: $(DESTDIR) $(PGMS) install 35 36 $(DESTDIR): 37 @top_srcdir@/mkinstalldirs $@ 38 39 $(INSTALLED_PGMS): $(PGMS) 40 $(INSTALL) $(INSTBINFLAGS) $^ $(DESTDIR) 41 42 install: $(DESTDIR) $(INSTALLED_PGMS) 43 44 %: $(srcdir)/%.in $(top_builddir)/config.status 72 RTEMS_ROOT = @RTEMS_ROOT@ 73 RTEMS_TOPdir = @RTEMS_TOPdir@ 74 VERSION = @VERSION@ 75 76 AUTOMAKE_OPTIONS = foreign 77 78 bin_SCRIPTS = install-if-change lock-directory unlock-directory rcs-clean 79 80 81 noinst_SCRIPTS = search-id.sh 82 mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs 83 CONFIG_HEADER = ../src/config.h 84 CONFIG_CLEAN_FILES = install-if-change lock-directory rcs-clean \ 85 unlock-directory 86 SCRIPTS = $(bin_SCRIPTS) $(noinst_SCRIPTS) 87 88 DIST_COMMON = README Makefile.am Makefile.in install-if-change.in \ 89 lock-directory.in rcs-clean.in unlock-directory.in 90 91 92 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) 93 94 TAR = tar 95 GZIP_ENV = --best 96 all: all-redirect 97 .SUFFIXES: 98 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 99 cd $(top_srcdir) && $(AUTOMAKE) --foreign scripts/Makefile 100 101 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) 45 102 cd $(top_builddir) \ 46 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 103 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 104 105 install-if-change: $(top_builddir)/config.status install-if-change.in 106 cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 107 lock-directory: $(top_builddir)/config.status lock-directory.in 108 cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 109 rcs-clean: $(top_builddir)/config.status rcs-clean.in 110 cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 111 unlock-directory: $(top_builddir)/config.status unlock-directory.in 112 cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 113 114 install-binSCRIPTS: $(bin_SCRIPTS) 115 @$(NORMAL_INSTALL) 116 $(mkinstalldirs) $(DESTDIR)$(bindir) 117 @list='$(bin_SCRIPTS)'; for p in $$list; do \ 118 if test -f $$p; then \ 119 echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \ 120 $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \ 121 else if test -f $(srcdir)/$$p; then \ 122 echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \ 123 $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \ 124 else :; fi; fi; \ 125 done 126 127 uninstall-binSCRIPTS: 128 @$(NORMAL_UNINSTALL) 129 list='$(bin_SCRIPTS)'; for p in $$list; do \ 130 rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \ 131 done 132 tags: TAGS 133 TAGS: 134 135 136 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) 137 138 subdir = scripts 139 140 distdir: $(DISTFILES) 141 here=`cd $(top_builddir) && pwd`; \ 142 top_distdir=`cd $(top_distdir) && pwd`; \ 143 distdir=`cd $(distdir) && pwd`; \ 144 cd $(top_srcdir) \ 145 && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign scripts/Makefile 146 @for file in $(DISTFILES); do \ 147 d=$(srcdir); \ 148 if test -d $$d/$$file; then \ 149 cp -pr $$/$$file $(distdir)/$$file; \ 150 else \ 151 test -f $(distdir)/$$file \ 152 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ 153 || cp -p $$d/$$file $(distdir)/$$file || :; \ 154 fi; \ 155 done 156 info-am: 157 info: info-am 158 dvi-am: 159 dvi: dvi-am 160 check-am: all-am 161 check: check-am 162 installcheck-am: 163 installcheck: installcheck-am 164 install-exec-am: install-binSCRIPTS install-exec-local 165 install-exec: install-exec-am 166 167 install-data-am: 168 install-data: install-data-am 169 170 install-am: all-am 171 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 172 install: install-am 173 uninstall-am: uninstall-binSCRIPTS 174 uninstall: uninstall-am 175 all-am: Makefile $(SCRIPTS) 176 all-redirect: all-am 177 install-strip: 178 $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install 179 installdirs: 180 $(mkinstalldirs) $(DESTDIR)$(bindir) 181 182 183 mostlyclean-generic: 184 185 clean-generic: 186 187 distclean-generic: 188 -rm -f Makefile $(CONFIG_CLEAN_FILES) 189 -rm -f config.cache config.log stamp-h stamp-h[0-9]* 190 191 maintainer-clean-generic: 192 mostlyclean-am: mostlyclean-generic 193 194 mostlyclean: mostlyclean-am 195 196 clean-am: clean-generic mostlyclean-am 197 198 clean: clean-am 199 200 distclean-am: distclean-generic clean-am 201 202 distclean: distclean-am 203 204 maintainer-clean-am: maintainer-clean-generic distclean-am 205 @echo "This command is intended for maintainers to use;" 206 @echo "it deletes files that may require special tools to rebuild." 207 208 maintainer-clean: maintainer-clean-am 209 210 .PHONY: uninstall-binSCRIPTS install-binSCRIPTS tags distdir info-am \ 211 info dvi-am dvi check check-am installcheck-am installcheck \ 212 install-exec-local install-exec-am install-exec install-data-am \ 213 install-data install-am install uninstall-am uninstall all-redirect \ 214 all-am all installdirs mostlyclean-generic distclean-generic \ 215 clean-generic maintainer-clean-generic clean mostlyclean distclean \ 216 maintainer-clean 217 218 219 # 220 # HACK: install to the build-tree 221 # 222 install-exec-local: $(bin_SCRIPTS) 223 $(mkinstalldirs) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools 224 $(INSTALL_SCRIPT) $(bin_SCRIPTS) \ 225 $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools 226 227 preinstall: install-exec-local 228 229 # Tell versions [3.59,3.63) of GNU make to not export all variables. 230 # Otherwise a system limit (for SysV at least) may be exceeded. 231 .NOEXPORT: -
tools/build/src/Makefile.in
rc0a36429 r04c308c 1 # Makefile.in generated automatically by automake 1.4 from Makefile.am 2 3 # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. 4 # This Makefile.in is free software; the Free Software Foundation 5 # gives unlimited permission to copy and/or distribute it, 6 # with or without modifications, as long as this notice is preserved. 7 8 # This program is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 11 # PARTICULAR PURPOSE. 12 1 13 # 2 14 # $Id$ 3 15 # 4 16 5 @SET_MAKE@ 17 18 SHELL = @SHELL@ 19 6 20 srcdir = @srcdir@ 7 21 top_srcdir = @top_srcdir@ 8 top_builddir = ../../.. 9 subdir = c/build-tools/src 22 VPATH = @srcdir@ 23 prefix = @prefix@ 24 exec_prefix = @exec_prefix@ 25 26 bindir = @bindir@ 27 sbindir = @sbindir@ 28 libexecdir = @libexecdir@ 29 datadir = @datadir@ 30 sysconfdir = @sysconfdir@ 31 sharedstatedir = @sharedstatedir@ 32 localstatedir = @localstatedir@ 33 libdir = @libdir@ 34 infodir = @infodir@ 35 mandir = @mandir@ 36 includedir = @includedir@ 37 oldincludedir = /usr/include 38 39 DESTDIR = 40 41 pkgdatadir = $(datadir)/@PACKAGE@ 42 pkglibdir = $(libdir)/@PACKAGE@ 43 pkgincludedir = $(includedir)/@PACKAGE@ 44 45 top_builddir = .. 46 47 ACLOCAL = @ACLOCAL@ 48 AUTOCONF = @AUTOCONF@ 49 AUTOMAKE = @AUTOMAKE@ 50 AUTOHEADER = @AUTOHEADER@ 10 51 11 52 INSTALL = @INSTALL@ 12 13 RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@ 53 INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) 54 INSTALL_DATA = @INSTALL_DATA@ 55 INSTALL_SCRIPT = @INSTALL_SCRIPT@ 56 transform = @program_transform_name@ 57 58 NORMAL_INSTALL = : 59 PRE_INSTALL = : 60 POST_INSTALL = : 61 NORMAL_UNINSTALL = : 62 PRE_UNINSTALL = : 63 POST_UNINSTALL = : 64 host_alias = @host_alias@ 65 host_triplet = @host@ 66 CC = @CC@ 67 EXEEXT = @EXEEXT@ 68 KSH = @KSH@ 69 MAKEINFO = @MAKEINFO@ 70 PACKAGE = @PACKAGE@ 14 71 PROJECT_ROOT = @PROJECT_ROOT@ 15 16 exec_prefix = @exec_prefix@ 17 bindir = @bindir@ 18 libdir = @libdir@ 19 includedir = @includedir@ 20 manext = 1 21 mandir = @mandir@/man$(manext) 22 23 # FIXME: $EXEEXT should be set in a central cfg-file used for native 24 # compiling (e.g. gcc.cfg) instead of setting EXEEXE here. 25 EXEEXT=@EXEEXT@ 26 27 VPATH = @srcdir@ 28 29 # we use host compiler in this directory 30 USE_HOST_COMPILER=yes 31 32 # C source names, if any, go here -- minus the .c 33 C_PIECES=cklength eolstrip packhex unhex 34 C_FILES=$(C_PIECES:%=%.c) 35 C_O_FILES=$(C_PIECES:%=$(ARCH)/%.o) 36 37 H_FILES= 38 39 SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) 40 OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES) 41 42 # FIXME: building into $(ARCH) doesn't make sense for host programs 43 PGMS=$(ARCH)/cklength$(EXEEXT) $(ARCH)/eolstrip$(EXEEXT) \ 44 $(ARCH)/packhex$(EXEEXT) $(ARCH)/unhex$(EXEEXT) 45 46 include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg 47 include $(RTEMS_ROOT)/make/leaf.cfg 72 RTEMS_ROOT = @RTEMS_ROOT@ 73 RTEMS_TOPdir = @RTEMS_TOPdir@ 74 VERSION = @VERSION@ 75 76 AUTOMAKE_OPTIONS = foreign 77 78 bin_PROGRAMS = cklength eolstrip packhex unhex 79 80 cklength_SOURCES = cklength.c 81 eolstrip_SOURCES = eolstrip.c 82 packhex_SOURCES = packhex.c 83 unhex_SOURCES = unhex.c 84 mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs 85 CONFIG_HEADER = config.h 86 CONFIG_CLEAN_FILES = 87 bin_PROGRAMS = cklength$(EXEEXT) eolstrip$(EXEEXT) packhex$(EXEEXT) \ 88 unhex$(EXEEXT) 89 PROGRAMS = $(bin_PROGRAMS) 90 91 92 DEFS = @DEFS@ -I. -I$(srcdir) -I. 93 CPPFLAGS = @CPPFLAGS@ 94 LDFLAGS = @LDFLAGS@ 95 LIBS = @LIBS@ 96 cklength_OBJECTS = cklength.o 97 cklength_LDADD = $(LDADD) 98 cklength_DEPENDENCIES = 99 cklength_LDFLAGS = 100 eolstrip_OBJECTS = eolstrip.o 101 eolstrip_LDADD = $(LDADD) 102 eolstrip_DEPENDENCIES = 103 eolstrip_LDFLAGS = 104 packhex_OBJECTS = packhex.o 105 packhex_LDADD = $(LDADD) 106 packhex_DEPENDENCIES = 107 packhex_LDFLAGS = 108 unhex_OBJECTS = unhex.o 109 unhex_LDADD = $(LDADD) 110 unhex_DEPENDENCIES = 111 unhex_LDFLAGS = 112 CFLAGS = @CFLAGS@ 113 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 114 CCLD = $(CC) 115 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ 116 DIST_COMMON = ./stamp-h.in Makefile.am Makefile.in config.h.in 117 118 119 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) 120 121 TAR = tar 122 GZIP_ENV = --best 123 DEP_FILES = .deps/cklength.P .deps/eolstrip.P .deps/packhex.P \ 124 .deps/unhex.P 125 SOURCES = $(cklength_SOURCES) $(eolstrip_SOURCES) $(packhex_SOURCES) $(unhex_SOURCES) 126 OBJECTS = $(cklength_OBJECTS) $(eolstrip_OBJECTS) $(packhex_OBJECTS) $(unhex_OBJECTS) 127 128 all: all-redirect 129 .SUFFIXES: 130 .SUFFIXES: .S .c .o .s 131 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 132 cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile 133 134 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) 135 cd $(top_builddir) \ 136 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 137 138 139 config.h: stamp-h 140 @if test ! -f $@; then \ 141 rm -f stamp-h; \ 142 $(MAKE) stamp-h; \ 143 else :; fi 144 stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status 145 cd $(top_builddir) \ 146 && CONFIG_FILES= CONFIG_HEADERS=src/config.h \ 147 $(SHELL) ./config.status 148 @echo timestamp > stamp-h 2> /dev/null 149 $(srcdir)/config.h.in: $(srcdir)/stamp-h.in 150 @if test ! -f $@; then \ 151 rm -f $(srcdir)/stamp-h.in; \ 152 $(MAKE) $(srcdir)/stamp-h.in; \ 153 else :; fi 154 $(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) 155 cd $(top_srcdir) && $(AUTOHEADER) 156 @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null 157 158 mostlyclean-hdr: 159 160 clean-hdr: 161 162 distclean-hdr: 163 -rm -f config.h 164 165 maintainer-clean-hdr: 166 167 mostlyclean-binPROGRAMS: 168 169 clean-binPROGRAMS: 170 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) 171 172 distclean-binPROGRAMS: 173 174 maintainer-clean-binPROGRAMS: 175 176 install-binPROGRAMS: $(bin_PROGRAMS) 177 @$(NORMAL_INSTALL) 178 $(mkinstalldirs) $(DESTDIR)$(bindir) 179 @list='$(bin_PROGRAMS)'; for p in $$list; do \ 180 if test -f $$p; then \ 181 echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ 182 $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ 183 else :; fi; \ 184 done 185 186 uninstall-binPROGRAMS: 187 @$(NORMAL_UNINSTALL) 188 list='$(bin_PROGRAMS)'; for p in $$list; do \ 189 rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ 190 done 191 192 .s.o: 193 $(COMPILE) -c $< 194 195 .S.o: 196 $(COMPILE) -c $< 197 198 mostlyclean-compile: 199 -rm -f *.o core *.core 200 201 clean-compile: 202 203 distclean-compile: 204 -rm -f *.tab.c 205 206 maintainer-clean-compile: 207 208 cklength$(EXEEXT): $(cklength_OBJECTS) $(cklength_DEPENDENCIES) 209 @rm -f cklength$(EXEEXT) 210 $(LINK) $(cklength_LDFLAGS) $(cklength_OBJECTS) $(cklength_LDADD) $(LIBS) 211 212 eolstrip$(EXEEXT): $(eolstrip_OBJECTS) $(eolstrip_DEPENDENCIES) 213 @rm -f eolstrip$(EXEEXT) 214 $(LINK) $(eolstrip_LDFLAGS) $(eolstrip_OBJECTS) $(eolstrip_LDADD) $(LIBS) 215 216 packhex$(EXEEXT): $(packhex_OBJECTS) $(packhex_DEPENDENCIES) 217 @rm -f packhex$(EXEEXT) 218 $(LINK) $(packhex_LDFLAGS) $(packhex_OBJECTS) $(packhex_LDADD) $(LIBS) 219 220 unhex$(EXEEXT): $(unhex_OBJECTS) $(unhex_DEPENDENCIES) 221 @rm -f unhex$(EXEEXT) 222 $(LINK) $(unhex_LDFLAGS) $(unhex_OBJECTS) $(unhex_LDADD) $(LIBS) 223 224 tags: TAGS 225 226 ID: $(HEADERS) $(SOURCES) $(LISP) 227 list='$(SOURCES) $(HEADERS)'; \ 228 unique=`for i in $$list; do echo $$i; done | \ 229 awk ' { files[$$0] = 1; } \ 230 END { for (i in files) print i; }'`; \ 231 here=`pwd` && cd $(srcdir) \ 232 && mkid -f$$here/ID $$unique $(LISP) 233 234 TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP) 235 tags=; \ 236 here=`pwd`; \ 237 list='$(SOURCES) $(HEADERS)'; \ 238 unique=`for i in $$list; do echo $$i; done | \ 239 awk ' { files[$$0] = 1; } \ 240 END { for (i in files) print i; }'`; \ 241 test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \ 242 || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS) 243 244 mostlyclean-tags: 245 246 clean-tags: 247 248 distclean-tags: 249 -rm -f TAGS ID 250 251 maintainer-clean-tags: 252 253 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) 254 255 subdir = src 256 257 distdir: $(DISTFILES) 258 here=`cd $(top_builddir) && pwd`; \ 259 top_distdir=`cd $(top_distdir) && pwd`; \ 260 distdir=`cd $(distdir) && pwd`; \ 261 cd $(top_srcdir) \ 262 && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign src/Makefile 263 @for file in $(DISTFILES); do \ 264 d=$(srcdir); \ 265 if test -d $$d/$$file; then \ 266 cp -pr $$/$$file $(distdir)/$$file; \ 267 else \ 268 test -f $(distdir)/$$file \ 269 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ 270 || cp -p $$d/$$file $(distdir)/$$file || :; \ 271 fi; \ 272 done 273 274 DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) 275 276 -include $(DEP_FILES) 277 278 mostlyclean-depend: 279 280 clean-depend: 281 282 distclean-depend: 283 -rm -rf .deps 284 285 maintainer-clean-depend: 286 287 %.o: %.c 288 @echo '$(COMPILE) -c $<'; \ 289 $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $< 290 @-cp .deps/$(*F).pp .deps/$(*F).P; \ 291 tr ' ' '\012' < .deps/$(*F).pp \ 292 | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ 293 >> .deps/$(*F).P; \ 294 rm .deps/$(*F).pp 295 296 %.lo: %.c 297 @echo '$(LTCOMPILE) -c $<'; \ 298 $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< 299 @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ 300 < .deps/$(*F).pp > .deps/$(*F).P; \ 301 tr ' ' '\012' < .deps/$(*F).pp \ 302 | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ 303 >> .deps/$(*F).P; \ 304 rm -f .deps/$(*F).pp 305 info-am: 306 info: info-am 307 dvi-am: 308 dvi: dvi-am 309 check-am: all-am 310 check: check-am 311 installcheck-am: 312 installcheck: installcheck-am 313 all-recursive-am: config.h 314 $(MAKE) $(AM_MAKEFLAGS) all-recursive 315 316 install-exec-am: install-binPROGRAMS install-exec-local 317 install-exec: install-exec-am 318 319 install-data-am: 320 install-data: install-data-am 321 322 install-am: all-am 323 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 324 install: install-am 325 uninstall-am: uninstall-binPROGRAMS 326 uninstall: uninstall-am 327 all-am: Makefile $(PROGRAMS) config.h 328 all-redirect: all-am 329 install-strip: 330 $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install 331 installdirs: 332 $(mkinstalldirs) $(DESTDIR)$(bindir) 333 334 335 mostlyclean-generic: 336 337 clean-generic: 338 339 distclean-generic: 340 -rm -f Makefile $(CONFIG_CLEAN_FILES) 341 -rm -f config.cache config.log stamp-h stamp-h[0-9]* 342 343 maintainer-clean-generic: 344 mostlyclean-am: mostlyclean-hdr mostlyclean-binPROGRAMS \ 345 mostlyclean-compile mostlyclean-tags mostlyclean-depend \ 346 mostlyclean-generic 347 348 mostlyclean: mostlyclean-am 349 350 clean-am: clean-hdr clean-binPROGRAMS clean-compile clean-tags \ 351 clean-depend clean-generic mostlyclean-am 352 353 clean: clean-am 354 355 distclean-am: distclean-hdr distclean-binPROGRAMS distclean-compile \ 356 distclean-tags distclean-depend distclean-generic \ 357 clean-am 358 359 distclean: distclean-am 360 361 maintainer-clean-am: maintainer-clean-hdr maintainer-clean-binPROGRAMS \ 362 maintainer-clean-compile maintainer-clean-tags \ 363 maintainer-clean-depend maintainer-clean-generic \ 364 distclean-am 365 @echo "This command is intended for maintainers to use;" 366 @echo "it deletes files that may require special tools to rebuild." 367 368 maintainer-clean: maintainer-clean-am 369 370 .PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \ 371 mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \ 372 maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \ 373 mostlyclean-compile distclean-compile clean-compile \ 374 maintainer-clean-compile tags mostlyclean-tags distclean-tags \ 375 clean-tags maintainer-clean-tags distdir mostlyclean-depend \ 376 distclean-depend clean-depend maintainer-clean-depend info-am info \ 377 dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \ 378 install-exec-local install-exec-am install-exec install-data-am \ 379 install-data install-am install uninstall-am uninstall all-redirect \ 380 all-am all installdirs mostlyclean-generic distclean-generic \ 381 clean-generic maintainer-clean-generic clean mostlyclean distclean \ 382 maintainer-clean 383 48 384 49 385 # 50 # (OPTIONAL) Add local stuff here using +=386 # HACK: install to the build-tree 51 387 # 52 53 DEFINES += 54 CPPFLAGS += -I. 55 CFLAGS += 56 57 LD_PATHS += 58 LD_LIBS += 59 LDFLAGS += 60 61 # 62 # Add your list of files to delete here. The config files 63 # already know how to delete some stuff, so you may want 64 # to just run 'make clean' first to see what gets missed. 65 # 'make clobber' already includes 'make clean' 66 # 67 68 CLEAN_ADDITIONS += $(HOST_ARCH) 69 CLOBBER_ADDITIONS += 70 71 DESTDIR=${PROJECT_RELEASE}/build-tools 72 73 $(DESTDIR): 74 @top_srcdir@/mkinstalldirs $@ 75 76 all: $(ARCH) $(DESTDIR) $(SRCS) $(PGMS) 77 $(INSTALL) $(INSTBINFLAGS) $(PGMS) $(DESTDIR) 78 79 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 80 cd $(top_builddir) \ 81 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status 388 install-exec-local: $(bin_PROGRAMS) 389 $(mkinstalldirs) $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools 390 $(INSTALL_PROGRAM) $(bin_PROGRAMS) \ 391 $(PROJECT_ROOT)/${RTEMS_BSP}/build-tools 392 393 preinstall: install-exec-local 394 395 # Tell versions [3.59,3.63) of GNU make to not export all variables. 396 # Otherwise a system limit (for SysV at least) may be exceeded. 397 .NOEXPORT: -
tools/build/src/config.h.in
rc0a36429 r04c308c 1 /* 2 * This file is editted automatically by autoconf. 3 * 4 * $Id$ 5 */ 1 /* src/config.h.in. Generated automatically from configure.in by autoheader. */ 6 2 7 3 /* Define if you have the strerror function. */ 8 4 #undef HAVE_STRERROR 9
Note: See TracChangeset
for help on using the changeset viewer.