/[cmucl]/src/tools/hemcom.lisp
ViewVC logotype

Contents of /src/tools/hemcom.lisp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.31 - (show annotations) (vendor branch)
Wed Aug 25 02:35:28 1993 UTC (20 years, 7 months ago) by ram
Changes since 1.1.1.30: +8 -7 lines
Fixed in-package usage.
1 ;;;
2 ;;; This file compiles all of Hemlock.
3 ;;;
4
5 #+bootstrap
6 (progn
7 (when (ext:get-command-line-switch "slave")
8 (error "Cannot compile Hemlock in a slave due to its clobbering needed
9 typescript routines by renaming the package."))
10
11 ;;; Blast the old packages in case they are around. We do this solely to
12 ;;; prove Hemlock can compile cleanly without its having to exist already.
13 ;;;
14 (copy-packages '("ED" "HI")))
15
16
17 ;;; Stuff to set up the packages Hemlock uses.
18 ;;;
19 (unless (find-package "HEMLOCK-INTERNALS")
20 (make-package "HEMLOCK-INTERNALS"
21 :nicknames '("HI")
22 :use '("LISP" "EXTENSIONS" "SYSTEM")))
23
24 (unless (find-package "HEMLOCK")
25 (make-package "HEMLOCK"
26 :nicknames '("ED")
27 :use '("LISP" "HEMLOCK-INTERNALS" "EXTENSIONS" "SYSTEM")))
28 ;;;
29 (export 'c::compile-from-stream (find-package "C"))
30
31
32 (in-package "USER")
33
34 (defvar *byte-compile* #+small t #-small :maybe)
35
36 (pushnew :command-bits *features*)
37 (pushnew :buffered-lines *features*)
38
39 #-clx
40 ;;; If CLX has not been loaded, but has been compiled, then load it.
41 ;;;
42 (when (probe-file (make-pathname :defaults "target:clx/clx-library"
43 :type (c:backend-fasl-file-type c:*backend*)))
44 (load "target:clx/clx-library"))
45
46 (with-compiler-log-file
47 ("target:compile-hemlock.log"
48 :optimize
49 '(optimize (debug #-small 2 #+small .5)
50 (speed 2) (inhibit-warnings 2)
51 (safety #-small 1 #+small 0))
52 :optimize-interface
53 '(optimize-interface (debug .5))
54 :context-declarations
55 '(((:or :external (:match "$%SET-"))
56 (declare (optimize (safety 2))
57 (optimize-interface (debug 1))))
58 (:macro (declare (optimize (speed 0))))))
59
60 (comf "target:code/globals")
61 (comf "target:code/struct")
62 (comf "target:hemlock/charmacs")
63 (comf "target:hemlock/key-event" :load t)
64 (comf "target:hemlock/struct")
65 ;(comf "target:hemlock/struct-ed")
66 (comf "target:hemlock/rompsite")
67 ;;;
68 ;;; This is necessary since all the #k uses in Hemlock will expand into
69 ;;; EXT:MAKE-KEY-EVENT calls with keysyms and bits from the compiling Lisp, not
70 ;;; for the Lisp new code will run in. This destroys the compiling Lisp with
71 ;;; respect to running code with #k's compiled for it, but it causes the
72 ;;; compilation to see new keysyms, modifiers, and CLX modifier maps correctly
73 ;;; for the new system.
74 ;;;
75 (ext::re-initialize-key-events)
76 (comf "target:hemlock/keysym-defs")
77 (comf "target:hemlock/input")
78 (comf "target:hemlock/macros" :byte-compile t)
79 (comf "target:hemlock/line")
80 (comf "target:hemlock/ring")
81 (comf "target:hemlock/table")
82 (comf "target:hemlock/htext1")
83 (comf "target:hemlock/htext2")
84 (comf "target:hemlock/htext3")
85 (comf "target:hemlock/htext4")
86 (comf "target:hemlock/search1")
87 (comf "target:hemlock/search2")
88 (comf "target:hemlock/linimage")
89 (comf "target:hemlock/cursor")
90 (comf "target:hemlock/syntax")
91 (comf "target:hemlock/winimage")
92 #+clx (comf "target:hemlock/hunk-draw")
93 ;(comf "target:hemlock/bit-stream")
94 (comf "target:hemlock/termcap")
95 (comf "target:hemlock/display")
96 #+clx (comf "target:hemlock/bit-display")
97 (comf "target:hemlock/tty-disp-rt")
98 (with-compilation-unit (:optimize '(optimize (safety 2) (debug 3)))
99 (comf "target:hemlock/tty-display")) ; Buggy...
100 ;(comf "target:hemlock/tty-stream")
101 (comf "target:hemlock/pop-up-stream")
102 (comf "target:hemlock/screen")
103 #+clx (comf "target:hemlock/bit-screen")
104 (comf "target:hemlock/tty-screen")
105 (comf "target:hemlock/window")
106 (comf "target:hemlock/font")
107 (comf "target:hemlock/interp")
108 (comf "target:hemlock/vars")
109 (comf "target:hemlock/buffer")
110 (comf "target:hemlock/files")
111 (comf "target:hemlock/streams")
112 (comf "target:hemlock/echo" :byte-compile t)
113 (comf "target:hemlock/main" :byte-compile t)
114 (comf "target:hemlock/echocoms" :byte-compile t)
115 (comf "target:hemlock/defsyn")
116
117 (comf "target:hemlock/ts-buf")
118 (comf "target:hemlock/ts-stream")
119
120 (with-compilation-unit
121 (:optimize
122 '(optimize (safety 2) (speed 0))
123 :context-declarations
124 '(((:match "-COMMAND$")
125 (declare (optimize (safety #+small 0 #-small 1))
126 (optimize-interface (safety 2))))))
127
128 (comf "target:hemlock/command" :byte-compile t)
129 (comf "target:hemlock/morecoms" :byte-compile t)
130 (comf "target:hemlock/undo" :byte-compile t)
131 (comf "target:hemlock/killcoms" :byte-compile t)
132 (comf "target:hemlock/searchcoms" :byte-compile t)
133 (comf "target:hemlock/filecoms" :byte-compile t)
134 (comf "target:hemlock/indent" :byte-compile t)
135 (comf "target:hemlock/lispmode")
136 (comf "target:hemlock/comments" :byte-compile t)
137 (comf "target:hemlock/fill")
138 (comf "target:hemlock/text" :byte-compile t)
139 (comf "target:hemlock/doccoms" :byte-compile t)
140 (comf "target:hemlock/srccom" :byte-compile t)
141 (comf "target:hemlock/abbrev" :byte-compile t)
142 (comf "target:hemlock/group" :byte-compile t)
143 (comf "target:hemlock/overwrite" :byte-compile t)
144 (comf "target:hemlock/gosmacs" :byte-compile t)
145 (comf "target:hemlock/eval-server" :byte-compile t)
146 (comf "target:hemlock/dylan" :byte-compile t)
147 (comf "target:hemlock/lispbuf" :byte-compile t)
148 (comf "target:hemlock/lispeval" :byte-compile t)
149 (comf "target:hemlock/icom" :byte-compile t)
150 (comf "target:hemlock/hi-integrity" :byte-compile t)
151 (comf "target:hemlock/ed-integrity" :byte-compile t)
152 (comf "target:hemlock/scribe" :byte-compile t)
153 (comf "target:hemlock/pascal" :byte-compile t)
154 (comf "target:hemlock/edit-defs" :byte-compile t)
155 (comf "target:hemlock/auto-save" :byte-compile t)
156 (comf "target:hemlock/register" :byte-compile t)
157 (comf "target:hemlock/xcoms" :byte-compile t)
158 (comf "target:hemlock/unixcoms" :byte-compile t)
159 (comf "target:hemlock/mh")
160 (comf "target:hemlock/highlight" :byte-compile t)
161 (comf "target:hemlock/dired" :byte-compile t)
162 (comf "target:hemlock/diredcoms" :byte-compile t)
163 (comf "target:hemlock/bufed" :byte-compile t)
164 (comf "target:hemlock/lisp-lib" :byte-compile t)
165 (comf "target:hemlock/completion" :byte-compile t)
166 (comf "target:hemlock/shell" :byte-compile t)
167 (comf "target:hemlock/debug" :byte-compile t)
168 (comf "target:hemlock/netnews" :byte-compile t)
169 (comf "target:hemlock/rcs" :byte-compile t)
170
171 ) ;WITH-COMPILATION-UNIT for commands
172
173 ;; Stuff we want compiled native:
174
175 (comf "target:hemlock/spell-rt")
176 (comf "target:hemlock/spell-corr")
177 (comf "target:hemlock/spell-aug")
178 (comf "target:hemlock/spell-build")
179 (comf "target:hemlock/spellcoms")
180 (comf "target:hemlock/kbdmac")
181
182 (comf "target:hemlock/bindings")
183 (comf "target:hemlock/hacks")
184
185 ) ;WITH-COMPILER-LOG-FILE
186
187
188 (cat-if-anything-changed
189 "target:hemlock/hemlock-library"
190 "target:hemlock/rompsite"
191 "target:hemlock/struct"
192 ; "target:hemlock/struct-ed"
193 "target:hemlock/charmacs"
194 "target:hemlock/input"
195 "target:hemlock/line"
196 "target:hemlock/ring"
197 "target:hemlock/vars"
198 "target:hemlock/buffer"
199 "target:hemlock/macros"
200 "target:hemlock/interp"
201 "target:hemlock/syntax"
202 "target:hemlock/htext1"
203 "target:hemlock/htext2"
204 "target:hemlock/htext3"
205 "target:hemlock/htext4"
206 "target:hemlock/files"
207 "target:hemlock/search1"
208 "target:hemlock/search2"
209 "target:hemlock/table"
210 #+clx "target:hemlock/hunk-draw"
211 "target:hemlock/window"
212 "target:hemlock/screen"
213 "target:hemlock/winimage"
214 "target:hemlock/linimage"
215 "target:hemlock/display"
216 "target:hemlock/termcap"
217 #+clx "target:hemlock/bit-display"
218 "target:hemlock/tty-disp-rt"
219 "target:hemlock/tty-display"
220 "target:hemlock/pop-up-stream"
221 #+clx "target:hemlock/bit-screen"
222 "target:hemlock/tty-screen"
223 "target:hemlock/cursor"
224 "target:hemlock/font"
225 "target:hemlock/streams"
226 "target:hemlock/hacks"
227 "target:hemlock/main"
228 "target:hemlock/echo"
229 "target:hemlock/echocoms"
230 "target:hemlock/command"
231 "target:hemlock/indent"
232 "target:hemlock/comments"
233 "target:hemlock/morecoms"
234 "target:hemlock/undo"
235 "target:hemlock/killcoms"
236 "target:hemlock/searchcoms"
237 "target:hemlock/filecoms"
238 "target:hemlock/doccoms"
239 "target:hemlock/srccom"
240 "target:hemlock/group"
241 "target:hemlock/fill"
242 "target:hemlock/text"
243 "target:hemlock/lispmode"
244 "target:hemlock/ts-buf"
245 "target:hemlock/ts-stream"
246 "target:hemlock/eval-server"
247 "target:hemlock/dylan"
248 "target:hemlock/lispbuf"
249 "target:hemlock/lispeval"
250 "target:hemlock/spell-rt"
251 "target:hemlock/spell-corr"
252 "target:hemlock/spell-aug"
253 "target:hemlock/spellcoms"
254 "target:hemlock/overwrite"
255 "target:hemlock/abbrev"
256 "target:hemlock/icom"
257 "target:hemlock/kbdmac"
258 "target:hemlock/defsyn"
259 "target:hemlock/scribe"
260 "target:hemlock/pascal"
261 "target:hemlock/edit-defs"
262 "target:hemlock/auto-save"
263 "target:hemlock/register"
264 "target:hemlock/xcoms"
265 "target:hemlock/unixcoms"
266 "target:hemlock/mh"
267 "target:hemlock/highlight"
268 "target:hemlock/dired"
269 "target:hemlock/diredcoms"
270 "target:hemlock/bufed"
271 "target:hemlock/lisp-lib"
272 "target:hemlock/completion"
273 "target:hemlock/shell"
274 "target:hemlock/debug"
275 "target:hemlock/netnews"
276 "target:hemlock/rcs"
277 "target:hemlock/bindings")

  ViewVC Help
Powered by ViewVC 1.1.5