Changeset 35d7b15 in rtems for c/src/lib/libcpu/sh/sh7045/clock


Ignore:
Timestamp:
Dec 21, 1999, 2:41:43 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
369ef18
Parents:
5bce35b
Message:

Patch rtems-rc-19991203-7.diff from Ralf Corsepius <corsepiu@…>
which adds partial automake support to libcpu/<cpu>/*.

Until now I have only implemented full automake support for the sh (my
demonstration example :) and the i386 (inevitiable for structural
reasons of this subdirectory). For all other cpus only their toplevel
directories (exception: powerpc), include subdirectories and a few
selected subdirectories have been converted to automake.
I did this on purpose, because add automake support to each subdirectory
requires individual adaptations which to be tested individually.

Additionally the weirdnesses of the powerpc subdirectories hit again,
esp. some powerpc cpu-models

  • install files to $(PROJECT_INCLUDE)/<cpu-model>/ while others install them to $(PROJECT_INCLUDE)/
  • the scheme used to configure libcpu/powerpc/ is difficult to implement using automake, therefore this subdirectory still is configured by autoconf (The one out of an unlimited set selection scheme hits again :), though powerpc/*/* subdirectories already apply automake.

The patch also reveils structural weaknesses in RTEMS:

E.g. There seem to exist at least 5 different general schemes:

  • Not using libcpu at all (eg. i960)
  • Strictly tree-style a libcpu/<cpu-variant>/* (eg. m68k, sh)
  • Flat libcpu directory layout with cpu-variants merged into sources or not destinguishing cpu-variants (i386)
  • Not supporting variants with deep source tree (sparc, hppa, mips64orion)
  • Woven directory structure with shared directories (powerpc)

I regret having to say this, but from my POV this means, that there
doesn't exist a general implementation scheme for libcpu at all.

To apply:

rm -rf ./c/src/lib/libcpu/i386/wrapup
rm -rf ./c/src/lib/libcpu/mips64orion/include
rm -rf ./c/src/lib/libcpu/powerpc/ppc403/include
patch -p1 < rtems-rc-19991203-7.diff
./bootstrap

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/sh/sh7045/clock/Makefile.in

    r5bce35b r35d7b15  
    1 ##
    2 ## $Id$
    3 ##
    4 
    5 @SET_MAKE@
     1# Makefile.in generated automatically by automake 1.4a 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
     13
     14
     15SHELL = @SHELL@
     16
    617srcdir = @srcdir@
    718top_srcdir = @top_srcdir@
    8 top_builddir = ../../..
    9 subdir = sh/sh7045/clock
    10 
     19VPATH = @srcdir@
     20prefix = @prefix@
     21exec_prefix = @exec_prefix@
     22
     23bindir = @bindir@
     24sbindir = @sbindir@
     25libexecdir = @libexecdir@
     26datadir = @datadir@
     27sysconfdir = @sysconfdir@
     28sharedstatedir = @sharedstatedir@
     29localstatedir = @localstatedir@
     30libdir = @libdir@
     31infodir = @infodir@
     32mandir = @mandir@
     33includedir = @includedir@
     34oldincludedir = /usr/include
     35
     36DESTDIR =
     37
     38pkgdatadir = $(datadir)/@PACKAGE@
     39pkglibdir = $(libdir)/@PACKAGE@
     40pkgincludedir = $(includedir)/@PACKAGE@
     41
     42top_builddir = ../..
     43
     44ACLOCAL = @ACLOCAL@
     45AUTOCONF = @AUTOCONF@
     46AUTOMAKE = @AUTOMAKE@
     47AUTOHEADER = @AUTOHEADER@
     48
     49INSTALL = @INSTALL@
     50INSTALL_PROGRAM = @INSTALL_PROGRAM@
     51INSTALL_DATA = @INSTALL_DATA@
     52INSTALL_SCRIPT = @INSTALL_SCRIPT@
     53INSTALL_STRIP_FLAG =
     54transform = @program_transform_name@
     55
     56NORMAL_INSTALL = :
     57PRE_INSTALL = :
     58POST_INSTALL = :
     59NORMAL_UNINSTALL = :
     60PRE_UNINSTALL = :
     61POST_UNINSTALL = :
     62build_alias = @build_alias@
     63build_triplet = @build@
     64host_alias = @host_alias@
     65host_triplet = @host@
     66target_alias = @target_alias@
     67target_triplet = @target@
     68CC = @CC@
     69CC_FOR_TARGET = @CC_FOR_TARGET@
     70CPP = @CPP@
     71GCCSED = @GCCSED@
     72INSTALL_CHANGE = @INSTALL_CHANGE@
     73MAINT = @MAINT@
     74MAKEINFO = @MAKEINFO@
     75PACKAGE = @PACKAGE@
     76PACKHEX = @PACKHEX@
     77PROJECT_INCLUDE = @PROJECT_INCLUDE@
     78PROJECT_RELEASE = @PROJECT_RELEASE@
     79PROJECT_ROOT = @PROJECT_ROOT@
     80RTEMS_BSP = @RTEMS_BSP@
     81RTEMS_BSP_FAMILY = @RTEMS_BSP_FAMILY@
     82RTEMS_CPU = @RTEMS_CPU@
     83RTEMS_CPU_MODEL = @RTEMS_CPU_MODEL@
     84RTEMS_HOST = @RTEMS_HOST@
     85RTEMS_LIBC_DIR = @RTEMS_LIBC_DIR@
    1186RTEMS_ROOT = @RTEMS_ROOT@
    12 PROJECT_ROOT = @PROJECT_ROOT@
    13 
    14 VPATH = @srcdir@
     87RTEMS_TOPdir = @RTEMS_TOPdir@
     88VERSION = @VERSION@
     89
     90AUTOMAKE_OPTIONS = foreign 1.4
    1591
    1692PGM = ${ARCH}/clock.rel
    1793
    18 # C source names, if any, go here -- minus the .c
    19 C_PIECES = ckinit
    20 C_FILES = $(C_PIECES:%=%.c)
    21 C_O_FILES = $(C_PIECES:%=${ARCH}/%.o)
    22 
    23 H_FILES =
    24 
    25 # Assembly source names, if any, go here -- minus the .s
    26 S_PIECES =
    27 S_FILES = $(S_PIECES:%=%.s)
     94C_FILES = ckinit.c
     95C_O_FILES = $(C_FILES:%.c=${ARCH}/%.o)
     96
     97H_FILES =
     98
     99S_FILES =
    28100S_O_FILES = $(S_FILES:%.s=${ARCH}/%.o)
    29101
    30 SRCS = $(C_FILES) $(H_FILES) $(S_FILES)
    31102OBJS = $(C_O_FILES) $(S_O_FILES)
    32 
    33 include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
    34 include $(RTEMS_ROOT)/make/leaf.cfg
    35 
    36 INSTALL_CHANGE = @INSTALL_CHANGE@
    37103
    38104#
     
    40106#
    41107
    42 DEFINES +=
    43 CPPFLAGS +=
    44 CFLAGS += $(CFLAGS_OS_V)
    45 
    46 LD_PATHS +=
    47 LD_LIBS +=
    48 LDFLAGS +=
    49 
    50 #
    51 # Add your list of files to delete here.  The config files
    52 #  already know how to delete some stuff, so you may want
    53 #  to just run 'make clean' first to see what gets missed.
    54 #  'make clobber' already includes 'make clean'
    55 #
    56 
    57 CLEAN_ADDITIONS +=
    58 CLOBBER_ADDITIONS +=
     108AM_CFLAGS =  $(CFLAGS_OS_V)
     109
     110EXTRA_DIST = $(C_FILES) $(S_FILES)
     111mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../../mkinstalldirs
     112CONFIG_CLEAN_FILES =
     113DIST_COMMON =  Makefile.am Makefile.in
     114
     115
     116DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
     117
     118TAR = gtar
     119GZIP_ENV = --best
     120all: all-redirect
     121.SUFFIXES:
     122$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/../../../../../automake/local.am
     123        cd $(top_srcdir) && $(AUTOMAKE) --foreign sh7045/clock/Makefile
     124
     125Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
     126        cd $(top_builddir) \
     127          && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
     128
     129tags: TAGS
     130TAGS:
     131
     132
     133distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
     134
     135subdir = sh7045/clock
     136
     137distdir: $(DISTFILES)
     138        here=`cd $(top_builddir) && pwd`; \
     139        top_distdir=`cd $(top_distdir) && pwd`; \
     140        distdir=`cd $(distdir) && pwd`; \
     141        cd $(top_srcdir) \
     142          && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign sh7045/clock/Makefile
     143        @for file in $(DISTFILES); do \
     144          d=$(srcdir); \
     145          if test -d $$d/$$file; then \
     146            cp -pr $$d/$$file $(distdir)/$$file; \
     147          else \
     148            test -f $(distdir)/$$file \
     149            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
     150            || cp -p $$d/$$file $(distdir)/$$file || :; \
     151          fi; \
     152        done
     153info-am:
     154info: info-am
     155dvi-am:
     156dvi: dvi-am
     157check-am: all-am
     158check: check-am
     159installcheck-am:
     160installcheck: installcheck-am
     161install-exec-am:
     162install-exec: install-exec-am
     163
     164install-data-am:
     165install-data: install-data-am
     166
     167install-am: all-am
     168        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
     169install: install-am
     170uninstall-am:
     171uninstall: uninstall-am
     172all-am: Makefile
     173all-redirect: all-am
     174install-strip:
     175        $(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
     176installdirs:
     177
     178
     179mostlyclean-generic:
     180
     181clean-generic:
     182
     183distclean-generic:
     184        -rm -f Makefile $(CONFIG_CLEAN_FILES)
     185        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
     186
     187maintainer-clean-generic:
     188mostlyclean-am:  mostlyclean-generic
     189
     190mostlyclean: mostlyclean-am
     191
     192clean-am:  clean-generic mostlyclean-am
     193
     194clean: clean-am
     195
     196distclean-am:  distclean-generic clean-am
     197
     198distclean: distclean-am
     199
     200maintainer-clean-am:  maintainer-clean-generic distclean-am
     201        @echo "This command is intended for maintainers to use;"
     202        @echo "it deletes files that may require special tools to rebuild."
     203
     204maintainer-clean: maintainer-clean-am
     205
     206.PHONY: tags distdir info-am info dvi-am dvi check check-am \
     207installcheck-am installcheck install-exec-am install-exec \
     208install-data-am install-data install-am install uninstall-am uninstall \
     209all-redirect all-am all installdirs mostlyclean-generic \
     210distclean-generic clean-generic maintainer-clean-generic clean \
     211mostlyclean distclean maintainer-clean
     212
     213
     214include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
     215include $(RTEMS_ROOT)/make/leaf.cfg
    59216
    60217${PGM}: ${OBJS}
    61218        ${make-rel}
    62219
    63 all: ${ARCH} $(SRCS) $(PGM)
    64 
    65 # the .rel file built here will be put into libbsp.a by
    66 #    libbsp/sh/BSP/wrapup/Makefile
    67 install: all
    68 
    69 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
    70         cd $(top_builddir) \
    71          && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
     220all: ${ARCH} $(PGM)
     221
     222debug-am:
     223debug: debug-am
     224.PHONY: debug debug-am
     225
     226profile-am:
     227profile: profile-am
     228.PHONY: profile profile-am
     229
     230preinstall-am: $(PREINSTALL_FILES)
     231preinstall: preinstall-am
     232.PHONY: preinstall preinstall-am
     233
     234depend-am:
     235depend: depend-am
     236.PHONY: depend depend-am
     237
     238# Tell versions [3.59,3.63) of GNU make to not export all variables.
     239# Otherwise a system limit (for SysV at least) may be exceeded.
     240.NOEXPORT:
Note: See TracChangeset for help on using the changeset viewer.