source: rtems/doc/bsp_howto/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: 2.6 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 = bsp_howto
12EDITION = 1
13
14include $(top_srcdir)/project.am
15
16GENERATED_FILES = intro.texi target.texi makefiles.texi linkcmds.texi \
17    support.texi adaintr.texi init.texi console.texi clock.texi timer.texi \
18    rtc.texi nvmem.texi network.texi shmsupp.texi analog.texi discrete.texi
19
20COMMON_FILES = $(top_srcdir)/common/setup.texi \
21    $(top_srcdir)/common/cpright.texi
22
23FILES =
24
25info_TEXINFOS = bsp_howto.texi
26bsp_howto_TEXINFOS = $(FILES) $(COMMON_FILES) $(GENERATED_FILES)
27
28#
29#  Process Automatically Generated Files
30#
31
32$(srcdir)/intro.texi: intro.t
33        $(BMENU2) -p "Top" \
34            -u "Top" \
35            -n "Target Dependent Files" < $< > $@
36
37$(srcdir)/target.texi: target.t
38        $(BMENU2) -p "Introduction" \
39            -u "Top" \
40            -n "Makefiles" < $< > $@
41
42$(srcdir)/makefiles.texi: makefiles.t
43        $(BMENU2) -p "Target Dependent Files Board Support Package Structure" \
44            -u "Top" \
45            -n "Linker Script" < $< > $@
46
47$(srcdir)/linkcmds.texi: linkcmds.t
48        $(BMENU2) -p "Makefiles Creating a New BSP Make Customization File" \
49            -u "Top" \
50            -n "Ada95 Interrupt Support" < $< > $@
51
52$(srcdir)/adaintr.texi: adaintr.t
53        $(BMENU2) -p "Linker Script Initialized Data" \
54            -u "Top" \
55            -n "Miscellaneous Support Files" < $< > $@
56
57$(srcdir)/support.texi: support.t
58        $(BMENU2) -p "Ada95 Interrupt Support Version Requirements" \
59            -u "Top" \
60            -n "" < $< > $@
61
62$(srcdir)/init.texi: init.t
63        $(BMENU2) -p "" \
64            -u "Top" \
65            -n "" < $< > $@
66
67$(srcdir)/console.texi: console.t
68        $(BMENU2) -p "" \
69            -u "Top" \
70            -n "" < $< > $@
71
72$(srcdir)/clock.texi: clock.t
73        $(BMENU2) -p "" \
74            -u "Top" \
75            -n "" < $< > $@
76
77$(srcdir)/timer.texi: timer.t
78        $(BMENU2) -p "" \
79            -u "Top" \
80            -n "" < $< > $@
81
82$(srcdir)/rtc.texi: rtc.t
83        $(BMENU2) -p "" \
84            -u "Top" \
85            -n "" < $< > $@
86
87$(srcdir)/nvmem.texi: nvmem.t
88        $(BMENU2) -p "" \
89            -u "Top" \
90            -n "" < $< > $@
91#
92#  Grab the chapter on writing a network device driver.
93#
94$(srcdir)/network.texi: ../networking/driver.t
95        $(BMENU2) -p "" \
96            -u "Top" \
97            -n "" < $< > $@
98
99$(srcdir)/shmsupp.texi: shmsupp.t
100        $(BMENU2) -p "" \
101            -u "Top" \
102            -n "" < $< > $@
103
104$(srcdir)/analog.texi: analog.t
105        $(BMENU2) -p "" \
106            -u "Top" \
107            -n "" < $< > $@
108
109$(srcdir)/discrete.texi: discrete.t
110        $(BMENU2) -p "" \
111            -u "Top" \
112            -n "" < $< > $@
113
114EXTRA_DIST = adaintr.t analog.t clock.t console.t discrete.t init.t intro.t \
115    linkcmds.t makefiles.t nvmem.t rtc.t shmsupp.t support.t target.t \
116    timer.t
Note: See TracBrowser for help on using the repository browser.