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

Contents of /src/tools/hemcom.lisp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations)
Fri Oct 28 21:34:33 1994 UTC (19 years, 5 months ago) by ram
Branch: MAIN
Changes since 1.4: +2 -0 lines
Need to load PCL before CLX.
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 #+(and (not pcl) (not no-pcl-clx))
45 (load "target:pcl/pclload")
46 (load "target:clx/clx-library"))
47
48 (with-compiler-log-file
49 ("target:compile-hemlock.log"
50 :optimize
51 '(optimize (debug #-small 2 #+small .5)
52 (speed 2) (inhibit-warnings 2)
53 (safety #-small 1 #+small 0))
54 :optimize-interface
55 '(optimize-interface (debug .5))
56 :context-declarations
57 '(((:or :external (:match "$%SET-"))
58 (declare (optimize (safety 2))
59 (optimize-interface (debug 1))))
60 (:macro (declare (optimize (speed 0))))))
61
62 (comf "target:code/globals")
63 (comf "target:code/struct")
64 (comf "target:hemlock/charmacs")
65 (comf "target:hemlock/key-event" :load t)
66 (comf "target:hemlock/struct")
67 ;(comf "target:hemlock/struct-ed")
68 (comf "target:hemlock/rompsite")
69 ;;;
70 ;;; This is necessary since all the #k uses in Hemlock will expand into
71 ;;; EXT:MAKE-KEY-EVENT calls with keysyms and bits from the compiling Lisp, not
72 ;;; for the Lisp new code will run in. This destroys the compiling Lisp with
73 ;;; respect to running code with #k's compiled for it, but it causes the
74 ;;; compilation to see new keysyms, modifiers, and CLX modifier maps correctly
75 ;;; for the new system.
76 ;;;
77 (ext::re-initialize-key-events)
78 (comf "target:hemlock/keysym-defs")
79 (comf "target:hemlock/input")
80 (comf "target:hemlock/macros" :byte-compile t)
81 (comf "target:hemlock/line")
82 (comf "target:hemlock/ring")
83 (comf "target:hemlock/table")
84 (comf "target:hemlock/htext1")
85 (comf "target:hemlock/htext2")
86 (comf "target:hemlock/htext3")
87 (comf "target:hemlock/htext4")
88 (comf "target:hemlock/search1")
89 (comf "target:hemlock/search2")
90 (comf "target:hemlock/linimage")
91 (comf "target:hemlock/cursor")
92 (comf "target:hemlock/syntax")
93 (comf "target:hemlock/winimage")
94 #+clx (comf "target:hemlock/hunk-draw")
95 ;(comf "target:hemlock/bit-stream")
96 (comf "target:hemlock/termcap")
97 (comf "target:hemlock/display")
98 #+clx (comf "target:hemlock/bit-display")
99 (comf "target:hemlock/tty-disp-rt")
100 (with-compilation-unit (:optimize '(optimize (safety 2) (debug 3)))
101 (comf "target:hemlock/tty-display")) ; Buggy...
102 ;(comf "target:hemlock/tty-stream")
103 (comf "target:hemlock/pop-up-stream")
104 (comf "target:hemlock/screen")
105 #+clx (comf "target:hemlock/bit-screen")
106 (comf "target:hemlock/tty-screen")
107 (comf "target:hemlock/window")
108 (comf "target:hemlock/font")
109 (comf "target:hemlock/interp")
110 (comf "target:hemlock/vars")
111 (comf "target:hemlock/buffer")
112 (comf "target:hemlock/files")
113 (comf "target:hemlock/streams")
114 (comf "target:hemlock/echo" :byte-compile t)
115 (comf "target:hemlock/main" :byte-compile t)
116 (comf "target:hemlock/echocoms" :byte-compile t)
117 (comf "target:hemlock/defsyn")
118
119 (comf "target:hemlock/ts-buf")
120 (comf "target:hemlock/ts-stream")
121
122 (with-compilation-unit
123 (:optimize
124 '(optimize (safety 2) (speed 0))
125 :context-declarations
126 '(((:match "-COMMAND$")
127 (declare (optimize (safety #+small 0 #-small 1))
128 (optimize-interface (safety 2))))))
129
130 (comf "target:hemlock/command" :byte-compile t)
131 (comf "target:hemlock/morecoms" :byte-compile t)
132 (comf "target:hemlock/undo" :byte-compile t)
133 (comf "target:hemlock/killcoms" :byte-compile t)
134 (comf "target:hemlock/searchcoms" :byte-compile t)
135 (comf "target:hemlock/filecoms" :byte-compile t)
136 (comf "target:hemlock/indent" :byte-compile t)
137 (comf "target:hemlock/lispmode")
138 (comf "target:hemlock/comments" :byte-compile t)
139 (comf "target:hemlock/fill")
140 (comf "target:hemlock/text" :byte-compile t)
141 (comf "target:hemlock/doccoms" :byte-compile t)
142 (comf "target:hemlock/srccom" :byte-compile t)
143 (comf "target:hemlock/abbrev" :byte-compile t)
144 (comf "target:hemlock/group" :byte-compile t)
145 (comf "target:hemlock/overwrite" :byte-compile t)
146 (comf "target:hemlock/gosmacs" :byte-compile t)
147 (comf "target:hemlock/eval-server" :byte-compile t)
148 (comf "target:hemlock/dylan" :byte-compile t)
149 (comf "target:hemlock/lispbuf" :byte-compile t)
150 (comf "target:hemlock/lispeval" :byte-compile t)
151 (comf "target:hemlock/icom" :byte-compile t)
152 (comf "target:hemlock/hi-integrity" :byte-compile t)
153 (comf "target:hemlock/ed-integrity" :byte-compile t)
154 (comf "target:hemlock/scribe" :byte-compile t)
155 (comf "target:hemlock/pascal" :byte-compile t)
156 (comf "target:hemlock/edit-defs" :byte-compile t)
157 (comf "target:hemlock/auto-save" :byte-compile t)
158 (comf "target:hemlock/register" :byte-compile t)
159 (comf "target:hemlock/xcoms" :byte-compile t)
160 (comf "target:hemlock/unixcoms" :byte-compile t)
161 (comf "target:hemlock/mh")
162 (comf "target:hemlock/highlight" :byte-compile t)
163 (comf "target:hemlock/dired" :byte-compile t)
164 (comf "target:hemlock/diredcoms" :byte-compile t)
165 (comf "target:hemlock/bufed" :byte-compile t)
166 (comf "target:hemlock/lisp-lib" :byte-compile t)
167 (comf "target:hemlock/completion" :byte-compile t)
168 (comf "target:hemlock/shell" :byte-compile t)
169 (comf "target:hemlock/debug" :byte-compile t)
170 (comf "target:hemlock/netnews" :byte-compile t)
171 (comf "target:hemlock/rcs" :byte-compile t)
172
173 ) ;WITH-COMPILATION-UNIT for commands
174
175 ;; Stuff we want compiled native:
176
177 (comf "target:hemlock/spell-rt")
178 (comf "target:hemlock/spell-corr")
179 (comf "target:hemlock/spell-aug")
180 (comf "target:hemlock/spell-build")
181 (comf "target:hemlock/spellcoms")
182 (comf "target:hemlock/kbdmac")
183
184 (comf "target:hemlock/bindings")
185 (comf "target:hemlock/hacks")
186
187 ) ;WITH-COMPILER-LOG-FILE
188
189
190 (cat-if-anything-changed
191 "target:hemlock/hemlock-library"
192 "target:hemlock/rompsite"
193 "target:hemlock/struct"
194 ; "target:hemlock/struct-ed"
195 "target:hemlock/charmacs"
196 "target:hemlock/input"
197 "target:hemlock/line"
198 "target:hemlock/ring"
199 "target:hemlock/vars"
200 "target:hemlock/buffer"
201 "target:hemlock/macros"
202 "target:hemlock/interp"
203 "target:hemlock/syntax"
204 "target:hemlock/htext1"
205 "target:hemlock/htext2"
206 "target:hemlock/htext3"
207 "target:hemlock/htext4"
208 "target:hemlock/files"
209 "target:hemlock/search1"
210 "target:hemlock/search2"
211 "target:hemlock/table"
212 #+clx "target:hemlock/hunk-draw"
213 "target:hemlock/window"
214 "target:hemlock/screen"
215 "target:hemlock/winimage"
216 "target:hemlock/linimage"
217 "target:hemlock/display"
218 "target:hemlock/termcap"
219 #+clx "target:hemlock/bit-display"
220 "target:hemlock/tty-disp-rt"
221 "target:hemlock/tty-display"
222 "target:hemlock/pop-up-stream"
223 #+clx "target:hemlock/bit-screen"
224 "target:hemlock/tty-screen"
225 "target:hemlock/cursor"
226 "target:hemlock/font"
227 "target:hemlock/streams"
228 "target:hemlock/hacks"
229 "target:hemlock/main"
230 "target:hemlock/echo"
231 "target:hemlock/echocoms"
232 "target:hemlock/command"
233 "target:hemlock/indent"
234 "target:hemlock/comments"
235 "target:hemlock/morecoms"
236 "target:hemlock/undo"
237 "target:hemlock/killcoms"
238 "target:hemlock/searchcoms"
239 "target:hemlock/filecoms"
240 "target:hemlock/doccoms"
241 "target:hemlock/srccom"
242 "target:hemlock/group"
243 "target:hemlock/fill"
244 "target:hemlock/text"
245 "target:hemlock/lispmode"
246 "target:hemlock/ts-buf"
247 "target:hemlock/ts-stream"
248 "target:hemlock/eval-server"
249 "target:hemlock/lispbuf"
250 "target:hemlock/lispeval"
251 "target:hemlock/spell-rt"
252 "target:hemlock/spell-corr"
253 "target:hemlock/spell-aug"
254 "target:hemlock/spellcoms"
255 "target:hemlock/overwrite"
256 "target:hemlock/abbrev"
257 "target:hemlock/icom"
258 "target:hemlock/kbdmac"
259 "target:hemlock/defsyn"
260 "target:hemlock/scribe"
261 "target:hemlock/pascal"
262 "target:hemlock/dylan"
263 "target:hemlock/edit-defs"
264 "target:hemlock/auto-save"
265 "target:hemlock/register"
266 "target:hemlock/xcoms"
267 "target:hemlock/unixcoms"
268 "target:hemlock/mh"
269 "target:hemlock/highlight"
270 "target:hemlock/dired"
271 "target:hemlock/diredcoms"
272 "target:hemlock/bufed"
273 "target:hemlock/lisp-lib"
274 "target:hemlock/completion"
275 "target:hemlock/shell"
276 "target:hemlock/debug"
277 "target:hemlock/netnews"
278 "target:hemlock/rcs"
279 "target:hemlock/bindings")

  ViewVC Help
Powered by ViewVC 1.1.5