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