6 (sloop:sloop for v in
(get :maxima
:files
) when
(listp v
)
7 append
(unless (keywordp (car v
)) v
) else collect v
)
8 collect
(string-downcase (string v
))))
12 (setq *unixport-directory
* #"($PORTDIR)")
13 (setq *lsp-directory
* #"($LSPDIR)")
14 (setq *cmpnew-directory
* #"($CMPDIR)")
15 (setq *h-directory
* #"($HDIR)")
16 (setq *o-directory
* #"($ODIR)"))
17 (setq *kcl-home-directory
* #"../xkcl/")
18 (setq *unixport-directory
* #"../max/")
19 (setq *lsp-directory
* #"../xkcl/lsp/")
20 (setq *cmpnew-directory
* #"../xkcl/cmpnew/")
21 (setq *h-directory
* #"../xkcl/h/")
22 (setq *o-directory
* #"../xkcl/o/")
23 (setq *files-directory
* #"../max/")
25 (load "/usr/local/schelter/xkcl/unixport/defsystem.lsp")
27 (defkcl :system-name
"maxima" :makefile
"ymakefile")
29 ;(defun init-file ( library &optional (dir #"")
30 ; (stream *standard-output*))
32 ; " printf(\"Initializing ~A... \"); fflush(stdout);~%"
35 ; " fasl_data = read_fasl_data(\"~A\");~%"
37 ; (merge-pathnames (change-file-type library
40 ; (format stream " init_~A(NULL, 0, fasl_data);~%" library)
42 ; " printf(\"\\n\"); fflush(stdout);~%")
43 ; (format stream "~%"))
46 ;(defun write-init (&optional (stream t) )
47 ; (format stream "#include \"include.h\"
49 ;static object fasl_data;
53 ; enter_mark_origin(&fasl_data);
54 ; fasl_data = Cnil; ~2%
55 ; load(\"../lsp/export.lsp\");")
58 ; (sloop for v in *object-files* do (init-file v *o-directory* stream))
59 ; (format stream " load(\"~A\");~%"
60 ; (namestring (merge-pathnames "autoload.lsp" *lsp-directory*)))
61 ; (sloop for v in *lsp-object-files* do (init-file v *lsp-directory* stream))
62 ; (format stream "}~%~%")
64 ; (format stream "init_system()~%{~%")
65 ; (sloop for v in *all-libraries* do (init-file v *lsp-directory* stream))
67 ; "~% Vpackage->s.s_dbind = user_package;~%")
68 ; (format stream "}~%"))
72 ;(defun write-make (&optional (fi "ymakefile"))
74 ; (st fi :direction :output)
75 ; (format st "MOBJS =")
78 ; when (zerop v (mod i 3)) do (format st "\\~% ")
79 ; do (format st "($MDIR)/~A.o" (string-downcase (string v))))))
81 ;(defun write-sys (&optional (fi "sys_max"))
82 ; (format st "init_maxima(){~%"
84 ; do (setq v (string-downcase (string v)))
86 ; " fasl_data = read_fasl_data(\"~A\");~%"
88 ; (merge-pathnames (change-file-type st "o")
89 ; *Maxima-directory*)))
90 ; (format stream "printf(\"Initializing ~a... \"); fflush(stdout);~% printf(\"\n\"); fflush(stdout);" v)
91 ; (format stream " init_~A(NULL, 0, fasl_data);~%" library)