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