source: rtems/doc/supplements/m68k/Makefile.am @ 110445c

4.104.114.84.95
Last change on this file since 110445c was 110445c, checked in by Joel Sherrill <joel.sherrill@…>, on 06/10/00 at 19:41:09

Patch rtems-rc-4.5.0-21.diff from Ralf Corsepius <corsepiu@…>
which splits the current monolithic specs files into a sequence of
subparts. These can be concatenated togather to make a the whole .spec
file. This cleans up the maintenance problem of having "all languages"
and a "C/C++ only" gccnewlib spec files. Plus it should make it easier
to produce variants like the gdb-m68k-bdm which require special hackery. :)
Ralf's comments:

It addresses the way *.spec.in get composed inside of the source
tree.

Changes:

  • Each spec.in is broken into several files (*.add), one *.add file per sub-package.
  • Each Makefile.am composes spec.ins from the *.add files
  • Removal of redundant automake support files.
  • Default value for BuildRoot? changed to /tmp/<spec-file-name>
  • %clean stage added to *specs

Advantages (IMHO).

  • The *.add files are easier to adminstrate and more flexible in comparison to the former *.specs.ins.
  • gccnewlib_c_only.spec.in now is composed from the same sources as gccnewlib.spec.in (less errors)
  • If using the default BuildRoot? --clean now deletes all files that were generated while building.

Notes:

  • rtems.spec.in has not yet been adapted to the scheme used for the other *spec.ins
  • Except for cosmetical changes the internals of the *.spec files should not have changed.

To Apply:

cvs rm -f scripts/binutils/binutils.spec.in
cvs rm -f scripts/gccnewlib/gccnewlib.spec.in
cvs rm -f scripts/gccnewlib/gccnewlib_c_only.spec.in
cvs rm -f scripts/gdb/gdb.spec.in
cvs rm -f scripts/config.sub
cvs rm -f scripts/config.guess
cvs rm -f scripts/install-sh
cvs rm -f scripts/mkinstalldirs
cvs rm -f scripts/missing

patch -p1 < rtems-rc-4.5.0-21.diff

cvs add scripts/*/*.add
cvs add scripts/*/README

  • Property mode set to 100644
File size: 3.4 KB
Line 
1#
2#  COPYRIGHT (c) 1988-1999.
3#  On-Line Applications Research Corporation (OAR).
4#  All rights reserved.
5#
6#  $Id$
7#
8
9AUTOMAKE_OPTIONS = foreign 1.4
10
11PROJECT = m68k
12EDITION = 1
13
14include $(top_srcdir)/project.am
15include $(top_srcdir)/supplements/supplement.am
16
17GENERATED_FILES = cpumodel.texi callconv.texi memmodel.texi intr.texi \
18    fatalerr.texi bsp.texi cputable.texi timing.texi wksheets.texi \
19    timeMVME136.texi
20
21COMMON_FILES = $(top_srcdir)/common/setup.texi \
22    $(top_srcdir)/common/cpright.texi $(top_srcdir)/common/timemac.texi
23
24FILES = preface.texi
25
26info_TEXINFOS = m68k.texi
27m68k_TEXINFOS = $(FILES) $(COMMON_FILES) $(GENERATED_FILES)
28
29#
30#  Chapters which get automatic processing
31#
32
33$(srcdir)/cpumodel.texi: cpumodel.t
34        $(BMENU2) -p "Preface" \
35            -u "Top" \
36            -n "Calling Conventions" < $< > $@
37
38$(srcdir)/callconv.texi: callconv.t
39        $(BMENU2) -p "CPU Model Dependent Features Extend Byte to Long Instruction" \
40            -u "Top" \
41            -n "Memory Model" < $< > $@
42
43$(srcdir)/memmodel.texi: memmodel.t
44        $(BMENU2) -p "Calling Conventions User-Provided Routines" \
45            -u "Top" \
46            -n "Interrupt Processing" < $< > $@
47
48# Interrupt Chapter:
49#  1.  Replace Times and Sizes
50#  2.  Build Node Structure
51$(srcdir)/intr.texi: intr_NOTIMES.t MVME136_TIMES
52        ${REPLACE2} -p $(srcdir)/MVME136_TIMES $(srcdir)/intr_NOTIMES.t  | \
53        $(BMENU2) -p "Memory Model Flat Memory Model" \
54            -u "Top" \
55            -n "Default Fatal Error Processing" > $@
56
57$(srcdir)/fatalerr.texi: fatalerr.t
58        $(BMENU2) -p "Interrupt Processing Interrupt Stack" \
59            -u "Top" \
60            -n "Board Support Packages" < $< > $@
61
62$(srcdir)/bsp.texi: bsp.t
63        $(BMENU2) -p "Default Fatal Error Processing Default Fatal Error Handler Operations" \
64            -u "Top" \
65            -n "Processor Dependent Information Table" < $< > $@
66
67$(srcdir)/cputable.texi: cputable.t
68        $(BMENU2) -p "Board Support Packages Processor Initialization" \
69            -u "Top" \
70            -n "Memory Requirements" < $< > $@
71
72# Worksheets Chapter:
73#  1.  Obtain the Shared File
74#  2.  Replace Times and Sizes
75#  3.  Build Node Structure
76
77$(srcdir)/wksheets.texi: $(top_srcdir)/common/wksheets.t MVME136_TIMES
78        ${REPLACE2} -p $(srcdir)/MVME136_TIMES \
79          $(top_srcdir)/common/wksheets.t | \
80        $(BMENU2) -p "Processor Dependent Information Table CPU Dependent Information Table" \
81            -u "Top" \
82            -n "Timing Specification"  > $@
83
84# Timing Specification Chapter:
85#  1.  Copy the Shared File
86#  3.  Build Node Structure
87
88$(srcdir)/timing.texi: $(top_srcdir)/common/timing.t
89        $(BMENU2) -p "Memory Requirements RTEMS RAM Workspace Worksheet" \
90            -u "Top" \
91            -n "MVME136 Timing Data" < $< > $@
92
93# Timing Data for BSP Chapter:
94#  1.  Copy the Shared File
95#  2.  Replace Times and Sizes
96#  3.  Build Node Structure
97
98$(srcdir)/timeMVME136.texi: $(top_srcdir)/common/timetbl.t timeMVME136.t
99        cat $(srcdir)/timeMVME136.t $(top_srcdir)/common/timetbl.t   >timeMVME136_.t
100        @echo                                               >>timeMVME136_.t
101        @echo "@tex"                                        >>timeMVME136_.t
102        @echo "\\global\\advance \\smallskipamount by 4pt"  >>timeMVME136_.t
103        @echo "@end tex"                                    >>timeMVME136_.t
104        ${REPLACE2} -p $(srcdir)/MVME136_TIMES timeMVME136_.t | \
105        $(BMENU2) -p "Timing Specification Terminology" \
106            -u "Top" \
107            -n "Command and Variable Index" > $@
108CLEANFILES += timeMVME136_.t
109
110EXTRA_DIST = MVME136_TIMES bsp.t callconv.t cpumodel.t cputable.t fatalerr.t \
111    intr_NOTIMES.t memmodel.t timeMVME136.t timedata.t
Note: See TracBrowser for help on using the repository browser.