source: rtems/doc/supplements/sparc/Makefile @ 28807e7

4.104.114.84.95
Last change on this file since 28807e7 was 28807e7, checked in by Joel Sherrill <joel.sherrill@…>, on 07/03/99 at 17:13:27

Removed concept of distribution level.

  • Property mode set to 100644
File size: 4.1 KB
Line 
1#
2#  COPYRIGHT (c) 1988-1998.
3#  On-Line Applications Research Corporation (OAR).
4#  All rights reserved.
5#
6#  $Id$
7#
8
9PROJECT=sparc
10
11include ../../Make.config
12
13REPLACE=../../tools/word-replace
14
15all: html info ps
16
17dirs:
18        $(make-dirs)
19
20COMMON_FILES=../../common/cpright.texi ../../common/setup.texi
21
22GENERATED_FILES=\
23  cpumodel.texi callconv.texi memmodel.texi intr.texi fatalerr.texi \
24  bsp.texi cputable.texi timing.texi wksheets.texi timeERC32.texi
25
26FILES= $(PROJECT).texi \
27  preface.texi \
28  $(GENERATED_FILES)
29
30INFOFILES=$(wildcard $(PROJECT) $(PROJECT)-*)
31
32info: dirs c_sparc
33        cp c_$(PROJECT) c_$(PROJECT)-* $(INFO_INSTALL)
34
35c_sparc: $(FILES)
36        $(MAKEINFO) $(PROJECT).texi
37
38dvi: $(PROJECT).dvi
39ps: dirs $(PROJECT).ps
40       
41$(PROJECT).ps: dirs $(PROJECT).dvi
42        dvips -o $(PROJECT).ps $(PROJECT).dvi
43        cp $(PROJECT).ps $(PS_INSTALL)
44
45$(PROJECT).dvi: $(FILES)
46        $(TEXI2DVI) $(PROJECT).texi
47
48html: dirs $(FILES)
49        -mkdir -p $(WWW_INSTALL)/c_$(PROJECT)
50        $(TEXI2WWW) $(TEXI2WWW_ARGS) -dir $(WWW_INSTALL)/c_$(PROJECT) \
51            $(PROJECT).texi
52
53clean:
54        rm -f *.o $(PROG) *.txt core
55        rm -f *.dvi *.ps *.log *.aux *.cp *.fn *.ky *.pg *.toc *.tp *.vr $(BASE)
56        rm -f $(PROJECT) $(PROJECT)-*
57        rm -f c_$(PROJECT) c_$(PROJECT)-*
58        rm -f intr.t $(GENERATED_FILES)
59        rm -f wksheets.t wksheets_NOTIMES.t timing.t
60        rm -f timeERC32_.t timeERC32_.texi
61        rm -f *.fixed _*
62
63#
64#  Chapters which get automatic processing
65#
66
67cpumodel.texi: cpumodel.t Makefile
68        $(BMENU) -p "Preface" \
69            -u "Top" \
70            -n "Calling Conventions" ${*}.t
71
72callconv.texi: callconv.t Makefile
73        $(BMENU) -p "CPU Model Dependent Features CPU Model Implementation Notes" \
74            -u "Top" \
75            -n "Memory Model" ${*}.t
76
77memmodel.texi: memmodel.t Makefile
78        $(BMENU) -p "Calling Conventions User-Provided Routines" \
79            -u "Top" \
80            -n "Interrupt Processing" ${*}.t
81
82# Interrupt Chapter:
83#  1.  Replace Times and Sizes
84#  2.  Build Node Structure
85intr.t: intr_NOTIMES.t ERC32_TIMES
86        ${REPLACE} -p ERC32_TIMES intr_NOTIMES.t
87        mv intr_NOTIMES.t.fixed intr.t
88
89intr.texi: intr.t Makefile
90        $(BMENU) -p "Memory Model Flat Memory Model" \
91            -u "Top" \
92            -n "Default Fatal Error Processing" ${*}.t
93
94fatalerr.texi: fatalerr.t Makefile
95        $(BMENU) -p "Interrupt Processing Interrupt Stack" \
96            -u "Top" \
97            -n "Board Support Packages" ${*}.t
98
99bsp.texi: bsp.t Makefile
100        $(BMENU) -p "Default Fatal Error Processing Default Fatal Error Handler Operations" \
101            -u "Top" \
102            -n "Processor Dependent Information Table" ${*}.t
103
104cputable.texi: cputable.t Makefile
105        $(BMENU) -p "Board Support Packages Processor Initialization" \
106            -u "Top" \
107            -n "Memory Requirements" ${*}.t
108
109
110# Worksheets Chapter:
111#  1.  Obtain the Shared File
112#  2.  Replace Times and Sizes
113#  3.  Build Node Structure
114
115wksheets_NOTIMES.t: ../../common/wksheets.t
116        cp ../../common/wksheets.t wksheets_NOTIMES.t
117
118wksheets.t: wksheets_NOTIMES.t ERC32_TIMES
119        ${REPLACE} -p ERC32_TIMES wksheets_NOTIMES.t
120        mv wksheets_NOTIMES.t.fixed wksheets.t
121
122wksheets.texi: wksheets.t Makefile
123        $(BMENU) -p "Processor Dependent Information Table CPU Dependent Information Table" \
124            -u "Top" \
125            -n "Timing Specification" ${*}.t
126
127# Timing Specification Chapter:
128#  1.  Copy the Shared File
129#  3.  Build Node Structure
130
131timing.t: ../../common/timing.t
132        cp ../../common/timing.t timing.t
133
134timing.texi: timing.t Makefile
135        $(BMENU) -p "Memory Requirements RTEMS RAM Workspace Worksheet" \
136            -u "Top" \
137            -n "ERC32 Timing Data" ${*}.t
138
139# Timing Data for ERC32 BSP Chapter:
140#  1.  Copy the Shared File
141#  2.  Replace Times and Sizes
142#  3.  Build Node Structure
143
144timeERC32_.t: ../../common/timetbl.t timeERC32.t
145        cat timeERC32.t ../../common/timetbl.t               >timeERC32_.t
146        @echo                                               >>timeERC32_.t
147        @echo "@tex"                                        >>timeERC32_.t
148        @echo "\\global\\advance \\smallskipamount by 4pt"  >>timeERC32_.t
149        @echo "@end tex"                                    >>timeERC32_.t
150        ${REPLACE} -p ERC32_TIMES timeERC32_.t
151        mv timeERC32_.t.fixed timeERC32_.t
152
153timeERC32.texi: timeERC32_.t Makefile
154        $(BMENU) -p "Timing Specification Terminology" \
155            -u "Top" \
156            -n "Command and Variable Index" timeERC32_.t
157        mv timeERC32_.texi timeERC32.texi
Note: See TracBrowser for help on using the repository browser.