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