merged from ansiClib
[CommonLispStat.git] / Makefile
blob14ff1f30f2926e99913e32b6f30d6b9a97846ded
1 .SUFFIXES: .o .lsp
4 # Modify according to your system's needs for dynamic loading
6 CFLAGS = -O -G 0 -DINTPTR
8 # AKCL directory and executable
10 AKCLDIR=/WAR/usr/users/mikem/Software/Kcl/akcl
11 AKCL=${AKCLDIR}/unixport/saved_kcl ${AKCLDIR}/unixport/
13 # EXCL (Allegro) batch command
15 EXCL=/CHAGRIN/usr/users/luke/LS/KCL/ACLS/cl -batch
17 # Directory for Examples and Data -- MUST end in a / if not null
18 # For now, you have to install the Examples and Data directories by hand.
20 LSLIB=/usr/statlocal/lib/xlispstat/
22 # Directory for saved_kcls binary
24 KCLSDIR=/CHAGRIN/usr/users/luke/LS/KCL/KCLS/
26 kcl: Makefile saved_kcls
27 echo "#!/bin/csh -f" > kcls
28 echo "set KCLSDIR=${KCLSDIR}" >> kcls
29 echo "setenv LSLIB ${LSLIB}" >> kcls
30 echo '$${KCLSDIR}saved_kcls $${KCLSDIR}' >> kcls
31 chmod +x kcls
33 excl: Makefile lib/clib.a lib/exclglue.o
34 echo '(load "defsys") (ls::compile-stats)' | ${EXCL}
35 sed "s?./?${LSLIB}?" makesys.excl.dist > makesys.excl
36 cat makesys.excl | ${EXCL}
38 saved_kcls: lib/clib.a
39 echo '(load "defsys") (ls::compile-stats)' | ${AKCL}
40 cat makesys.kcl | ${AKCL}
42 lib/clib.a:
43 (cd lib; make CFLAGS="${CFLAGS}")
45 lib/exclglue.o:
46 (cd lib; make CFLAGS="${CFLAGS}" exclglue.o)
48 clean:
49 (cd lib; make clean)
50 rm -f *.o *.fasl kclcmplr
52 cleanall:
53 (cd lib; make cleanall)
54 rm -f *.o *.fasl kclcmplr saved_kcls kcls cls
57 # This lets you use 'make objects' to make .o files for changed .lsp
58 # files for kcl. If you use this approach, use 'cat makesys.kcl | kcl'
59 # to make the executable.
62 OBJECTS=bayes.o compound.o dists.o fastmap.o kclglue.o \
63 kclpatch.o ladata.o linalg.o lsbasics.o lsfloat.o lsmath.o \
64 lsobjects.o lstoplevel.o matrices.o maximize.o nonlin.o \
65 regression.o statistics.o
67 .lsp.o:
68 ./kclcmplr ./ $*.lsp $*.lsp S1000
70 kclcmplr: Makefile defsys.lsp lsmacros.lsp lspackages.lsp
71 rm -f cmpinclude.h
72 ln -s ${AKCLDIR}/h/cmpinclude.h cmpinclude.h
73 echo '(load "defsys.lsp") (load "kclpatch.lsp") (load "lsobjects.lsp") (load "lsbasics.lsp") (load "ladata.lsp") (si:save-system "kclcmplr")' | ${AKCL}
76 objects: kclcmplr ${OBJECTS}