Ignore:
Timestamp:
03/23/99 18:02:17 (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
ca3fec49
Parents:
c69856c3
Message:

Automake II patch from Ralf Corsepius <corsepiu@…>. Email
description follows:

Description:

  • automake for *all* tool subdirectories (Makefile.am, configure.in etc.)
  • autogen now also considers CONFIG_HEADER (generates stamp-h.ins and config.h.ins)
  • c/src/tests/tools/generic/difftest and c/src/tests/tools/generic/sorttimes generated by configure scripts
  • c/update-tools/ampolish, beautifier for Makefile.ams, similar to acpolish
  • rtems-polish.sh added to c/update-tools/ + ampolish support
  • New subdirectory ./automake, contains automake -Makefile fragments to support RTEMS make "debug, debug_install, profile, profile_install" for native Makefile.ams (== ignore these make targets).
  • aclocal/rtems-top.m4's RTEMS_TOP now reads the automake makefile variable VERSION from RTEMS ./VERSION file.
  • ./configure.in uses the macros from aclocal + support for the tools' configure scripts

Remarks:

  • To run rtems-polish.sh, "cd <rtems-source-tree>; ./c/update-tools/rtems-polish.sh"
  • AFAIS, now all native subdirectories are converted to automake (Please drop me a note, if I forgot something).
  • Unless you notice something fatal, IMO the time has come for a public try (== snapshot). I do not intend to send more automake related patches within, say 2 weeks, to give these patches time to settle and to give me some time to think on how to continue.
  • The patch assumes installation to the new main installation directory [$(prefix)].
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/erc32/tools/Makefile.in

    rc69856c3 r9b8baa1  
     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
    113#
    214# $Id$
    315#
    416
    5 @SET_MAKE@
     17
     18# $Id$
     19
     20# NOTE: This is a temporary work-around to keep
     21# "make debug" and "make debug_install" working.
     22# Once automake is fully integrated these make targets
     23# and this file will probably be removed
     24
     25
     26SHELL = @SHELL@
     27
    628srcdir = @srcdir@
    729top_srcdir = @top_srcdir@
    8 top_builddir = ../../../../../../..
    9 subdir = c/src/lib/libbsp/sparc/erc32/tools
     30VPATH = @srcdir@
     31prefix = @prefix@
     32exec_prefix = @exec_prefix@
     33
     34bindir = @bindir@
     35sbindir = @sbindir@
     36libexecdir = @libexecdir@
     37datadir = @datadir@
     38sysconfdir = @sysconfdir@
     39sharedstatedir = @sharedstatedir@
     40localstatedir = @localstatedir@
     41libdir = @libdir@
     42infodir = @infodir@
     43mandir = @mandir@
     44includedir = @includedir@
     45oldincludedir = /usr/include
     46
     47DESTDIR =
     48
     49pkgdatadir = $(datadir)/@PACKAGE@
     50pkglibdir = $(libdir)/@PACKAGE@
     51pkgincludedir = $(includedir)/@PACKAGE@
     52
     53top_builddir = .
     54AUTOCONF = @AUTOCONF@
     55AUTOMAKE = @AUTOMAKE@
     56AUTOHEADER = @AUTOHEADER@
    1057
    1158INSTALL = @INSTALL@
    12 
    13 RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@
     59INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
     60INSTALL_DATA = @INSTALL_DATA@
     61INSTALL_SCRIPT = @INSTALL_SCRIPT@
     62transform = @program_transform_name@
     63
     64NORMAL_INSTALL = :
     65PRE_INSTALL = :
     66POST_INSTALL = :
     67NORMAL_UNINSTALL = :
     68PRE_UNINSTALL = :
     69POST_UNINSTALL = :
     70build_alias = @build_alias@
     71build_triplet = @build@
     72host_alias = @host_alias@
     73host_triplet = @host@
     74target_alias = @target_alias@
     75target_triplet = @target@
     76KSH = @KSH@
     77MAKEINFO = @MAKEINFO@
     78PACKAGE = @PACKAGE@
    1479PROJECT_ROOT = @PROJECT_ROOT@
    15 
    16 VPATH = @srcdir@
    17 
    18 include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
    19 include $(RTEMS_ROOT)/make/leaf.cfg
    20 
    21 DESTDIR=$(PROJECT_RELEASE)/tests
    22 
    23 BUILD_PGMS = runtest
    24 PGMS = $(BUILD_PGMS)
    25 
    26 CLEAN_ADDITIONS += $(BUILD_PGMS)
    27 
    28 INSTALLED_PGMS=$(PGMS:%=$(DESTDIR)/%)
    29 
    30 all:    $(DESTDIR) $(PGMS) install
    31 
    32 $(DESTDIR):
    33         @top_srcdir@/mkinstalldirs $@
    34 
    35 $(INSTALLED_PGMS): $(PGMS)
    36         $(INSTALL) $(INSTBINFLAGS) $^ $(DESTDIR)
    37 
    38 install: $(DESTDIR) $(INSTALLED_PGMS)
    39 
    40 %: $(srcdir)/%.in $(top_builddir)/config.status
     80RTEMS_TOPdir = @RTEMS_TOPdir@
     81VERSION = @VERSION@
     82
     83AUTOMAKE_OPTIONS = foreign
     84ACLOCAL = @ACLOCAL@ -I $(RTEMS_TOPdir)/aclocal
     85
     86noinst_SCRIPTS = runtest
     87ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
     88mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../../../../mkinstalldirs
     89CONFIG_CLEAN_FILES =
     90SCRIPTS =  $(noinst_SCRIPTS)
     91
     92DIST_COMMON =  Makefile.am Makefile.in aclocal.m4 configure configure.in
     93
     94
     95DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
     96
     97TAR = tar
     98GZIP_ENV = --best
     99all: all-redirect
     100.SUFFIXES:
     101$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/../../../../../../../automake/local.am
     102        cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
     103
     104Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
    41105        cd $(top_builddir) \
    42          && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
     106          && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
     107
     108$(ACLOCAL_M4):  configure.in
     109        cd $(srcdir) && $(ACLOCAL)
     110
     111config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
     112        $(SHELL) ./config.status --recheck
     113$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
     114        cd $(srcdir) && $(AUTOCONF)
     115tags: TAGS
     116TAGS:
     117
     118
     119distdir = $(PACKAGE)-$(VERSION)
     120top_distdir = $(distdir)
     121
     122# This target untars the dist file and tries a VPATH configuration.  Then
     123# it guarantees that the distribution is self-contained by making another
     124# tarfile.
     125distcheck: dist
     126        -rm -rf $(distdir)
     127        GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
     128        mkdir $(distdir)/=build
     129        mkdir $(distdir)/=inst
     130        dc_install_base=`cd $(distdir)/=inst && pwd`; \
     131        cd $(distdir)/=build \
     132          && ../configure --srcdir=.. --prefix=$$dc_install_base \
     133          && $(MAKE) $(AM_MAKEFLAGS) \
     134          && $(MAKE) $(AM_MAKEFLAGS) dvi \
     135          && $(MAKE) $(AM_MAKEFLAGS) check \
     136          && $(MAKE) $(AM_MAKEFLAGS) install \
     137          && $(MAKE) $(AM_MAKEFLAGS) installcheck \
     138          && $(MAKE) $(AM_MAKEFLAGS) dist
     139        -rm -rf $(distdir)
     140        @banner="$(distdir).tar.gz is ready for distribution"; \
     141        dashes=`echo "$$banner" | sed s/./=/g`; \
     142        echo "$$dashes"; \
     143        echo "$$banner"; \
     144        echo "$$dashes"
     145dist: distdir
     146        -chmod -R a+r $(distdir)
     147        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
     148        -rm -rf $(distdir)
     149dist-all: distdir
     150        -chmod -R a+r $(distdir)
     151        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
     152        -rm -rf $(distdir)
     153distdir: $(DISTFILES)
     154        -rm -rf $(distdir)
     155        mkdir $(distdir)
     156        -chmod 777 $(distdir)
     157        here=`cd $(top_builddir) && pwd`; \
     158        top_distdir=`cd $(distdir) && pwd`; \
     159        distdir=`cd $(distdir) && pwd`; \
     160        cd $(top_srcdir) \
     161          && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile
     162        @for file in $(DISTFILES); do \
     163          d=$(srcdir); \
     164          if test -d $$d/$$file; then \
     165            cp -pr $$/$$file $(distdir)/$$file; \
     166          else \
     167            test -f $(distdir)/$$file \
     168            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
     169            || cp -p $$d/$$file $(distdir)/$$file || :; \
     170          fi; \
     171        done
     172info-am:
     173info: info-am
     174dvi-am:
     175dvi: dvi-am
     176check-am: all-am
     177check: check-am
     178installcheck-am:
     179installcheck: installcheck-am
     180install-exec-am: install-exec-local
     181install-exec: install-exec-am
     182
     183install-data-am:
     184install-data: install-data-am
     185
     186install-am: all-am
     187        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
     188install: install-am
     189uninstall-am:
     190uninstall: uninstall-am
     191all-am: Makefile $(SCRIPTS)
     192all-redirect: all-am
     193install-strip:
     194        $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
     195installdirs:
     196
     197
     198mostlyclean-generic:
     199
     200clean-generic:
     201
     202distclean-generic:
     203        -rm -f Makefile $(CONFIG_CLEAN_FILES)
     204        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
     205
     206maintainer-clean-generic:
     207mostlyclean-am:  mostlyclean-generic
     208
     209mostlyclean: mostlyclean-am
     210
     211clean-am:  clean-generic mostlyclean-am
     212
     213clean: clean-am
     214
     215distclean-am:  distclean-generic clean-am
     216
     217distclean: distclean-am
     218        -rm -f config.status
     219
     220maintainer-clean-am:  maintainer-clean-generic distclean-am
     221        @echo "This command is intended for maintainers to use;"
     222        @echo "it deletes files that may require special tools to rebuild."
     223
     224maintainer-clean: maintainer-clean-am
     225        -rm -f config.status
     226
     227.PHONY: tags distdir info-am info dvi-am dvi check check-am \
     228installcheck-am installcheck install-exec-local install-exec-am \
     229install-exec install-data-am install-data install-am install \
     230uninstall-am uninstall all-redirect all-am all installdirs \
     231mostlyclean-generic distclean-generic clean-generic \
     232maintainer-clean-generic clean mostlyclean distclean maintainer-clean
     233
     234
     235#HACK: install to build-tree
     236install-exec-local: $(SCRIPTS)
     237        $(mkinstalldir) $(PROJECT_ROOT)/${RTEMS_BSP}/tests
     238        $(INSTALL_SCRIPT) runtest $(PROJECT_ROOT)/${RTEMS_BSP}/tests
     239
     240debug-am:
     241
     242debug: debug-am
     243
     244debug_install-am:
     245
     246debug_install: debug_install-am
     247
     248profile-am:
     249
     250profile: profile-am
     251
     252profile_install-am:
     253
     254profile_install: profile_install-am
     255
     256.PHONY: debug debug_install profile profile_install
     257
     258# Tell versions [3.59,3.63) of GNU make to not export all variables.
     259# Otherwise a system limit (for SysV at least) may be exceeded.
     260.NOEXPORT:
Note: See TracChangeset for help on using the changeset viewer.