summaryrefslogtreecommitdiffstats
path: root/doc/porting/Makefile
blob: cbbcaa19b61701280e2b1c9d2bacb213dee9ab54 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#
#  COPYRIGHT (c) 1988-1998.
#  On-Line Applications Research Corporation (OAR).
#  All rights reserved.
#
#  $Id$
#

PROJECT=porting

include ../Make.config

all: html info ps pdf

dirs:
	$(make-dirs)

COMMON_FILES=../common/cpright.texi
FILES=preface.texi developtools.texi sourcecode.texi cpumodels.texi \
  cpuinit.texi interrupts.texi taskcontext.texi idlethread.texi \
  prioritybitmap.texi codetuning.texi miscellaneous.texi $(COMMON_FILES)

GENERATED_FILES=developtools.texi sourcecode.texi cpumodels.texi \
  cpuinit.texi interrupts.texi taskcontext.texi idlethread.texi \
  prioritybitmap.texi codetuning.texi miscellaneous.texi


INFOFILES=$(wildcard $(PROJECT) $(PROJECT)-*)

info: dirs $(PROJECT)
	cp $(PROJECT) $(PROJECT)-* $(INFO_INSTALL)

$(PROJECT): $(FILES)
	$(MAKEINFO) $(PROJECT).texi

dvi: $(PROJECT).dvi
ps: dirs $(PROJECT).ps
pdf: dirs $(PROJECT).pdf
	
$(PROJECT).pdf: $(FILES)
	$(TEXI2PDF) $(PROJECT).texi
	cp $(PROJECT).pdf $(PDF_INSTALL)
	
$(PROJECT).ps: $(PROJECT).dvi
	dvips -o $(PROJECT).ps $(PROJECT).dvi
	cp $(PROJECT).ps $(PS_INSTALL)

$(PROJECT).dvi: $(FILES)
	# $(TEXI2DVI) $(PROJECT).texi
	texi2dvi -V $(PROJECT).texi

html: dirs $(FILES)
	-mkdir -p $(WWW_INSTALL)/$(PROJECT)
	$(TEXI2WWW) $(TEXI2WWW_ARGS) -dir $(WWW_INSTALL)/$(PROJECT) \
	    $(PROJECT).texi

clean:
	rm -f *.o $(PROG) *.txt core *.html $(PROJECT).pdf
	rm -f *.dvi *.ps *.log *.aux *.cp *.fn *.ky *.pg *.toc *.tp *.vr $(BASE)
	rm -f $(PROJECT) $(PROJECT)-* _* $(GENERATED_FILES)

developtools.texi: developtools.t
	$(BMENU) -p "Preface" \
	    -u "Top" \
	    -n "Source Code Organization" ${*}.t

sourcecode.texi: sourcecode.t
	$(BMENU) -p "Development Tools" \
	    -u "Top" \
	    -n "CPU Model Variations" ${*}.t

cpumodels.texi: cpumodels.t
	$(BMENU) -p "Source Code Organization Introduction" \
	    -u "Top" \
	    -n "CPU Initialization" ${*}.t

cpuinit.texi: cpuinit.t
	$(BMENU) -p "CPU Model Variations Coding Issues" \
	    -u "Top" \
	    -n "Interrupts" ${*}.t

interrupts.texi: interrupts.t
	$(BMENU) -p "CPU Initialization Initializing the CPU" \
	    -u "Top" \
	    -n "Task Context Management" ${*}.t

taskcontext.texi: taskcontext.t
	$(BMENU) -p "Interrupts Pointer to _Thread_Dispatch Routine" \
	    -u "Top" \
	    -n "IDLE Thread" ${*}.t

idlethread.texi: idlethread.t
	$(BMENU) -p "Task Context Management Restoring a Floating Point Context" \
	    -u "Top" \
	    -n "Priority Bitmap Manipulation" ${*}.t

prioritybitmap.texi: prioritybitmap.t
	$(BMENU) -p "IDLE Thread Idle Thread Body" \
	    -u "Top" \
	    -n "Code Tuning Parameters" ${*}.t

codetuning.texi: codetuning.t
	$(BMENU) -p "Priority Bitmap Manipulation Bit Scan Support" \
	    -u "Top" \
	    -n "Miscellaneous" ${*}.t

miscellaneous.texi: miscellaneous.t
	$(BMENU) -p "Code Tuning Parameters Partition Element Alignment" \
	    -u "Top" \
	    -n "Command and Variable Index" ${*}.t