author | Claus Gittinger <cg@exept.de> |
Fri, 10 May 1996 13:18:28 +0200 | |
changeset 113 | 960e2c43b18d |
parent 112 | 9c20e82bba52 |
child 124 | 65335ebbbc01 |
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 . |
|
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 |
|
101 | 145 |
forceStatic: |
146 |
(cd $(LIBBASICDIR) ; make libbasicInit.o) |
|
147 |
-rm $(LIBBASICDIR)/libbasic.o |
|
148 |
$(MAKE) linkIt LIBRUN="$(LIBRUNDIR)/*.o" LIBBASIC="$(LIBBASICDIR)/*.o" |
|
149 |
||
10 | 150 |
# |
151 |
# a "smaller" smalltalk (does not include development classes) |
|
152 |
# |
|
153 |
smalltalk_exec: |
|
24 | 154 |
-rm modulList.stc |
155 |
@$(MAKE) modulList.stc \ |
|
10 | 156 |
EXTRA_CLASSES="$(EXTRA_CLASSES) DebugView" \ |
26 | 157 |
EXTRA_OBJ="$(EXTRA_OBJ) $(LIBTOOLDIR)/DebugView$(BIN_O)" \ |
10 | 158 |
LIBLIST="$(FUNDAMENTAL_LIST)" |
15 | 159 |
@$(MAKE) smalltalk \ |
26 | 160 |
LIBLIST="$(FUNDAMENTAL_LIST)" \ |
161 |
EXTRA_CLASSES="$(EXTRA_CLASSES) DebugView" \ |
|
162 |
EXTRA_OBJ="$(EXTRA_OBJ) $(LIBTOOLDIR)/DebugView$(BIN_O)" \ |
|
163 |
LIBOBJS="$(FUNDAMENTAL_LIB)" |
|
164 |
if [ ! -f binary/DebugView$(BIN_O) ]; then \ |
|
165 |
(cd binary ; ln -s ../../../libtool/DebugView.so .); \ |
|
166 |
fi |
|
7 | 167 |
|
24 | 168 |
$(LIBTOOLDIR)/DebugView.so: |
169 |
(cd $(LIBTOOLDIR) ; $(MAKE) DebugView.so) |
|
0 | 170 |
|
25 | 171 |
$(LIBTOOLDIR)/DebugView.o: |
172 |
(cd $(LIBTOOLDIR) ; $(MAKE) DebugView.o) |
|
173 |
||
174 |
$(LIBVIEWDIR)/XWorkstat.o: |
|
175 |
(cd $(LIBVIEWDIR) ; $(MAKE) XWorkstat.o) |
|
176 |
||
177 |
$(LIBVIEWDIR)/XWorkstat.so: |
|
178 |
(cd $(LIBVIEWDIR) ; $(MAKE) XWorkstat.so) |
|
179 |
||
180 |
$(LIBVIEWDIR)/GLXWorkstat.o: |
|
181 |
(cd $(LIBVIEWDIR) ; $(MAKE) GLXWorkstat.o) |
|
182 |
||
183 |
$(LIBVIEWDIR)/GLXWorkstat.so: |
|
184 |
(cd $(LIBVIEWDIR) ; $(MAKE) GLXWorkstat.so) |
|
185 |
||
186 |
$(LIBCOMPDIR)/ObjFLoader.o: |
|
187 |
(cd $(LIBCOMPDIR) ; $(MAKE) ObjFLoader.o) |
|
188 |
||
189 |
$(LIBCOMPDIR)/ObjFLoader.so: |
|
190 |
(cd $(LIBCOMPDIR) ; $(MAKE) ObjFLoader.so) |
|
191 |
||
0 | 192 |
# |
193 |
# make list of classes for a standard smalltalk |
|
2 | 194 |
# (includes basic, view & widgets and Persistency) |
0 | 195 |
# |
7 | 196 |
BASICLIST: $(CLASSLISTS) |
197 |
-cat $(CLASSLISTS) > $(CLASSLIST) |
|
6 | 198 |
|
199 |
# |
|
27 | 200 |
# dont want these ttt-tempfile abbrevs to be included ... |
15 | 201 |
# |
16 | 202 |
abbrev.stc:: |
27 | 203 |
@-rm -f ttt*.* |
16 | 204 |
|
27 | 205 |
# |
206 |
# dont want local abbrevs to be included ... |
|
207 |
# |
|
15 | 208 |
collectAbbrev:: |
27 | 209 |
@-rm -f abbrev.stc |
112 | 210 |
-@if [ -d include ]; then \ |
211 |
if [ ! -f include/abbrev.stc ]; then \ |
|
113 | 212 |
(cd include; $(LNS) ../$(INCLUDE)/abbrev.stc . ); \ |
112 | 213 |
fi; \ |
214 |
fi |
|
215 |
||
216 |
collectAutoload:: |
|
217 |
@-rm -f autoloadList.stc |
|
218 |
-@if [ -d include ]; then \ |
|
219 |
if [ ! -f include/autoloadList.stc ]; then \ |
|
113 | 220 |
(cd include; $(LNS) ../$(INCLUDE)/autoloadList.stc . ); \ |
112 | 221 |
fi; \ |
222 |
fi |
|
15 | 223 |
|
82 | 224 |
classes:: |
225 |
-mkdir classes |
|
226 |
-for i in source/*.st; do \ |
|
227 |
stcomp -i stcomp.img $$i; \ |
|
228 |
done |
|
229 |
||
15 | 230 |
# |
0 | 231 |
# make a new source subdirectory |
6 | 232 |
# the source directory consists of sym-links to all .st files we find |
0 | 233 |
# |
234 |
newSource: |
|
235 |
-rm -rf source |
|
35 | 236 |
@-$(MAKE) sourceLink |
0 | 237 |
|
238 |
Source: source |
|
239 |
||
7 | 240 |
source: |
35 | 241 |
@-$(MAKE) sourceLink |
0 | 242 |
|
38 | 243 |
sourcelink:: sourceLink |
244 |
||
6 | 245 |
# |
7 | 246 |
# make a new include subdirectory and link to abbreviation file |
247 |
newInclude: |
|
248 |
-rm -rf include |
|
35 | 249 |
@-$(MAKE) includeLink |
7 | 250 |
|
38 | 251 |
includelink:: includeLink |
252 |
||
25 | 253 |
includeLink: |
35 | 254 |
@-rm -f ttt*.H |
38 | 255 |
@-if [ ! -d include ]; then \ |
256 |
mkdir include; \ |
|
35 | 257 |
fi |
38 | 258 |
@-if [ ! -r include/abbrev.stc ]; then \ |
259 |
if [ -f $(INCLUDE)/abbrev.stc ]; then \ |
|
260 |
echo "linking abbrev.stc ..."; \ |
|
261 |
(cd include; $(LNS) ../$(INCLUDE)/abbrev.stc .); \ |
|
262 |
else \ |
|
263 |
echo "oops - no $(INCLUDE)/abbrev.stc"; \ |
|
264 |
fi \ |
|
35 | 265 |
fi |
38 | 266 |
@-if [ ! -r include/liblist.stc ]; then \ |
267 |
if [ -f $(INCLUDE)/liblist.stc ]; then \ |
|
268 |
echo "linking liblist.stc ..."; \ |
|
269 |
(cd include; $(LNS) ../$(INCLUDE)/liblist.stc .); \ |
|
270 |
else \ |
|
271 |
echo "oops - no $(INCLUDE)/liblist.stc"; \ |
|
272 |
fi \ |
|
35 | 273 |
fi |
38 | 274 |
@-if [ ! -r include/symbols.stc ]; then \ |
275 |
if [ -f $(INCLUDE)/symbols.stc ]; then \ |
|
276 |
echo "linking symbols.stc ..."; \ |
|
35 | 277 |
(cd include; $(LNS) ../$(INCLUDE)/symbols.stc .); \ |
38 | 278 |
fi \ |
33 | 279 |
fi |
111 | 280 |
@-if [ ! -r include/autoloadList.stc ]; then \ |
281 |
if [ -f $(INCLUDE)/autoloadList.stc ]; then \ |
|
282 |
echo "linking autoloadList.stc ..."; \ |
|
283 |
(cd include; $(LNS) ../$(INCLUDE)/autoloadList.stc .); \ |
|
284 |
fi \ |
|
285 |
fi |
|
33 | 286 |
@-rm -f include/RCS include/CVS |
8 | 287 |
|
288 |
misc: examples |
|
289 |
||
290 |
examples: |
|
291 |
-mkdir examples examples/3D |
|
292 |
-(cd examples/3D; $(LNS) ../../$(TOP)/clients/GLdemos/*.data .) |
|
0 | 293 |
|
2 | 294 |
# |
295 |
# make a new binary subdirectory |
|
296 |
# (this is only useful on systems that support dynamic loading; |
|
297 |
# autoloaded classes will then be loaded from machine code files |
|
298 |
# instead of source) |
|
299 |
# |
|
0 | 300 |
newBinary: |
301 |
-rm -rf binary |
|
35 | 302 |
@-$(MAKE) binaryLink |
0 | 303 |
|
304 |
binary: |
|
35 | 305 |
@-$(MAKE) binaryLink |
0 | 306 |
|
38 | 307 |
binarylink:: binaryLink |
308 |
||
0 | 309 |
# |
310 |
# make a new bitmaps subdirectory |
|
2 | 311 |
# (simply collect the contents of all bitmap directories) |
0 | 312 |
# |
313 |
newBitmaps: |
|
314 |
-rm -rf bitmaps |
|
35 | 315 |
@-$(MAKE) bitmaps |
0 | 316 |
|
317 |
Bitmaps: bitmaps |
|
318 |
||
10 | 319 |
bitmaps: |
35 | 320 |
@-$(MAKE) bitmapLink |
0 | 321 |
|
38 | 322 |
bitmaplink:: bitmapLink |
323 |
||
2 | 324 |
# |
325 |
# clean out intermediate chunk |
|
326 |
# |
|
0 | 327 |
cleanjunk:: |
66
70bbef4d5737
Do not clean or clobber changes file.
Stefan Vogel <sv@exept.de>
parents:
51
diff
changeset
|
328 |
-rm -f a.out SymbolTable ttt main.c |
6 | 329 |
-rm -f classList.c fclassList.c nxclassList.c basicclassList.c |
330 |
-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
|
331 |
-rm -f modulList.stc modulList.c modulList.o |
16 | 332 |
-rm -f pers* pers2 data data2 data.boss tetris.scores |
0 | 333 |
|
26 | 334 |
cleanlinks: |
335 |
-rm -rf source bitmaps binaries resources examples include |
|
336 |
||
2 | 337 |
# |
338 |
# clean out all that is not needed to run smalltalk |
|
339 |
# |
|
0 | 340 |
clean:: |
66
70bbef4d5737
Do not clean or clobber changes file.
Stefan Vogel <sv@exept.de>
parents:
51
diff
changeset
|
341 |
-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
|
342 |
-rm -f modulList.stc modulList.c modulList.o |
11 | 343 |
-rm -f classList.stc classList.c classList.o |
0 | 344 |
-rm -f fclassList.stc fclassList.c |
345 |
-rm -f nxclassList.stc nxclassList.c |
|
6 | 346 |
-rm -f basicclassList.stc basicclassList.c |
347 |
-rm -f betaclassList.stc betaclassList.c |
|
2 | 348 |
-rm -f miniList.stc miniList.c |
349 |
-rm -f tinyList.stc tinyList.c |
|
16 | 350 |
-rm -f pers pers2 data data2 data.boss tetris.scores |
351 |
-rm -f st.img st2.img |
|
25 | 352 |
-rm -f .stx*.mem |
0 | 353 |
|
2 | 354 |
# |
355 |
# clean out all that can be regenerated |
|
356 |
# |
|
0 | 357 |
clobber:: |
67
734370f8d967
clean rule has to remove modulList
Claus Gittinger <cg@exept.de>
parents:
66
diff
changeset
|
358 |
-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
|
359 |
-rm -rf resources source binary bitmaps include examples |
7 | 360 |
-rm -f smalltalk minitalk tinytalk st.img |
0 | 361 |
-rm -f main.o |
362 |
||
363 |
# |
|
364 |
# make a new resources subdirectory |
|
365 |
# |
|
366 |
newResources: |
|
367 |
rm -rf resources |
|
32 | 368 |
@$(MAKE) resources styles |
0 | 369 |
|
370 |
resources: |
|
371 |
-mkdir resources |
|
32 | 372 |
@$(MAKE) resourceLink |
373 |
||
38 | 374 |
resourcelink: resourceLink |
375 |
||
16 | 376 |
resourceLink: |
32 | 377 |
@-if [ "`echo $(LIBBASICDIR)/resources/*`" != '$(LIBBASICDIR)/resources/*' ]; then \ |
38 | 378 |
echo "linking resource files from $(LIBBASICDIR) ..."; \ |
8 | 379 |
(cd resources; $(LNS) ../$(LIBBASICDIR)/resources/* .); \ |
32 | 380 |
rm -f resources/RCS resources/CVS; \ |
8 | 381 |
fi |
32 | 382 |
@-if [ "`echo $(LIBVIEWDIR)/resources/*`" != '$(LIBVIEWDIR)/resources/*' ]; then \ |
38 | 383 |
echo "linking resource files from $(LIBVIEWDIR) ..."; \ |
8 | 384 |
(cd resources; $(LNS) ../$(LIBVIEWDIR)/resources/* .); \ |
32 | 385 |
rm -f resources/RCS resources/CVS; \ |
8 | 386 |
fi |
32 | 387 |
@-if [ "`echo $(LIBVIEW2DIR)/resources/*`" != '$(LIBVIEW2DIR)/resources/*' ]; then \ |
38 | 388 |
echo "linking resource files from $(LIBVIEW2DIR) ..."; \ |
26 | 389 |
(cd resources; $(LNS) ../$(LIBVIEW2DIR)/resources/* .); \ |
32 | 390 |
rm -f resources/RCS resources/CVS; \ |
26 | 391 |
fi |
32 | 392 |
@-if [ "`echo $(LIBWIDGDIR)/resources/*`" != '$(LIBWIDGDIR)/resources/*' ]; then \ |
38 | 393 |
echo "linking resource files from $(LIBWIDGDIR) ..."; \ |
8 | 394 |
(cd resources; $(LNS) ../$(LIBWIDGDIR)/resources/* .); \ |
32 | 395 |
rm -f resources/RCS resources/CVS; \ |
8 | 396 |
fi |
32 | 397 |
@-if [ "`echo $(LIBWIDG2DIR)/resources/*`" != '$(LIBWIDG2DIR)/resources/*' ]; then \ |
38 | 398 |
echo "linking resource files from $(LIBWIDG2DIR) ..."; \ |
8 | 399 |
(cd resources; $(LNS) ../$(LIBWIDG2DIR)/resources/* .); \ |
32 | 400 |
rm -f resources/RCS resources/CVS; \ |
8 | 401 |
fi |
32 | 402 |
@-if [ "`echo $(LIBWIDG3DIR)/resources/*`" != '$(LIBWIDG3DIR)/resources/*' ]; then \ |
38 | 403 |
echo "linking resource files from $(LIBWIDG3DIR) ..."; \ |
8 | 404 |
(cd resources; $(LNS) ../$(LIBWIDG3DIR)/resources/* .); \ |
32 | 405 |
rm -f resources/RCS resources/CVS; \ |
8 | 406 |
fi |
32 | 407 |
@-if [ "`echo $(LIBTOOLDIR)/resources/*`" != '$(LIBTOOLDIR)/resources/*' ]; then \ |
38 | 408 |
echo "linking resource files from $(LIBTOOLDIR) ..."; \ |
8 | 409 |
(cd resources; $(LNS) ../$(LIBTOOLDIR)/resources/* .); \ |
32 | 410 |
rm -f resources/RCS resources/CVS; \ |
8 | 411 |
fi |
32 | 412 |
@-if [ "`echo $(LIBTABLEDIR)/resources/*`" != '$(LIBTABLEDIR)/resources/*' ]; then \ |
38 | 413 |
echo "linking resource files from $(LIBTABLEDIR) ..."; \ |
16 | 414 |
(cd resources; $(LNS) ../$(LIBTABLEDIR)/resources/* .); \ |
32 | 415 |
rm -f resources/RCS resources/CVS; \ |
16 | 416 |
fi |
32 | 417 |
@-if [ "`echo $(TOP)/fileIn/resources/*`" != '$(TOP)/fileIn/resources/*' ]; then \ |
38 | 418 |
echo "linking resource files from $(TOP)/fileIn ..."; \ |
8 | 419 |
(cd resources; $(LNS) ../$(TOP)/fileIn/resources/* .); \ |
32 | 420 |
rm -f resources/RCS resources/CVS; \ |
8 | 421 |
fi |
32 | 422 |
@-if [ "`echo $(CLIENTDIR)/*/resources/*`" != '$(CLIENTDIR)/*/resources/*' ]; then \ |
38 | 423 |
echo "linking resource files from $(CLIENTDIR) ..."; \ |
8 | 424 |
(cd resources; $(LNS) ../$(CLIENTDIR)/*/resources/* .); \ |
32 | 425 |
rm -f resources/RCS resources/CVS; \ |
8 | 426 |
fi |
0 | 427 |
|
26 | 428 |
styles: resources |
32 | 429 |
@-echo "linking style files from $(LIBVIEWDIR)/styles ..." |
35 | 430 |
@-rm -f resources/*.style resources/*.common |
32 | 431 |
@-(cd resources; $(LNS) ../$(LIBVIEWDIR)/styles/* .) |
432 |
@rm -f resources/RCS resources/CVS |
|
0 | 433 |
|
28 | 434 |
main.o:: $(INCLUDE)/stc.h $(INCLUDE)/stcIntern.h Makefile |
0 | 435 |
|
6 | 436 |
# |
437 |
# installation rules |
|
438 |
# |
|
0 | 439 |
|
6 | 440 |
install:: installThis |
441 |
||
442 |
# |
|
443 |
# install binary only |
|
444 |
# |
|
0 | 445 |
binInstall:: |
446 |
-mkdir $(DESTLIBDIR) |
|
447 |
-mkdir $(DESTBINDIR) |
|
448 |
$(INSTALL) smalltalk $(DESTBINDIR) |
|
449 |
-strip $(DESTBINDIR)/smalltalk |
|
450 |
||
6 | 451 |
# |
452 |
# install all local stuff |
|
0 | 453 |
# |
454 |
# notice the [x-y]* patterns; some unixes (at&t) dont like too many arguments ... |
|
455 |
# |
|
456 |
installThis:: |
|
457 |
-mkdir $(DESTLIBDIR) |
|
458 |
-mkdir $(DESTBINDIR) |
|
459 |
$(INSTALL) smalltalk $(DESTBINDIR) |
|
460 |
-strip $(DESTBINDIR)/smalltalk |
|
461 |
-mkdir $(DESTLIBDIR)/source |
|
462 |
-chmod a+rx $(DESTLIBDIR)/source |
|
463 |
-cp source/[A-G]* $(DESTLIBDIR)/source |
|
464 |
-cp source/[H-P]* $(DESTLIBDIR)/source |
|
465 |
-cp source/[Q-Z]* $(DESTLIBDIR)/source |
|
466 |
-chmod a+r $(DESTLIBDIR)/source/[A-G]* |
|
467 |
-chmod a+r $(DESTLIBDIR)/source/[H-P]* |
|
468 |
-chmod a+r $(DESTLIBDIR)/source/[Q-Z]* |
|
469 |
-mkdir $(DESTLIBDIR)/bitmaps |
|
470 |
-chmod a+rx $(DESTLIBDIR)/bitmaps |
|
471 |
-cp bitmaps/[A-I]* $(DESTLIBDIR)/bitmaps |
|
472 |
-cp bitmaps/[J-Z]* $(DESTLIBDIR)/bitmaps |
|
473 |
-cp bitmaps/[a-i]* $(DESTLIBDIR)/bitmaps |
|
474 |
-cp bitmaps/[j-z]* $(DESTLIBDIR)/bitmaps |
|
475 |
-chmod a+r $(DESTLIBDIR)/bitmaps/[A-I]* |
|
476 |
-chmod a+r $(DESTLIBDIR)/bitmaps/[J-Z]* |
|
477 |
-chmod a+r $(DESTLIBDIR)/bitmaps/[a-i]* |
|
478 |
-chmod a+r $(DESTLIBDIR)/bitmaps/[j-z]* |
|
479 |
-chmod a+rx $(DESTLIBDIR)/resources |
|
480 |
-mkdir $(DESTLIBDIR)/resources |
|
481 |
-cp resources/* $(DESTLIBDIR)/resources |
|
482 |
-chmod a+r $(DESTLIBDIR)/resources/*.rs |
|
483 |
-cp *.rc *.stc patches $(DESTLIBDIR) |
|
484 |
-chmod a+r $(DESTLIBDIR)/*.rc $(DESTLIBDIR)/*.stc $(DESTLIBDIR)/patches |
|
485 |
||
486 |
qinstall:: installThis |