/[cvsroot]/skandha4/skandha4/Makefile
ViewVC logotype

Contents of /skandha4/skandha4/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Wed Jul 21 21:23:01 1999 UTC (21 years, 3 months ago) by andrew
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +11 -8 lines
Corrected a couple of errors:
i)  space was missing after LVAL in xetc.h
ii) replaced strings.h with string.h in netseval.c

1 #
2 # "... and one Ring to rule them all."
3 #
4 # Master makefile to build xlisp-plus-selected-extension-modules.
5 #
6 # Constructed by doing "Smake" in this directory.
7 #
8 # Don't edit the following stuff, edit
9 # /usr/people/andrew/src/skandha4/skandha4/modules
10 # and rerun Smake.
11 #
12 # Include architecture-specific makefile defs (from sconfigure):
13 include /usr/people/andrew/src/skandha4/lib/Makefile.def
14 #
15 # Include application-specific makefile defs (from Smake):
16 include Makefile.def
17 #
18 # Magic to neutralize especially braindead 'make' programs:
19 SHELL = /bin/sh
20
21 all: xlisplib eval_libs xlisp xinfo # xhtml
22
23 donemake:
24 @if [ -x ${XLISPROOT}/bin/spacemusic ] ; then ${XLISPROOT}/bin/spacemusic ; fi
25
26 xlisp: xlisplib eval_libs donemake
27 cd ../pub/xcore/c; $(MAKE) -$(MAKEFLAGS) $(SL) xlisp
28 # Remember last app compiled:
29 echo "TESTXLISP= skandha4" >/usr/people/andrew/src/skandha4/lib/Makefile.lastapp
30
31 local_client: eval_libs
32 cd ../c; $(MAKE) -$(MAKEFLAGS) $(SL) local_client
33
34 net_client: eval_libs
35 cd ../c; $(MAKE) -$(MAKEFLAGS) $(SL) net_client
36
37 eval_libs:
38 cd ../c; $(MAKE) -$(MAKEFLAGS) $(SL) eval_libs
39
40
41 xlisplib:
42 cd ../pub/xhsy/c; $(MAKE) -$(MAKEFLAGS) $(SL) xlisplib
43 cd ../lab/xnet/c; $(MAKE) -$(MAKEFLAGS) $(SL) xlisplib
44 cd ../pub/xg/c; $(MAKE) -$(MAKEFLAGS) $(SL) xlisplib
45 cd ../pub/xg.3d/c; $(MAKE) -$(MAKEFLAGS) $(SL) xlisplib
46 cd ../pub/xg.3d.fileio/c; $(MAKE) -$(MAKEFLAGS) $(SL) xlisplib
47 cd ../pub/xg.3d.gui/c; $(MAKE) -$(MAKEFLAGS) $(SL) xlisplib
48 cd ../pub/xg.3d.imageops/c; $(MAKE) -$(MAKEFLAGS) $(SL) xlisplib
49 cd ../pub/xg.3d.model/c; $(MAKE) -$(MAKEFLAGS) $(SL) xlisplib
50 cd ../lab/xdoc/c; $(MAKE) -$(MAKEFLAGS) $(SL) xlisplib
51 cd ../lab/xsk3/c; $(MAKE) -$(MAKEFLAGS) $(SL) xlisplib
52 cd ../ded/xpvd/c; $(MAKE) -$(MAKEFLAGS) $(SL) xlisplib
53 cd ../ded/xbtp/c; $(MAKE) -$(MAKEFLAGS) $(SL) xlisplib
54 cd ../lab/xmri/c; $(MAKE) -$(MAKEFLAGS) $(SL) xlisplib
55 cd ../lab/xvol/c; $(MAKE) -$(MAKEFLAGS) $(SL) xlisplib
56 cd ../lab/xscanner/c; $(MAKE) -$(MAKEFLAGS) $(SL) xlisplib
57 cd ../lab/xsr/c; $(MAKE) -$(MAKEFLAGS) $(SL) xlisplib
58 cd ../pub/xgt/c; $(MAKE) -$(MAKEFLAGS) $(SL) xlisplib
59 cd ../pub/xetc/c; $(MAKE) -$(MAKEFLAGS) $(SL) xlisplib
60 cd ../pub/xcore/c; $(MAKE) -$(MAKEFLAGS) $(SL) xlisplib
61
62 clean:
63 -cd ../info; $(MAKE) -$(MAKEFLAGS) XLIB=${XLISPLIBDIR} $(SL) clean
64 -cd ../util; $(MAKE) -$(MAKEFLAGS) $(SL) clean
65 -cd ../c; $(MAKE) -$(MAKEFLAGS) $(SL) clean
66 -cd ../pub/xhsy/c; $(MAKE) -$(MAKEFLAGS) $(SL) clean
67 -cd ../pub/xhsy/check; $(MAKE) -$(MAKEFLAGS) $(SL) clean
68 -cd ../lab/xnet/c; $(MAKE) -$(MAKEFLAGS) $(SL) clean
69 -cd ../lab/xnet/check; $(MAKE) -$(MAKEFLAGS) $(SL) clean
70 -cd ../pub/xg/c; $(MAKE) -$(MAKEFLAGS) $(SL) clean
71 -cd ../pub/xg/check; $(MAKE) -$(MAKEFLAGS) $(SL) clean
72 -cd ../pub/xg.3d/c; $(MAKE) -$(MAKEFLAGS) $(SL) clean
73 -cd ../pub/xg.3d/check; $(MAKE) -$(MAKEFLAGS) $(SL) clean
74 -cd ../pub/xg.3d.fileio/c; $(MAKE) -$(MAKEFLAGS) $(SL) clean
75 -cd ../pub/xg.3d.fileio/check; $(MAKE) -$(MAKEFLAGS) $(SL) clean
76 -cd ../pub/xg.3d.gui/c; $(MAKE) -$(MAKEFLAGS) $(SL) clean
77 -cd ../pub/xg.3d.gui/check; $(MAKE) -$(MAKEFLAGS) $(SL) clean
78 -cd ../pub/xg.3d.imageops/c; $(MAKE) -$(MAKEFLAGS) $(SL) clean
79 -cd ../pub/xg.3d.imageops/check; $(MAKE) -$(MAKEFLAGS) $(SL) clean
80 -cd ../pub/xg.3d.model/c; $(MAKE) -$(MAKEFLAGS) $(SL) clean
81 -cd ../pub/xg.3d.model/check; $(MAKE) -$(MAKEFLAGS) $(SL) clean
82 -cd ../lab/xdoc/c; $(MAKE) -$(MAKEFLAGS) $(SL) clean
83 -cd ../lab/xdoc/check; $(MAKE) -$(MAKEFLAGS) $(SL) clean
84 -cd ../lab/xsk3/c; $(MAKE) -$(MAKEFLAGS) $(SL) clean
85 -cd ../lab/xsk3/check; $(MAKE) -$(MAKEFLAGS) $(SL) clean
86 -cd ../ded/xpvd/c; $(MAKE) -$(MAKEFLAGS) $(SL) clean
87 -cd ../ded/xpvd/check; $(MAKE) -$(MAKEFLAGS) $(SL) clean
88 -cd ../ded/xbtp/c; $(MAKE) -$(MAKEFLAGS) $(SL) clean
89 -cd ../ded/xbtp/check; $(MAKE) -$(MAKEFLAGS) $(SL) clean
90 -cd ../lab/xmri/c; $(MAKE) -$(MAKEFLAGS) $(SL) clean
91 -cd ../lab/xmri/check; $(MAKE) -$(MAKEFLAGS) $(SL) clean
92 -cd ../lab/xvol/c; $(MAKE) -$(MAKEFLAGS) $(SL) clean
93 -cd ../lab/xvol/check; $(MAKE) -$(MAKEFLAGS) $(SL) clean
94 -cd ../lab/xscanner/c; $(MAKE) -$(MAKEFLAGS) $(SL) clean
95 -cd ../lab/xscanner/check; $(MAKE) -$(MAKEFLAGS) $(SL) clean
96 -cd ../lab/xsr/c; $(MAKE) -$(MAKEFLAGS) $(SL) clean
97 -cd ../lab/xsr/check; $(MAKE) -$(MAKEFLAGS) $(SL) clean
98 -cd ../pub/xgt/c; $(MAKE) -$(MAKEFLAGS) $(SL) clean
99 -cd ../pub/xgt/check; $(MAKE) -$(MAKEFLAGS) $(SL) clean
100 -cd ../pub/xetc/c; $(MAKE) -$(MAKEFLAGS) $(SL) clean
101 -cd ../pub/xetc/check; $(MAKE) -$(MAKEFLAGS) $(SL) clean
102 -cd ../pub/xcore/c; $(MAKE) -$(MAKEFLAGS) $(SL) clean
103 -cd ../pub/xcore/check; $(MAKE) -$(MAKEFLAGS) $(SL) clean
104
105 check:
106 -cd ../c; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) check
107 -cd ../pub/xhsy/check; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) check
108 -cd ../lab/xnet/check; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) check
109 -cd ../pub/xg/check; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) check
110 -cd ../pub/xg.3d/check; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) check
111 -cd ../pub/xg.3d.fileio/check; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) check
112 -cd ../pub/xg.3d.gui/check; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) check
113 -cd ../pub/xg.3d.imageops/check; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) check
114 -cd ../pub/xg.3d.model/check; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) check
115 -cd ../lab/xdoc/check; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) check
116 -cd ../lab/xsk3/check; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) check
117 -cd ../ded/xpvd/check; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) check
118 -cd ../ded/xbtp/check; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) check
119 -cd ../lab/xmri/check; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) check
120 -cd ../lab/xvol/check; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) check
121 -cd ../lab/xscanner/check; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) check
122 -cd ../lab/xsr/check; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) check
123 -cd ../pub/xgt/check; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) check
124 -cd ../pub/xetc/check; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) check
125 -cd ../pub/xcore/check; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) check
126 @if [ -x ${XLISPROOT}/bin/gong ] ; then ${XLISPROOT}/bin/gong ; fi
127
128 depend:
129 echo "This probably won't work if you're not using gcc"
130 -cd ../c; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) depend
131 -cd ../pub/xhsy/c; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) depend
132 -cd ../lab/xnet/c; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) depend
133 -cd ../pub/xg/c; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) depend
134 -cd ../pub/xg.3d/c; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) depend
135 -cd ../pub/xg.3d.fileio/c; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) depend
136 -cd ../pub/xg.3d.gui/c; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) depend
137 -cd ../pub/xg.3d.imageops/c; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) depend
138 -cd ../pub/xg.3d.model/c; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) depend
139 -cd ../lab/xdoc/c; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) depend
140 -cd ../lab/xsk3/c; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) depend
141 -cd ../ded/xpvd/c; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) depend
142 -cd ../ded/xbtp/c; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) depend
143 -cd ../lab/xmri/c; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) depend
144 -cd ../lab/xvol/c; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) depend
145 -cd ../lab/xscanner/c; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) depend
146 -cd ../lab/xsr/c; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) depend
147 -cd ../pub/xgt/c; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) depend
148 -cd ../pub/xetc/c; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) depend
149 -cd ../pub/xcore/c; $(MAKE) -$(MAKEFLAGS) $(CHECKDEFS) $(SL) depend
150 -grep '\*\*\*\*' check.log
151
152 xinfo:
153 cd info; $(MAKE) -$(MAKEFLAGS) XLIB=${XLISPLIBDIR} $(SL) info
154 cd ../info; $(MAKE) -$(MAKEFLAGS) XLIB=${XLISPLIBDIR} $(SL) info
155
156 xhtml:
157 cd info; $(MAKE) -$(MAKEFLAGS) XLIB=${XLISPLIBDIR} $(SL) html
158 cd ../info; $(MAKE) -$(MAKEFLAGS) XLIB=${XLISPLIBDIR} $(SL) html
159
160 install:
161 #
162 # Give permission to overwrite the application:
163 -rm -f ${INSTALLBINPATH}/skandha4
164 #
165 # Create shellscript that runs production app.
166 sed -e "s/APP_LOCATION=LOCAL/APP_LOCATION=INSTALLED/g" /usr/people/andrew/src/skandha4/bin/skandha4 >${INSTALLBINPATH}/skandha4
167 #
168 # (old version -- 1999May14, kph)
169 ## Can't use 'here' files in makefiles, so use echo:
170 # echo "#!/bin/sh" >${INSTALLBINPATH}/skandha4
171 # echo "# Don't edit this file!" >>${INSTALLBINPATH}/skandha4
172 # echo "# Edit bin/Smake" >>${INSTALLBINPATH}/skandha4
173 # echo "# /usr/people/andrew/src/skandha4/skandha4/modules" >>${INSTALLBINPATH}/skandha4
174 # echo "# and/or systems/my_system," >>${INSTALLBINPATH}/skandha4
175 # echo "# then do 'Smake'" >>${INSTALLBINPATH}/skandha4
176 # echo "# or 'sconfigure'." >>${INSTALLBINPATH}/skandha4
177 # echo "XLPATH=$(XLPATH_INSTALLED)" >>${INSTALLBINPATH}/skandha4
178 # echo "export XLPATH" >>${INSTALLBINPATH}/skandha4
179 ## Leaving a dollar-atsign at end of final line is ridiculously hard!
180 ## Dollarsign is \044 octal, sooo:
181 # echo "exec ${INSTALLBINPATH}/skandha4.bin #@" | tr "#" "\044" >>${INSTALLBINPATH}/skandha4
182 #
183 # Make above executable:
184 chmod 555 ${INSTALLBINPATH}/skandha4
185 #
186 # Install binary image proper:
187 -cp $(XLISPEXE) ${INSTALLBINPATH}/skandha4.bin
188 #
189 # Do any application-specific installation work:
190 ./install_aux $(XLISPROOT) $(XLPATH_INSTALLED)
191 #
192 # Install application docs:
193 cd ../info; $(MAKE) -$(MAKEFLAGS) XLIB=${XLISPLIBDIR} $(SL) install
194 cd info; $(MAKE) -$(MAKEFLAGS) XLIB=${XLISPLIBDIR} $(SL) install
195 #
196 # Install all application-specific lisp code:
197 -cp $(XLISPROOT)/lsp/*.lsp $(XLPATH_INSTALLED)
198 -cp $(SLAPPPATH)/lsp/*.lsp $(XLPATH_INSTALLED)
199 -cp $(XLISPROOT)/pub/xhsy/lsp/*.lsp $(XLPATH_INSTALLED)
200 -cp $(XLISPROOT)/lab/xnet/lsp/*.lsp $(XLPATH_INSTALLED)
201 -cp $(XLISPROOT)/pub/xg/lsp/*.lsp $(XLPATH_INSTALLED)
202 -cp $(XLISPROOT)/pub/xg.3d/lsp/*.lsp $(XLPATH_INSTALLED)
203 -cp $(XLISPROOT)/pub/xg.3d.fileio/lsp/*.lsp $(XLPATH_INSTALLED)
204 -cp $(XLISPROOT)/pub/xg.3d.gui/lsp/*.lsp $(XLPATH_INSTALLED)
205 -cp $(XLISPROOT)/pub/xg.3d.imageops/lsp/*.lsp $(XLPATH_INSTALLED)
206 -cp $(XLISPROOT)/pub/xg.3d.model/lsp/*.lsp $(XLPATH_INSTALLED)
207 -cp $(XLISPROOT)/lab/xdoc/lsp/*.lsp $(XLPATH_INSTALLED)
208 -cp $(XLISPROOT)/lab/xsk3/lsp/*.lsp $(XLPATH_INSTALLED)
209 -cp $(XLISPROOT)/ded/xpvd/lsp/*.lsp $(XLPATH_INSTALLED)
210 -cp $(XLISPROOT)/ded/xbtp/lsp/*.lsp $(XLPATH_INSTALLED)
211 -cp $(XLISPROOT)/lab/xmri/lsp/*.lsp $(XLPATH_INSTALLED)
212 -cp $(XLISPROOT)/lab/xvol/lsp/*.lsp $(XLPATH_INSTALLED)
213 -cp $(XLISPROOT)/lab/xscanner/lsp/*.lsp $(XLPATH_INSTALLED)
214 -cp $(XLISPROOT)/lab/xsr/lsp/*.lsp $(XLPATH_INSTALLED)
215 -cp $(XLISPROOT)/pub/xgt/lsp/*.lsp $(XLPATH_INSTALLED)
216 -cp $(XLISPROOT)/pub/xetc/lsp/*.lsp $(XLPATH_INSTALLED)
217 -cp $(XLISPROOT)/pub/xcore/lsp/*.lsp $(XLPATH_INSTALLED)
218
219 tidy: clean
220 -find .. -name '*~' -exec rm {} \; -print
221 -find .. -name 'core' -exec rm {} \; -print
222 -find .. -name '*.log' -exec rm {} \; -print
223 -find .. -name '*.html' -exec rm {} \; -print
224
225 clobber:
226 echo "Use 'make distclean' instead of 'make clobber'".
227
228 distclean: tidy
229 -rm -f $(XCORELIB) $(XLISPLIB) $(XLISPEXE) $(NETLIB) ${XLISPROOT}/lib/libseval.a
230
231
232 # Create a distribution tarfile (we normally 'make distclean' first):
233 tar:
234 cd ../..; $(TAR) $(TAR_CVF) skandha4.tar slisp/bin slisp/Changelog.txt slisp/doc slisp/include slisp/info slisp/lsp slisp/Makefile.x slisp/README slisp/systems slisp/util slisp/sl slisp/c slisp/SLISPCOPYING slisp/xhsy slisp/xnet slisp/xg slisp/xg.3d slisp/xg.3d.fileio slisp/xg.3d.gui slisp/xg.3d.imageops slisp/xg.3d.model slisp/xdoc slisp/xsk3 slisp/xpvd slisp/xbtp slisp/xmri slisp/xvol slisp/xscanner slisp/xsr slisp/xgt slisp/xetc slisp/xcore
235

brinkley@uw.edu
ViewVC Help
Powered by ViewVC 1.1.26