0
|
1 |
#
|
6
|
2 |
# $Header$
|
0
|
3 |
#
|
|
4 |
# -------------- no need to change anything below ----------
|
|
5 |
|
7
|
6 |
TOP=../..
|
0
|
7 |
SUBDIRS=
|
|
8 |
|
6
|
9 |
#
|
|
10 |
# other definitions to use for things compiled here
|
|
11 |
#
|
|
12 |
LOCALDEFS=-DDEBUG
|
7
|
13 |
ST_LDFLAG=
|
0
|
14 |
|
6
|
15 |
#
|
7
|
16 |
# see COMMON/defines for what those XXX_LIB etc. are
|
6
|
17 |
#
|
7
|
18 |
# MINI_LIB = libbasic, libcomp
|
|
19 |
# FUNDAMENTAL_LIB = above PLUS libview, libwidg
|
|
20 |
# DEVELOP_LIB = above PLUS libtool
|
|
21 |
# STANDARD_LIB = above PLUS libwidg2, libdbase
|
|
22 |
# EXTENDED_LIB = above PLUS libwidg3
|
6
|
23 |
|
7
|
24 |
#
|
|
25 |
# this defines where the show starts
|
|
26 |
#
|
|
27 |
STARTUP_CLASS="Smalltalk"
|
0
|
28 |
STARTUP_SELECTOR="start"
|
|
29 |
|
8
|
30 |
# ----------------------- additional libraries ---------------
|
|
31 |
#
|
|
32 |
# additional (private libraries):
|
|
33 |
#
|
|
34 |
PRIVATEOBJ=
|
|
35 |
# and/or (if you use shared libs)
|
|
36 |
PRIVATE_SO=
|
|
37 |
# and the baseName (without .obj/.so)
|
|
38 |
PRIVATELIBS=
|
|
39 |
|
|
40 |
# for example, if you have a libprivate directory,
|
|
41 |
# where libprivate.obj is built,
|
|
42 |
# change above lines to:
|
|
43 |
# PRIVATEOBJ=$(TOP)/libprivate/libprivate.obj
|
|
44 |
# PRIVATE_SO=$(TOP)/libprivate/libprivate.so
|
|
45 |
# PRIVATELIBS=libprivate
|
|
46 |
|
|
47 |
# ---------------------- end additional stuff --------------------
|
|
48 |
|
|
49 |
|
6
|
50 |
#
|
|
51 |
# default target: create the TARGET (usually smalltalk),
|
|
52 |
# create subdirectories with source-links, bitmap-links and resource-links
|
|
53 |
#
|
8
|
54 |
all:: $(TARGET) resources styles newSource bitmaps binary include misc
|
6
|
55 |
|
|
56 |
#
|
|
57 |
# same, force recreation of link-directories
|
|
58 |
#
|
8
|
59 |
allNew: $(TARGET) newResources styles newSource newBitmaps binary include misc
|
0
|
60 |
|
6
|
61 |
#
|
|
62 |
# the standard smalltalk executable:
|
|
63 |
# basic classes + view & widgets + tools + persistency
|
|
64 |
# persistency needs DBLIB
|
|
65 |
#
|
7
|
66 |
smalltalk: $(TARGET)
|
|
67 |
|
|
68 |
smalltalk_static:
|
8
|
69 |
$(MAKE) linkIt LIBOBJS="$(STANDARD_LIB) $(PERSOBJ) $(PRIVATEOBJS)"
|
|
70 |
|
7
|
71 |
|
|
72 |
smalltalk_shared:
|
8
|
73 |
$(MAKE) linkIt LIBOBJS="$(STANDARD_LIB_SHARED) $(PERS_SO) $(PRIVATE_SO)"
|
|
74 |
|
7
|
75 |
|
|
76 |
linkIt: main.$(O) $(LIBOBJS) $(LIBRUN) $(EXTRA_LIBS) $(EXTRA_OBJ)
|
|
77 |
@-echo "Making classList ..."
|
|
78 |
$(MAKE) classList.$(O) LIBS="$(LIBOBJS)"
|
|
79 |
@-echo "done, linking ..."
|
6
|
80 |
$(LD) $(ST_LDFLAG) $(LDFLAGS) -o smalltalk$(EXE) \
|
|
81 |
$(CRT0) classList.$(O) main.$(O) \
|
7
|
82 |
$(OPTIONAL_SHARED_LIB_PATH) \
|
|
83 |
$(LIBOBJS) $(EXTRA_OBJ) \
|
|
84 |
$(LIBRUNDIR)/hidata.$(O) $(LIBRUNDIR)/$(LIBRUNTARGET) \
|
0
|
85 |
$(DBLIB) \
|
2
|
86 |
$(MATHLIB) $(EXTRA_LIBS) $(SYSLIBS) $(CRTN)
|
0
|
87 |
|
|
88 |
classList: classList.c
|
|
89 |
$(CC) $(_C) $(CFLAGS) classList.c
|
|
90 |
rm -f classList.c
|
|
91 |
|
|
92 |
#
|
|
93 |
# make list of classes for a standard smalltalk
|
2
|
94 |
# (includes basic, view & widgets and Persistency)
|
0
|
95 |
#
|
7
|
96 |
BASICLIST: $(CLASSLISTS)
|
|
97 |
-cat $(CLASSLISTS) > $(CLASSLIST)
|
6
|
98 |
|
7
|
99 |
# classList.stc: $(LIBS) $(OTHERLIBRARIES)
|
6
|
100 |
|
7
|
101 |
classList.stc:
|
|
102 |
@$(MAKE) GENERICLIST CLASSLIST=classList.stc \
|
|
103 |
EXTRA_CLASSES="$(EXTRA_CLASSES)" \
|
|
104 |
CLASSLIBRARIES=" \
|
|
105 |
$(LIBLIST) \
|
|
106 |
$(OTHERLIBRARIES) \
|
8
|
107 |
$(PRIVATELIBS) \
|
7
|
108 |
" \
|
|
109 |
CLASSLISTS=" \
|
|
110 |
$(EXTRACLASSLISTS) \
|
|
111 |
$(CLIENTCLASSLISTS) \
|
6
|
112 |
"
|
|
113 |
|
|
114 |
#
|
0
|
115 |
# make a new source subdirectory
|
6
|
116 |
# the source directory consists of sym-links to all .st files we find
|
0
|
117 |
#
|
|
118 |
newSource:
|
|
119 |
-rm -rf source
|
|
120 |
$(MAKE) sourceLink
|
|
121 |
|
|
122 |
Source: source
|
|
123 |
|
7
|
124 |
source:
|
0
|
125 |
$(MAKE) sourceLink
|
|
126 |
|
6
|
127 |
#
|
|
128 |
# the if's below avoid creation of files named '*.st' in case no files are
|
|
129 |
# to be linked ...
|
|
130 |
#
|
0
|
131 |
sourceLink:
|
|
132 |
-mkdir source
|
7
|
133 |
-if [ "`echo $(LIBBASICDIR)/*.st`" != '$(LIBBASICDIR)/*.st' ]; then \
|
|
134 |
(cd source; $(LNS) ../$(LIBBASICDIR)/*.st .); \
|
|
135 |
fi
|
|
136 |
-if [ "`echo $(LIBBASIC2DIR)/*.st`" != '$(LIBBASIC2DIR)/*.st' ]; then \
|
|
137 |
(cd source; $(LNS) ../$(LIBBASIC2DIR)/*.st .); \
|
6
|
138 |
fi
|
7
|
139 |
-if [ "`echo $(LIBCOMPDIR)/*.st`" != '$(LIBCOMPDIR)/*.st' ]; then \
|
|
140 |
(cd source; $(LNS) ../$(LIBCOMPDIR)/*.st .); \
|
6
|
141 |
fi
|
7
|
142 |
-if [ "`echo $(LIBVIEWDIR)/*.st`" != '$(LIBVIEWDIR)/*.st' ]; then \
|
|
143 |
(cd source; $(LNS) ../$(LIBVIEWDIR)/*.st .); \
|
6
|
144 |
fi
|
7
|
145 |
-if [ "`echo $(LIBWIDGDIR)/*.st`" != '$(LIBWIDGDIR)/*.st' ]; then \
|
|
146 |
(cd source; $(LNS) ../$(LIBWIDGDIR)/*.st .); \
|
|
147 |
fi
|
|
148 |
-if [ "`echo $(LIBWIDG2DIR)/*.st`" != '$(LIBWIDG2DIR)/*.st' ]; then \
|
|
149 |
(cd source; $(LNS) ../$(LIBWIDG2DIR)/*.st .); \
|
6
|
150 |
fi
|
7
|
151 |
-if [ "`echo $(LIBWIDG3DIR)/*.st`" != '$(LIBWIDG3DIR)/*.st' ]; then \
|
|
152 |
(cd source; $(LNS) ../$(LIBWIDG3DIR)/*.st .); \
|
6
|
153 |
fi
|
7
|
154 |
-if [ "`echo $(LIBTOOLDIR)/*.st`" != '$(LIBTOOLDIR)/*.st' ]; then \
|
|
155 |
(cd source; $(LNS) ../$(LIBTOOLDIR)/*.st .); \
|
6
|
156 |
fi
|
7
|
157 |
-if [ "`echo $(CLIENTDIR)/[A-Z]*/*.st`" != '$(CLIENTDIR)/[A-Z]*/*.st' ]; then \
|
|
158 |
(cd source; $(LNS) ../$(CLIENTDIR)/[A-Z]*/*.st .); \
|
|
159 |
fi
|
|
160 |
-if [ "`echo $(TOP)/fileIn/*.st`" != '$(TOP)/fileIn/*.st' ]; then \
|
|
161 |
(cd source; $(LNS) ../$(TOP)/fileIn/*.st .); \
|
6
|
162 |
fi
|
7
|
163 |
-if [ "`echo $(TOP)/libtomcat/*/*.st`" != '$(TOP)/libtomcat/*/*.st' ]; then \
|
|
164 |
(cd source; $(LNS) ../$(TOP)/libtomcat/*/*.st .); \
|
6
|
165 |
fi
|
7
|
166 |
-if [ "`echo $(TOP)/goodies/*.st`" != '$(TOP)/goodies/*.st' ]; then \
|
|
167 |
(cd source; $(LNS) ../$(TOP)/goodies/*.st .); \
|
6
|
168 |
fi
|
7
|
169 |
-if [ "`echo $(TOP)/goodies/*/*.st`" != '$(TOP)/goodies/*/*.st' ]; then \
|
|
170 |
(cd source; $(LNS) ../$(TOP)/goodies/*/*.st .); \
|
6
|
171 |
fi
|
7
|
172 |
-if [ "`echo $(TOP)/goodies/*/*/*.st`" != '$(TOP)/goodies/*/*/*.st' ]; then \
|
|
173 |
(cd source; $(LNS) ../$(TOP)/goodies/*/*/*.st .); \
|
6
|
174 |
fi
|
7
|
175 |
|
|
176 |
#
|
|
177 |
# make a new include subdirectory and link to abbreviation file
|
|
178 |
newInclude:
|
|
179 |
-rm -rf include
|
|
180 |
$(MAKE) include
|
|
181 |
|
|
182 |
include:
|
|
183 |
-mkdir include
|
|
184 |
-(cd include; $(LNS) ../$(INCLUDE)/abbrev.stc .)
|
8
|
185 |
rm -f include/RCS
|
|
186 |
|
|
187 |
misc: examples
|
|
188 |
|
|
189 |
examples:
|
|
190 |
-mkdir examples examples/3D
|
|
191 |
-(cd examples/3D; $(LNS) ../../$(TOP)/clients/GLdemos/*.data .)
|
0
|
192 |
|
2
|
193 |
#
|
|
194 |
# make a new binary subdirectory
|
|
195 |
# (this is only useful on systems that support dynamic loading;
|
|
196 |
# autoloaded classes will then be loaded from machine code files
|
|
197 |
# instead of source)
|
|
198 |
#
|
0
|
199 |
newBinary:
|
|
200 |
-rm -rf binary
|
|
201 |
$(MAKE) binaryLink
|
|
202 |
|
|
203 |
binary:
|
|
204 |
$(MAKE) binaryLink
|
|
205 |
|
|
206 |
binaryLink:
|
|
207 |
-mkdir binary
|
7
|
208 |
-if [ "`echo $(LIBTOOLDIR)/*$(BIN_O)`" != '$(LIBTOOLDIR)/*$(BIN_O)' ]; then \
|
|
209 |
(cd binary; $(LNS) ../$(LIBTOOLDIR)/*$(BIN_O) .); \
|
6
|
210 |
fi
|
7
|
211 |
-if [ "`echo $(LIBWIDG2DIR)/*$(BIN_O)`" != '$(LIBWIDG2DIR)/*$(BIN_O)' ]; then \
|
|
212 |
(cd binary; $(LNS) ../$(LIBWIDG2DIR)/*$(BIN_O) .); \
|
6
|
213 |
fi
|
7
|
214 |
-if [ "`echo $(LIBWIDG3DIR)/*$(BIN_O)`" != '$(LIBWIDG3DIR)/*$(BIN_O)' ]; then \
|
|
215 |
(cd binary; $(LNS) ../$(LIBWIDG3DIR)/*$(BIN_O) .); \
|
6
|
216 |
fi
|
7
|
217 |
-if [ "`echo $(LIBWIDGDIR)/*$(BIN_O)`" != '$(LIBWIDGDIR)/*$(BIN_O)' ]; then \
|
|
218 |
(cd binary; $(LNS) ../$(LIBWIDGDIR)/*$(BIN_O) .); \
|
6
|
219 |
fi
|
7
|
220 |
-if [ "`echo $(LIBVIEWDIR)/*$(BIN_O)`" != '$(LIBVIEWDIR)/*$(BIN_O)' ]; then \
|
|
221 |
(cd binary; $(LNS) ../$(LIBVIEWDIR)/*$(BIN_O) .); \
|
6
|
222 |
fi
|
7
|
223 |
-if [ "`echo $(LIBBASIC2DIR)/*$(BIN_O)`" != '$(LIBBASIC2DIR)/*$(BIN_O)' ]; then \
|
|
224 |
(cd binary; $(LNS) ../$(LIBBASIC2DIR)/*$(BIN_O) .); \
|
0
|
225 |
fi
|
7
|
226 |
-if [ "`echo $(CLIENTDIR)/[A-Z]*/*$(BIN_O)`" != '$(CLIENTDIR)/[A-Z]*/*$(BIN_O)' ]; then \
|
|
227 |
(cd binary; $(LNS) ../$(CLIENTDIR)/[A-Z]*/*$(BIN_O) .); \
|
|
228 |
fi
|
|
229 |
-if [ "`echo $(TOP)/goodies/*$(BIN_O)`" != '$(TOP)/goodies/*$(BIN_O)' ]; then \
|
|
230 |
(cd binary; $(LNS) ../$(TOP)/goodies/*$(BIN_O) .) ; \
|
0
|
231 |
fi
|
7
|
232 |
-if [ "`echo $(TOP)/goodies/*/*$(BIN_O)`" != '$(TOP)/goodies/*/*$(BIN_O)' ]; then \
|
|
233 |
(cd binary; $(LNS) ../$(TOP)/goodies/*/*$(BIN_O) .) ; \
|
0
|
234 |
fi
|
7
|
235 |
-if [ "`echo $(TOP)/goodies/*/*/*$(BIN_O)`" != '$(TOP)/goodies/*/*/*$(BIN_O)' ]; then \
|
|
236 |
(cd binary; $(LNS) ../$(TOP)/goodies/*/*/*$(BIN_O) .) ; \
|
0
|
237 |
fi
|
7
|
238 |
-if [ "`echo $(TOP)/fileIn/*$(BIN_O)`" != '$(TOP)/fileIn/*$(BIN_O)' ]; then \
|
|
239 |
(cd binary; $(LNS) ../$(TOP)/fileIn/*$(BIN_O) .) ; \
|
6
|
240 |
fi
|
0
|
241 |
|
|
242 |
#
|
|
243 |
# make a new bitmaps subdirectory
|
2
|
244 |
# (simply collect the contents of all bitmap directories)
|
0
|
245 |
#
|
|
246 |
newBitmaps:
|
|
247 |
-rm -rf bitmaps
|
|
248 |
$(MAKE) bitmaps
|
|
249 |
|
|
250 |
Bitmaps: bitmaps
|
|
251 |
|
|
252 |
bitmaps:
|
|
253 |
-mkdir bitmaps
|
6
|
254 |
-if [ "`echo $(LIBVIEWDIR)/bitmaps/*`" != '$(LIBVIEWDIR)/bitmaps/*' ]; then \
|
8
|
255 |
(cd bitmaps; $(LNS) ../$(LIBVIEWDIR)/bitmaps/* .); \
|
|
256 |
(cd bitmaps; rm -f RCS) \
|
6
|
257 |
fi
|
|
258 |
-if [ "`echo $(LIBWIDGDIR)/bitmaps/*`" != '$(LIBWIDGDIR)/bitmaps/*' ]; then \
|
8
|
259 |
(cd bitmaps; $(LNS) ../$(LIBWIDGDIR)/bitmaps/* .); \
|
|
260 |
(cd bitmaps; rm -f RCS) \
|
6
|
261 |
fi
|
|
262 |
-if [ "`echo $(LIBWIDG2DIR)/bitmaps/*`" != '$(LIBWIDG2DIR)/bitmaps/*' ]; then \
|
8
|
263 |
(cd bitmaps; $(LNS) ../$(LIBWIDG2DIR)/bitmaps/* .); \
|
|
264 |
(cd bitmaps; rm -f RCS) \
|
7
|
265 |
fi
|
|
266 |
-if [ "`echo $(LIBWIDG3DIR)/bitmaps/*`" != '$(LIBWIDG3DIR)/bitmaps/*' ]; then \
|
8
|
267 |
(cd bitmaps; $(LNS) ../$(LIBWIDG3DIR)/bitmaps/* .); \
|
|
268 |
(cd bitmaps; rm -f RCS) \
|
6
|
269 |
fi
|
|
270 |
-if [ "`echo $(LIBTOOLDIR)/bitmaps/*`" != '$(LIBTOOLDIR)/bitmaps/*' ]; then \
|
8
|
271 |
(cd bitmaps; $(LNS) ../$(LIBTOOLDIR)/bitmaps/* .); \
|
|
272 |
(cd bitmaps; rm -f RCS) \
|
6
|
273 |
fi
|
|
274 |
-if [ "`echo $(CLIENTDIR)/A*/bitmaps/*`" != '$(CLIENTDIR)/A*/bitmaps/*' ]; then \
|
8
|
275 |
(cd bitmaps; $(LNS) ../$(CLIENTDIR)/A*/bitmaps/* .); \
|
|
276 |
(cd bitmaps; rm -f RCS) \
|
6
|
277 |
fi
|
|
278 |
-if [ "`echo $(CLIENTDIR)/[B-C]*/bitmaps/*`" != '$(CLIENTDIR)/[B-C]*/bitmaps/*' ]; then \
|
8
|
279 |
(cd bitmaps; $(LNS) ../$(CLIENTDIR)/[B-C]*/bitmaps/* .); \
|
|
280 |
(cd bitmaps; rm -f RCS) \
|
6
|
281 |
fi
|
|
282 |
-if [ "`echo $(CLIENTDIR)/D[a-q]*/bitmaps/*`" != '$(CLIENTDIR)/D[a-q]*/bitmaps/*' ]; then \
|
8
|
283 |
(cd bitmaps; $(LNS) ../$(CLIENTDIR)/D[a-q]*/bitmaps/* .); \
|
|
284 |
(cd bitmaps; rm -f RCS) \
|
6
|
285 |
fi
|
|
286 |
-if [ "`echo $(CLIENTDIR)/D[r-z]*/bitmaps/*`" != '$(CLIENTDIR)/D[r-z]*/bitmaps/*' ]; then \
|
8
|
287 |
(cd bitmaps; $(LNS) ../$(CLIENTDIR)/D[r-z]*/bitmaps/* .); \
|
|
288 |
(cd bitmaps; rm -f RCS) \
|
6
|
289 |
fi
|
|
290 |
-if [ "`echo $(CLIENTDIR)/[E-Z]*/bitmaps/*`" != '$(CLIENTDIR)/[E-Z]*/bitmaps/*' ]; then \
|
8
|
291 |
(cd bitmaps; $(LNS) ../$(CLIENTDIR)/[E-Z]*/bitmaps/* .); \
|
|
292 |
(cd bitmaps; rm -f RCS) \
|
6
|
293 |
fi
|
7
|
294 |
-if [ "`echo $(TOP)/fileIn/bitmaps/*`" != '$(TOP)/fileIn/bitmaps/*' ]; then \
|
8
|
295 |
(cd bitmaps; $(LNS) ../$(TOP)/fileIn/bitmaps/* .); \
|
|
296 |
(cd bitmaps; rm -f RCS) \
|
6
|
297 |
fi
|
7
|
298 |
-if [ "`echo $(TOP)/fileIn/*/bitmaps/*`" != '$(TOP)/fileIn/*/bitmaps/*' ]; then \
|
8
|
299 |
(cd bitmaps; $(LNS) ../$(TOP)/fileIn/*/bitmaps/* .); \
|
|
300 |
(cd bitmaps; rm -f RCS) \
|
6
|
301 |
fi
|
7
|
302 |
-if [ "`echo $(TOP)/goodies/bitmaps/*`" != '$(TOP)/goodies/bitmaps/*' ]; then \
|
8
|
303 |
(cd bitmaps; $(LNS) ../$(TOP)/goodies/bitmaps/* .); \
|
|
304 |
(cd bitmaps; rm -f RCS) \
|
6
|
305 |
fi
|
0
|
306 |
|
2
|
307 |
#
|
|
308 |
# clean out intermediate chunk
|
|
309 |
#
|
0
|
310 |
cleanjunk::
|
|
311 |
-rm -f a.out changes SymbolTable ttt main.c
|
6
|
312 |
-rm -f classList.c fclassList.c nxclassList.c basicclassList.c
|
|
313 |
-rm -f betaclassList.c miniList.c tinyList.c
|
0
|
314 |
|
2
|
315 |
#
|
|
316 |
# clean out all that is not needed to run smalltalk
|
|
317 |
#
|
0
|
318 |
clean::
|
|
319 |
-rm -f a.out changes SymbolTable ttt main.c
|
|
320 |
-rm -f classList.stc classList.c
|
|
321 |
-rm -f fclassList.stc fclassList.c
|
|
322 |
-rm -f nxclassList.stc nxclassList.c
|
6
|
323 |
-rm -f basicclassList.stc basicclassList.c
|
|
324 |
-rm -f betaclassList.stc betaclassList.c
|
2
|
325 |
-rm -f miniList.stc miniList.c
|
|
326 |
-rm -f tinyList.stc tinyList.c
|
0
|
327 |
|
2
|
328 |
#
|
|
329 |
# clean out all that can be regenerated
|
|
330 |
#
|
0
|
331 |
clobber::
|
8
|
332 |
-rm -rf resources source bitmaps changes include examples
|
7
|
333 |
-rm -f smalltalk minitalk tinytalk st.img
|
0
|
334 |
-rm -f main.o
|
|
335 |
|
|
336 |
#
|
|
337 |
# make a new resources subdirectory
|
|
338 |
#
|
|
339 |
newResources:
|
|
340 |
rm -rf resources
|
7
|
341 |
$(MAKE) resources styles
|
0
|
342 |
|
|
343 |
resources:
|
|
344 |
-mkdir resources
|
8
|
345 |
-if [ "`echo $(LIBBASICDIR)/resources/*`" != '$(LIBBASICDIR)/resources/*' ]; then \
|
|
346 |
(cd resources; $(LNS) ../$(LIBBASICDIR)/resources/* .); \
|
|
347 |
rm -f resources/RCS; \
|
|
348 |
fi
|
|
349 |
-if [ "`echo $(LIBVIEWDIR)/resources/*`" != '$(LIBVIEWDIR)/resources/*' ]; then \
|
|
350 |
(cd resources; $(LNS) ../$(LIBVIEWDIR)/resources/* .); \
|
|
351 |
rm -f resources/RCS; \
|
|
352 |
fi
|
|
353 |
-if [ "`echo $(LIBWIDGDIR)/resources/*`" != '$(LIBWIDGDIR)/resources/*' ]; then \
|
|
354 |
(cd resources; $(LNS) ../$(LIBWIDGDIR)/resources/* .); \
|
|
355 |
rm -f resources/RCS; \
|
|
356 |
fi
|
|
357 |
-if [ "`echo $(LIBWIDG2DIR)/resources/*`" != '$(LIBWIDG2DIR)/resources/*' ]; then \
|
|
358 |
(cd resources; $(LNS) ../$(LIBWIDG2DIR)/resources/* .); \
|
|
359 |
rm -f resources/RCS; \
|
|
360 |
fi
|
|
361 |
-if [ "`echo $(LIBWIDG3DIR)/resources/*`" != '$(LIBWIDG3DIR)/resources/*' ]; then \
|
|
362 |
(cd resources; $(LNS) ../$(LIBWIDG3DIR)/resources/* .); \
|
|
363 |
rm -f resources/RCS; \
|
|
364 |
fi
|
|
365 |
-if [ "`echo $(LIBTOOLDIR)/resources/*`" != '$(LIBTOOLDIR)/resources/*' ]; then \
|
|
366 |
(cd resources; $(LNS) ../$(LIBTOOLDIR)/resources/* .); \
|
|
367 |
rm -f resources/RCS; \
|
|
368 |
fi
|
|
369 |
-if [ "`echo $(TOP)/fileIn/resources/*`" != '$(TOP)/fileIn/resources/*' ]; then \
|
|
370 |
(cd resources; $(LNS) ../$(TOP)/fileIn/resources/* .); \
|
|
371 |
rm -f resources/RCS; \
|
|
372 |
fi
|
|
373 |
-if [ "`echo $(CLIENTDIR)/*/resources/*`" != '$(CLIENTDIR)/*/resources/*' ]; then \
|
|
374 |
(cd resources; $(LNS) ../$(CLIENTDIR)/*/resources/* .); \
|
|
375 |
rm -f resources/RCS; \
|
|
376 |
fi
|
0
|
377 |
|
7
|
378 |
styles:
|
8
|
379 |
-(cd resources; $(LNS) ../$(LIBVIEWDIR)/styles/* .)
|
|
380 |
rm -f resources/RCS
|
0
|
381 |
|
|
382 |
$(TARGET): $(INCLUDE)/stc.h $(INCLUDE)/stcIntern.h
|
|
383 |
|
8
|
384 |
rcsdiff::
|
|
385 |
rcsdiff *.rc patches
|
|
386 |
|
6
|
387 |
#
|
|
388 |
# installation rules
|
|
389 |
#
|
0
|
390 |
|
6
|
391 |
install:: installThis
|
|
392 |
|
|
393 |
#
|
|
394 |
# install binary only
|
|
395 |
#
|
0
|
396 |
binInstall::
|
|
397 |
-mkdir $(DESTLIBDIR)
|
|
398 |
-mkdir $(DESTBINDIR)
|
|
399 |
$(INSTALL) smalltalk $(DESTBINDIR)
|
|
400 |
-strip $(DESTBINDIR)/smalltalk
|
|
401 |
|
6
|
402 |
#
|
|
403 |
# install all local stuff
|
0
|
404 |
#
|
|
405 |
# notice the [x-y]* patterns; some unixes (at&t) dont like too many arguments ...
|
|
406 |
#
|
|
407 |
installThis::
|
|
408 |
-mkdir $(DESTLIBDIR)
|
|
409 |
-mkdir $(DESTBINDIR)
|
|
410 |
$(INSTALL) smalltalk $(DESTBINDIR)
|
|
411 |
-strip $(DESTBINDIR)/smalltalk
|
|
412 |
-mkdir $(DESTLIBDIR)/source
|
|
413 |
-chmod a+rx $(DESTLIBDIR)/source
|
|
414 |
-cp source/[A-G]* $(DESTLIBDIR)/source
|
|
415 |
-cp source/[H-P]* $(DESTLIBDIR)/source
|
|
416 |
-cp source/[Q-Z]* $(DESTLIBDIR)/source
|
|
417 |
-chmod a+r $(DESTLIBDIR)/source/[A-G]*
|
|
418 |
-chmod a+r $(DESTLIBDIR)/source/[H-P]*
|
|
419 |
-chmod a+r $(DESTLIBDIR)/source/[Q-Z]*
|
|
420 |
-mkdir $(DESTLIBDIR)/bitmaps
|
|
421 |
-chmod a+rx $(DESTLIBDIR)/bitmaps
|
|
422 |
-cp bitmaps/[A-I]* $(DESTLIBDIR)/bitmaps
|
|
423 |
-cp bitmaps/[J-Z]* $(DESTLIBDIR)/bitmaps
|
|
424 |
-cp bitmaps/[a-i]* $(DESTLIBDIR)/bitmaps
|
|
425 |
-cp bitmaps/[j-z]* $(DESTLIBDIR)/bitmaps
|
|
426 |
-chmod a+r $(DESTLIBDIR)/bitmaps/[A-I]*
|
|
427 |
-chmod a+r $(DESTLIBDIR)/bitmaps/[J-Z]*
|
|
428 |
-chmod a+r $(DESTLIBDIR)/bitmaps/[a-i]*
|
|
429 |
-chmod a+r $(DESTLIBDIR)/bitmaps/[j-z]*
|
|
430 |
-chmod a+rx $(DESTLIBDIR)/resources
|
|
431 |
-mkdir $(DESTLIBDIR)/resources
|
|
432 |
-cp resources/* $(DESTLIBDIR)/resources
|
|
433 |
-chmod a+r $(DESTLIBDIR)/resources/*.rs
|
|
434 |
-cp *.rc *.stc patches $(DESTLIBDIR)
|
|
435 |
-chmod a+r $(DESTLIBDIR)/*.rc $(DESTLIBDIR)/*.stc $(DESTLIBDIR)/patches
|
|
436 |
|
|
437 |
qinstall:: installThis
|