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