author | Claus Gittinger <cg@exept.de> |
Mon, 29 Jul 1996 16:35:53 +0200 | |
changeset 132 | ec7eba4010f1 |
parent 130 | ad3285492ec5 |
child 134 | c2ead6241ba7 |
permissions | -rw-r--r-- |
0 | 1 |
# |
6 | 2 |
# $Header$ |
0 | 3 |
# |
4 |
# -------------- no need to change anything below ---------- |
|
5 |
||
7 | 6 |
TOP=../.. |
0 | 7 |
SUBDIRS= |
8 |
||
13 | 9 |
RCSSOURCES=*.rc patches Make.proto |
26 | 10 |
LINKSOURCES=*.rc patches Make.proto |
13 | 11 |
|
71 | 12 |
DELIVERBINARIES=smalltalk |
13 |
||
6 | 14 |
# |
15 |
# other definitions to use for things compiled here |
|
16 |
# |
|
17 |
LOCALDEFS=-DDEBUG |
|
26 | 18 |
# ST_LDFLAG= |
0 | 19 |
|
6 | 20 |
# |
7 | 21 |
# see COMMON/defines for what those XXX_LIB etc. are |
6 | 22 |
# |
11 | 23 |
# MINI_LIB = libbasic, libcomp $(PRIVATELIBS) |
7 | 24 |
# FUNDAMENTAL_LIB = above PLUS libview, libwidg |
25 |
# DEVELOP_LIB = above PLUS libtool |
|
26 |
# STANDARD_LIB = above PLUS libwidg2, libdbase |
|
27 |
# EXTENDED_LIB = above PLUS libwidg3 |
|
6 | 28 |
|
7 | 29 |
# |
30 |
# this defines where the show starts |
|
31 |
# |
|
32 |
STARTUP_CLASS="Smalltalk" |
|
0 | 33 |
STARTUP_SELECTOR="start" |
34 |
||
10 | 35 |
# |
36 |
# directories from which bitmap files in bitmap subdirectories are to be symlinked |
|
37 |
# to the bitmaps subdirectory |
|
38 |
# |
|
39 |
BITMAPDIRS= \ |
|
26 | 40 |
$(LIBBASIC2DIR) $(LIBVIEWDIR) $(LIBVIEW2DIR) $(LIBWIDGDIR) $(LIBWIDG2DIR) \ |
16 | 41 |
$(LIBWIDG3DIR) $(LIBTABLEDIR) $(LIBTOOLDIR) $(CLIENTDIR)/[A-Z]* \ |
42 |
$(OTHERLIBDIRS) \ |
|
26 | 43 |
$(TOP)/fileIn $(TOP)/fileIn/* $(TOP)/goodies \ |
10 | 44 |
$(TOP)/goodies/* $(TOP)/goodies/*/* |
45 |
||
51 | 46 |
MOREBITMAPDIRS= \ |
47 |
$(TOP)/goodies/bitmaps/* |
|
48 |
||
10 | 49 |
# |
50 |
# directories from which binary files are to be symlinked |
|
51 |
# to the binary subdirectory |
|
52 |
# |
|
53 |
BINARYDIRS= \ |
|
26 | 54 |
$(LIBBASICDIR) $(LIBBASIC2DIR) $(LIBBASIC3DIR) $(LIBVIEWDIR) $(LIBVIEW2DIR) $(LIBWIDGDIR) \ |
16 | 55 |
$(LIBWIDG2DIR) $(LIBWIDG3DIR) $(LIBTOOLDIR) $(CLIENTDIR)/[A-Z]* \ |
40 | 56 |
$(LIBCOMPDIR) $(LIBTABLEDIR) $(LIBCOMPATDIR) $(LIBPRODIR) $(OTHERLIBDIRS) \ |
16 | 57 |
$(TOP)/fileIn $(TOP)/libtomcat $(TOP)/goodies $(TOP)/goodies/* \ |
26 | 58 |
$(TOP)/goodies/*/* $(EXTRA_BINARYDIRS) |
10 | 59 |
|
60 |
# |
|
61 |
# directories from which source files are to be symlinked |
|
62 |
# to the source subdirectory |
|
63 |
# |
|
64 |
SOURCEDIRS= \ |
|
26 | 65 |
$(LIBBASICDIR) $(LIBBASIC2DIR) $(LIBBASIC3DIR) $(LIBCOMPDIR) $(LIBVIEWDIR) $(LIBVIEW2DIR) \ |
25 | 66 |
$(LIBWIDGDIR) $(LIBWIDG2DIR) $(LIBWIDG3DIR) $(LIBTOOLDIR) $(CLIENTDIR)/[A-Z]* \ |
40 | 67 |
$(LIBTABLEDIR) $(LIBUIDIR) $(LIBCOMPATDIR) $(LIBPRODIR) $(OTHERLIBDIRS) \ |
16 | 68 |
$(TOP)/fileIn $(TOP)/libtomcat $(TOP)/goodies $(TOP)/goodies/* \ |
69 |
$(TOP)/goodies/*/* |
|
10 | 70 |
|
11 | 71 |
# |
72 |
# including your own private lib in the make process and executable: |
|
73 |
# |
|
8 | 74 |
# for example, if you have a libprivate directory, |
11 | 75 |
# where libprivate.obj is built, and that one should be included, |
76 |
# add lines as below to your configuration/.../defines file: |
|
8 | 77 |
# PRIVATEOBJ=$(TOP)/libprivate/libprivate.obj |
78 |
# PRIVATE_SO=$(TOP)/libprivate/libprivate.so |
|
79 |
# PRIVATELIBS=libprivate |
|
80 |
||
81 |
# ---------------------- end additional stuff -------------------- |
|
82 |
||
83 |
||
6 | 84 |
# |
85 |
# default target: create the TARGET (usually smalltalk), |
|
86 |
# create subdirectories with source-links, bitmap-links and resource-links |
|
87 |
# |
|
24 | 88 |
all:: $(TARGET)$(TARGET_RULE_EXTENSION) symlinks |
6 | 89 |
|
90 |
# |
|
91 |
# same, force recreation of link-directories |
|
92 |
# |
|
25 | 93 |
allNew: $(TARGET)$(TARGET_RULE_EXTENSION) newResources styles newSource newBitmaps binary newInclude misc |
0 | 94 |
|
6 | 95 |
# |
11 | 96 |
# create symbolic links to sources, resources etc. |
97 |
# normally (on an end-user system) these should go into usr/local/lib/smalltalk |
|
98 |
# |
|
71 | 99 |
symlinks: resources styles newSource bitmaps bitmapLink binary binaryLink includeLink misc |
11 | 100 |
|
101 |
# |
|
6 | 102 |
# the standard smalltalk executable: |
103 |
# basic classes + view & widgets + tools + persistency |
|
104 |
# |
|
24 | 105 |
xsmalltalk: $(TARGET) |
106 |
||
107 |
smalltalk:: $(TARGET)$(TARGET_RULE_EXTENSION) |
|
7 | 108 |
|
82 | 109 |
# |
110 |
# demo for a graphical standAlone application (simply opening a FileBrowser) |
|
111 |
# |
|
112 |
demoApp1: |
|
93 | 113 |
-rm main.o modulList.* |
82 | 114 |
$(MAKE) main.o MAIN=$(LIBRUNDIR)/appmain.c STARTUP_CLASS='"FileBrowser"' STARTUP_SELECTOR='"open"' |
115 |
$(MAKE) linkTarget TARGET=demoApp1 |
|
93 | 116 |
-rm main.o modulList.* |
82 | 117 |
|
118 |
# |
|
119 |
# demo for a non-graphical standAlone application (simply computing 100 factorial) |
|
120 |
# |
|
121 |
demoApp2: DemoApp2.o |
|
93 | 122 |
-rm main.o modulList.* |
82 | 123 |
$(MAKE) main.o MAIN=$(LIBRUNDIR)/appmain.c STARTUP_CLASS='"DemoApp2"' STARTUP_SELECTOR='"start"' |
124 |
$(MAKE) linkTarget \ |
|
125 |
LIBLIST="$(MINI_LIST)" \ |
|
126 |
LIBOBJS="$(MINI_LIB)" \ |
|
127 |
TARGET=demoApp2 \ |
|
128 |
EXTRA_OBJ="DemoApp2.o" \ |
|
129 |
EXTRA_CLASSES="DemoApp2" |
|
94 | 130 |
-rm main.o modulList.* DemoApp2.st DemoApp2.o |
131 |
||
132 |
DemoApp2.o:: DemoApp2.st |
|
82 | 133 |
|
94 | 134 |
DemoApp2.st: |
135 |
-cp $(CLIENTDIR)/Demos/DemoApp2.st . |
|
130 | 136 |
|
7 | 137 |
smalltalk_static: |
26 | 138 |
@echo "making statically linked smalltalk ..." |
139 |
@$(MAKE) linkIt LIBOBJS="$(LIBOBJS)" EXTRA_OBJ="$(EXTRA_OBJ)" LIBLIST="$(LIBLIST)" |
|
8 | 140 |
|
24 | 141 |
smalltalk_shared: |
29 | 142 |
@echo "making shared library linked smalltalk ..." |
26 | 143 |
@$(MAKE) linkIt LIBOBJS="$(LIBOBJS)" EXTRA_OBJ="$(EXTRA_OBJ)" LIBLIST="$(LIBLIST)" |
8 | 144 |
|
130 | 145 |
AIX_SHARED_LIBOBJS= \ |
146 |
$(LIBBASICDIR)/libbasic.so \ |
|
147 |
$(LIBCOMPDIR)/libcomp.so \ |
|
148 |
$(LIBVIEWDIR)/libview.so \ |
|
149 |
$(LIBVIEW2DIR)/libview2.so \ |
|
150 |
$(LIBWIDGDIR)/libwidg.so \ |
|
151 |
$(LIBTOOLDIR)/libtool.so \ |
|
152 |
$(LIBBASIC2DIR)/libbasic2.so \ |
|
153 |
$(LIBBASIC3DIR)/libbasic3.so \ |
|
154 |
$(LIBWIDG2DIR)/libwidg2.so \ |
|
155 |
$(PERSDIR)/libdbase.so |
|
156 |
||
157 |
aix: |
|
158 |
@echo "making shared library linked smalltalk ..." |
|
159 |
@$(MAKE) linkIt LIBOBJS="$(AIX_SHARED_LIBOBJS)" EXTRA_OBJ="$(EXTRA_OBJ)" LIBLIST="$(LIBLIST)" LIBRUN=$(LIBRUNDIR)/librun.so |
|
160 |
||
132 | 161 |
aix_librun_only: |
162 |
@echo "making partial shared library linked smalltalk ..." |
|
163 |
@$(MAKE) linkIt LIBRUN=$(LIBRUNDIR)/librun.so |
|
164 |
||
101 | 165 |
forceStatic: |
166 |
(cd $(LIBBASICDIR) ; make libbasicInit.o) |
|
167 |
-rm $(LIBBASICDIR)/libbasic.o |
|
168 |
$(MAKE) linkIt LIBRUN="$(LIBRUNDIR)/*.o" LIBBASIC="$(LIBBASICDIR)/*.o" |
|
169 |
||
10 | 170 |
# |
171 |
# a "smaller" smalltalk (does not include development classes) |
|
172 |
# |
|
173 |
smalltalk_exec: |
|
24 | 174 |
-rm modulList.stc |
175 |
@$(MAKE) modulList.stc \ |
|
10 | 176 |
EXTRA_CLASSES="$(EXTRA_CLASSES) DebugView" \ |
26 | 177 |
EXTRA_OBJ="$(EXTRA_OBJ) $(LIBTOOLDIR)/DebugView$(BIN_O)" \ |
10 | 178 |
LIBLIST="$(FUNDAMENTAL_LIST)" |
15 | 179 |
@$(MAKE) smalltalk \ |
26 | 180 |
LIBLIST="$(FUNDAMENTAL_LIST)" \ |
181 |
EXTRA_CLASSES="$(EXTRA_CLASSES) DebugView" \ |
|
182 |
EXTRA_OBJ="$(EXTRA_OBJ) $(LIBTOOLDIR)/DebugView$(BIN_O)" \ |
|
183 |
LIBOBJS="$(FUNDAMENTAL_LIB)" |
|
184 |
if [ ! -f binary/DebugView$(BIN_O) ]; then \ |
|
185 |
(cd binary ; ln -s ../../../libtool/DebugView.so .); \ |
|
186 |
fi |
|
7 | 187 |
|
24 | 188 |
$(LIBTOOLDIR)/DebugView.so: |
189 |
(cd $(LIBTOOLDIR) ; $(MAKE) DebugView.so) |
|
0 | 190 |
|
25 | 191 |
$(LIBTOOLDIR)/DebugView.o: |
192 |
(cd $(LIBTOOLDIR) ; $(MAKE) DebugView.o) |
|
193 |
||
194 |
$(LIBVIEWDIR)/XWorkstat.o: |
|
195 |
(cd $(LIBVIEWDIR) ; $(MAKE) XWorkstat.o) |
|
196 |
||
197 |
$(LIBVIEWDIR)/XWorkstat.so: |
|
198 |
(cd $(LIBVIEWDIR) ; $(MAKE) XWorkstat.so) |
|
199 |
||
200 |
$(LIBVIEWDIR)/GLXWorkstat.o: |
|
201 |
(cd $(LIBVIEWDIR) ; $(MAKE) GLXWorkstat.o) |
|
202 |
||
203 |
$(LIBVIEWDIR)/GLXWorkstat.so: |
|
204 |
(cd $(LIBVIEWDIR) ; $(MAKE) GLXWorkstat.so) |
|
205 |
||
206 |
$(LIBCOMPDIR)/ObjFLoader.o: |
|
207 |
(cd $(LIBCOMPDIR) ; $(MAKE) ObjFLoader.o) |
|
208 |
||
209 |
$(LIBCOMPDIR)/ObjFLoader.so: |
|
210 |
(cd $(LIBCOMPDIR) ; $(MAKE) ObjFLoader.so) |
|
211 |
||
0 | 212 |
# |
213 |
# make list of classes for a standard smalltalk |
|
2 | 214 |
# (includes basic, view & widgets and Persistency) |
0 | 215 |
# |
7 | 216 |
BASICLIST: $(CLASSLISTS) |
217 |
-cat $(CLASSLISTS) > $(CLASSLIST) |
|
6 | 218 |
|
219 |
# |
|
27 | 220 |
# dont want these ttt-tempfile abbrevs to be included ... |
15 | 221 |
# |
16 | 222 |
abbrev.stc:: |
27 | 223 |
@-rm -f ttt*.* |
16 | 224 |
|
27 | 225 |
# |
226 |
# dont want local abbrevs to be included ... |
|
227 |
# |
|
15 | 228 |
collectAbbrev:: |
27 | 229 |
@-rm -f abbrev.stc |
112 | 230 |
-@if [ -d include ]; then \ |
130 | 231 |
if [ ! -f include/abbrev.stc ]; then \ |
232 |
(cd include; $(LNS) ../$(INCLUDE)/abbrev.stc . ); \ |
|
233 |
fi; \ |
|
112 | 234 |
fi |
235 |
||
236 |
collectAutoload:: |
|
237 |
@-rm -f autoloadList.stc |
|
238 |
-@if [ -d include ]; then \ |
|
130 | 239 |
if [ ! -f include/autoloadList.stc ]; then \ |
240 |
(cd include; $(LNS) ../$(INCLUDE)/autoloadList.stc . ); \ |
|
241 |
fi; \ |
|
112 | 242 |
fi |
15 | 243 |
|
82 | 244 |
classes:: |
245 |
-mkdir classes |
|
246 |
-for i in source/*.st; do \ |
|
130 | 247 |
stcomp -i stcomp.img $$i; \ |
82 | 248 |
done |
249 |
||
15 | 250 |
# |
0 | 251 |
# make a new source subdirectory |
6 | 252 |
# the source directory consists of sym-links to all .st files we find |
0 | 253 |
# |
254 |
newSource: |
|
255 |
-rm -rf source |
|
35 | 256 |
@-$(MAKE) sourceLink |
0 | 257 |
|
258 |
Source: source |
|
259 |
||
7 | 260 |
source: |
35 | 261 |
@-$(MAKE) sourceLink |
0 | 262 |
|
38 | 263 |
sourcelink:: sourceLink |
264 |
||
6 | 265 |
# |
7 | 266 |
# make a new include subdirectory and link to abbreviation file |
267 |
newInclude: |
|
268 |
-rm -rf include |
|
35 | 269 |
@-$(MAKE) includeLink |
7 | 270 |
|
38 | 271 |
includelink:: includeLink |
272 |
||
25 | 273 |
includeLink: |
35 | 274 |
@-rm -f ttt*.H |
38 | 275 |
@-if [ ! -d include ]; then \ |
276 |
mkdir include; \ |
|
35 | 277 |
fi |
38 | 278 |
@-if [ ! -r include/abbrev.stc ]; then \ |
279 |
if [ -f $(INCLUDE)/abbrev.stc ]; then \ |
|
280 |
echo "linking abbrev.stc ..."; \ |
|
281 |
(cd include; $(LNS) ../$(INCLUDE)/abbrev.stc .); \ |
|
282 |
else \ |
|
283 |
echo "oops - no $(INCLUDE)/abbrev.stc"; \ |
|
284 |
fi \ |
|
35 | 285 |
fi |
38 | 286 |
@-if [ ! -r include/liblist.stc ]; then \ |
287 |
if [ -f $(INCLUDE)/liblist.stc ]; then \ |
|
288 |
echo "linking liblist.stc ..."; \ |
|
289 |
(cd include; $(LNS) ../$(INCLUDE)/liblist.stc .); \ |
|
290 |
else \ |
|
291 |
echo "oops - no $(INCLUDE)/liblist.stc"; \ |
|
292 |
fi \ |
|
35 | 293 |
fi |
38 | 294 |
@-if [ ! -r include/symbols.stc ]; then \ |
295 |
if [ -f $(INCLUDE)/symbols.stc ]; then \ |
|
296 |
echo "linking symbols.stc ..."; \ |
|
35 | 297 |
(cd include; $(LNS) ../$(INCLUDE)/symbols.stc .); \ |
38 | 298 |
fi \ |
33 | 299 |
fi |
111 | 300 |
@-if [ ! -r include/autoloadList.stc ]; then \ |
301 |
if [ -f $(INCLUDE)/autoloadList.stc ]; then \ |
|
302 |
echo "linking autoloadList.stc ..."; \ |
|
303 |
(cd include; $(LNS) ../$(INCLUDE)/autoloadList.stc .); \ |
|
304 |
fi \ |
|
305 |
fi |
|
33 | 306 |
@-rm -f include/RCS include/CVS |
8 | 307 |
|
308 |
misc: examples |
|
309 |
||
310 |
examples: |
|
311 |
-mkdir examples examples/3D |
|
312 |
-(cd examples/3D; $(LNS) ../../$(TOP)/clients/GLdemos/*.data .) |
|
0 | 313 |
|
2 | 314 |
# |
315 |
# make a new binary subdirectory |
|
316 |
# (this is only useful on systems that support dynamic loading; |
|
317 |
# autoloaded classes will then be loaded from machine code files |
|
318 |
# instead of source) |
|
319 |
# |
|
0 | 320 |
newBinary: |
321 |
-rm -rf binary |
|
35 | 322 |
@-$(MAKE) binaryLink |
0 | 323 |
|
324 |
binary: |
|
35 | 325 |
@-$(MAKE) binaryLink |
0 | 326 |
|
38 | 327 |
binarylink:: binaryLink |
328 |
||
0 | 329 |
# |
330 |
# make a new bitmaps subdirectory |
|
2 | 331 |
# (simply collect the contents of all bitmap directories) |
0 | 332 |
# |
333 |
newBitmaps: |
|
334 |
-rm -rf bitmaps |
|
35 | 335 |
@-$(MAKE) bitmaps |
0 | 336 |
|
337 |
Bitmaps: bitmaps |
|
338 |
||
10 | 339 |
bitmaps: |
35 | 340 |
@-$(MAKE) bitmapLink |
0 | 341 |
|
38 | 342 |
bitmaplink:: bitmapLink |
343 |
||
2 | 344 |
# |
345 |
# clean out intermediate chunk |
|
346 |
# |
|
0 | 347 |
cleanjunk:: |
66
70bbef4d5737
Do not clean or clobber changes file.
Stefan Vogel <sv@exept.de>
parents:
51
diff
changeset
|
348 |
-rm -f a.out SymbolTable ttt main.c |
6 | 349 |
-rm -f classList.c fclassList.c nxclassList.c basicclassList.c |
350 |
-rm -f betaclassList.c miniList.c tinyList.c |
|
67
734370f8d967
clean rule has to remove modulList
Claus Gittinger <cg@exept.de>
parents:
66
diff
changeset
|
351 |
-rm -f modulList.stc modulList.c modulList.o |
16 | 352 |
-rm -f pers* pers2 data data2 data.boss tetris.scores |
0 | 353 |
|
26 | 354 |
cleanlinks: |
355 |
-rm -rf source bitmaps binaries resources examples include |
|
356 |
||
2 | 357 |
# |
358 |
# clean out all that is not needed to run smalltalk |
|
359 |
# |
|
0 | 360 |
clean:: |
66
70bbef4d5737
Do not clean or clobber changes file.
Stefan Vogel <sv@exept.de>
parents:
51
diff
changeset
|
361 |
-rm -f a.out SymbolTable ttt main.c |
67
734370f8d967
clean rule has to remove modulList
Claus Gittinger <cg@exept.de>
parents:
66
diff
changeset
|
362 |
-rm -f modulList.stc modulList.c modulList.o |
11 | 363 |
-rm -f classList.stc classList.c classList.o |
0 | 364 |
-rm -f fclassList.stc fclassList.c |
365 |
-rm -f nxclassList.stc nxclassList.c |
|
6 | 366 |
-rm -f basicclassList.stc basicclassList.c |
367 |
-rm -f betaclassList.stc betaclassList.c |
|
2 | 368 |
-rm -f miniList.stc miniList.c |
369 |
-rm -f tinyList.stc tinyList.c |
|
16 | 370 |
-rm -f pers pers2 data data2 data.boss tetris.scores |
124
65335ebbbc01
also remove modules in clobber
Claus Gittinger <cg@exept.de>
parents:
113
diff
changeset
|
371 |
-rm -f st.img st2.img st.img.sav errorOutput |
25 | 372 |
-rm -f .stx*.mem |
124
65335ebbbc01
also remove modules in clobber
Claus Gittinger <cg@exept.de>
parents:
113
diff
changeset
|
373 |
-rm -rf modules stxtmp* |
0 | 374 |
|
2 | 375 |
# |
376 |
# clean out all that can be regenerated |
|
377 |
# |
|
0 | 378 |
clobber:: |
67
734370f8d967
clean rule has to remove modulList
Claus Gittinger <cg@exept.de>
parents:
66
diff
changeset
|
379 |
-rm -f modulList.stc modulList.c modulList.o |
66
70bbef4d5737
Do not clean or clobber changes file.
Stefan Vogel <sv@exept.de>
parents:
51
diff
changeset
|
380 |
-rm -rf resources source binary bitmaps include examples |
7 | 381 |
-rm -f smalltalk minitalk tinytalk st.img |
0 | 382 |
-rm -f main.o |
124
65335ebbbc01
also remove modules in clobber
Claus Gittinger <cg@exept.de>
parents:
113
diff
changeset
|
383 |
-rm -rf modules |
0 | 384 |
|
385 |
# |
|
386 |
# make a new resources subdirectory |
|
387 |
# |
|
388 |
newResources: |
|
389 |
rm -rf resources |
|
32 | 390 |
@$(MAKE) resources styles |
0 | 391 |
|
392 |
resources: |
|
393 |
-mkdir resources |
|
32 | 394 |
@$(MAKE) resourceLink |
395 |
||
38 | 396 |
resourcelink: resourceLink |
397 |
||
16 | 398 |
resourceLink: |
32 | 399 |
@-if [ "`echo $(LIBBASICDIR)/resources/*`" != '$(LIBBASICDIR)/resources/*' ]; then \ |
38 | 400 |
echo "linking resource files from $(LIBBASICDIR) ..."; \ |
8 | 401 |
(cd resources; $(LNS) ../$(LIBBASICDIR)/resources/* .); \ |
32 | 402 |
rm -f resources/RCS resources/CVS; \ |
8 | 403 |
fi |
32 | 404 |
@-if [ "`echo $(LIBVIEWDIR)/resources/*`" != '$(LIBVIEWDIR)/resources/*' ]; then \ |
38 | 405 |
echo "linking resource files from $(LIBVIEWDIR) ..."; \ |
8 | 406 |
(cd resources; $(LNS) ../$(LIBVIEWDIR)/resources/* .); \ |
32 | 407 |
rm -f resources/RCS resources/CVS; \ |
8 | 408 |
fi |
32 | 409 |
@-if [ "`echo $(LIBVIEW2DIR)/resources/*`" != '$(LIBVIEW2DIR)/resources/*' ]; then \ |
38 | 410 |
echo "linking resource files from $(LIBVIEW2DIR) ..."; \ |
26 | 411 |
(cd resources; $(LNS) ../$(LIBVIEW2DIR)/resources/* .); \ |
32 | 412 |
rm -f resources/RCS resources/CVS; \ |
26 | 413 |
fi |
32 | 414 |
@-if [ "`echo $(LIBWIDGDIR)/resources/*`" != '$(LIBWIDGDIR)/resources/*' ]; then \ |
38 | 415 |
echo "linking resource files from $(LIBWIDGDIR) ..."; \ |
8 | 416 |
(cd resources; $(LNS) ../$(LIBWIDGDIR)/resources/* .); \ |
32 | 417 |
rm -f resources/RCS resources/CVS; \ |
8 | 418 |
fi |
32 | 419 |
@-if [ "`echo $(LIBWIDG2DIR)/resources/*`" != '$(LIBWIDG2DIR)/resources/*' ]; then \ |
38 | 420 |
echo "linking resource files from $(LIBWIDG2DIR) ..."; \ |
8 | 421 |
(cd resources; $(LNS) ../$(LIBWIDG2DIR)/resources/* .); \ |
32 | 422 |
rm -f resources/RCS resources/CVS; \ |
8 | 423 |
fi |
32 | 424 |
@-if [ "`echo $(LIBWIDG3DIR)/resources/*`" != '$(LIBWIDG3DIR)/resources/*' ]; then \ |
38 | 425 |
echo "linking resource files from $(LIBWIDG3DIR) ..."; \ |
8 | 426 |
(cd resources; $(LNS) ../$(LIBWIDG3DIR)/resources/* .); \ |
32 | 427 |
rm -f resources/RCS resources/CVS; \ |
8 | 428 |
fi |
32 | 429 |
@-if [ "`echo $(LIBTOOLDIR)/resources/*`" != '$(LIBTOOLDIR)/resources/*' ]; then \ |
38 | 430 |
echo "linking resource files from $(LIBTOOLDIR) ..."; \ |
8 | 431 |
(cd resources; $(LNS) ../$(LIBTOOLDIR)/resources/* .); \ |
32 | 432 |
rm -f resources/RCS resources/CVS; \ |
8 | 433 |
fi |
32 | 434 |
@-if [ "`echo $(LIBTABLEDIR)/resources/*`" != '$(LIBTABLEDIR)/resources/*' ]; then \ |
38 | 435 |
echo "linking resource files from $(LIBTABLEDIR) ..."; \ |
16 | 436 |
(cd resources; $(LNS) ../$(LIBTABLEDIR)/resources/* .); \ |
32 | 437 |
rm -f resources/RCS resources/CVS; \ |
16 | 438 |
fi |
32 | 439 |
@-if [ "`echo $(TOP)/fileIn/resources/*`" != '$(TOP)/fileIn/resources/*' ]; then \ |
38 | 440 |
echo "linking resource files from $(TOP)/fileIn ..."; \ |
8 | 441 |
(cd resources; $(LNS) ../$(TOP)/fileIn/resources/* .); \ |
32 | 442 |
rm -f resources/RCS resources/CVS; \ |
8 | 443 |
fi |
32 | 444 |
@-if [ "`echo $(CLIENTDIR)/*/resources/*`" != '$(CLIENTDIR)/*/resources/*' ]; then \ |
38 | 445 |
echo "linking resource files from $(CLIENTDIR) ..."; \ |
8 | 446 |
(cd resources; $(LNS) ../$(CLIENTDIR)/*/resources/* .); \ |
32 | 447 |
rm -f resources/RCS resources/CVS; \ |
8 | 448 |
fi |
0 | 449 |
|
26 | 450 |
styles: resources |
32 | 451 |
@-echo "linking style files from $(LIBVIEWDIR)/styles ..." |
35 | 452 |
@-rm -f resources/*.style resources/*.common |
32 | 453 |
@-(cd resources; $(LNS) ../$(LIBVIEWDIR)/styles/* .) |
454 |
@rm -f resources/RCS resources/CVS |
|
0 | 455 |
|
28 | 456 |
main.o:: $(INCLUDE)/stc.h $(INCLUDE)/stcIntern.h Makefile |
0 | 457 |
|
6 | 458 |
# |
459 |
# installation rules |
|
460 |
# |
|
0 | 461 |
|
6 | 462 |
install:: installThis |
463 |
||
464 |
# |
|
465 |
# install binary only |
|
466 |
# |
|
0 | 467 |
binInstall:: |
468 |
-mkdir $(DESTLIBDIR) |
|
469 |
-mkdir $(DESTBINDIR) |
|
470 |
$(INSTALL) smalltalk $(DESTBINDIR) |
|
471 |
-strip $(DESTBINDIR)/smalltalk |
|
472 |
||
6 | 473 |
# |
474 |
# install all local stuff |
|
0 | 475 |
# |
476 |
# notice the [x-y]* patterns; some unixes (at&t) dont like too many arguments ... |
|
477 |
# |
|
478 |
installThis:: |
|
479 |
-mkdir $(DESTLIBDIR) |
|
480 |
-mkdir $(DESTBINDIR) |
|
481 |
$(INSTALL) smalltalk $(DESTBINDIR) |
|
482 |
-strip $(DESTBINDIR)/smalltalk |
|
483 |
-mkdir $(DESTLIBDIR)/source |
|
484 |
-chmod a+rx $(DESTLIBDIR)/source |
|
485 |
-cp source/[A-G]* $(DESTLIBDIR)/source |
|
486 |
-cp source/[H-P]* $(DESTLIBDIR)/source |
|
487 |
-cp source/[Q-Z]* $(DESTLIBDIR)/source |
|
488 |
-chmod a+r $(DESTLIBDIR)/source/[A-G]* |
|
489 |
-chmod a+r $(DESTLIBDIR)/source/[H-P]* |
|
490 |
-chmod a+r $(DESTLIBDIR)/source/[Q-Z]* |
|
491 |
-mkdir $(DESTLIBDIR)/bitmaps |
|
492 |
-chmod a+rx $(DESTLIBDIR)/bitmaps |
|
493 |
-cp bitmaps/[A-I]* $(DESTLIBDIR)/bitmaps |
|
494 |
-cp bitmaps/[J-Z]* $(DESTLIBDIR)/bitmaps |
|
495 |
-cp bitmaps/[a-i]* $(DESTLIBDIR)/bitmaps |
|
496 |
-cp bitmaps/[j-z]* $(DESTLIBDIR)/bitmaps |
|
497 |
-chmod a+r $(DESTLIBDIR)/bitmaps/[A-I]* |
|
498 |
-chmod a+r $(DESTLIBDIR)/bitmaps/[J-Z]* |
|
499 |
-chmod a+r $(DESTLIBDIR)/bitmaps/[a-i]* |
|
500 |
-chmod a+r $(DESTLIBDIR)/bitmaps/[j-z]* |
|
501 |
-chmod a+rx $(DESTLIBDIR)/resources |
|
502 |
-mkdir $(DESTLIBDIR)/resources |
|
503 |
-cp resources/* $(DESTLIBDIR)/resources |
|
504 |
-chmod a+r $(DESTLIBDIR)/resources/*.rs |
|
505 |
-cp *.rc *.stc patches $(DESTLIBDIR) |
|
506 |
-chmod a+r $(DESTLIBDIR)/*.rc $(DESTLIBDIR)/*.stc $(DESTLIBDIR)/patches |
|
507 |
||
508 |
qinstall:: installThis |