author | Claus Gittinger <cg@exept.de> |
Wed, 26 Jan 2000 17:00:13 +0100 | |
changeset 418 | a40b1f54e841 |
parent 408 | ddf371d470bc |
child 486 | c9f03027499e |
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 |
|
150 | 10 |
# generates a standard smalltalk, and sets up symbolic links |
11 |
# for local execution. |
|
135 | 12 |
# |
13 |
# make smalltalk |
|
150 | 14 |
# generates a standard smalltalk executable only |
135 | 15 |
# |
178
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
16 |
# make stx_static (ELF based systems only): |
189 | 17 |
# generates a smalltalk with statically linked |
18 |
# class libs. (still uses dynamic unix libraries) |
|
178
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
19 |
# |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
20 |
# make stx_fullstatic (ELF based systems only): |
189 | 21 |
# generates a fully statically linked smalltalk |
22 |
# (even system libs are linked in) |
|
178
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
23 |
# |
135 | 24 |
# make smalltalk ADDITIONAL_OBJS=<list of object files> \ |
150 | 25 |
# ADDITIONAL_CLASSES=<list of class names> |
26 |
# generates a customized executable, containing additional |
|
27 |
# class (list of classes) which are to be found in the object |
|
28 |
# files (list of object files). |
|
29 |
# Example: |
|
30 |
# make smalltalk ADDITIONAL_OBJS=Foo.o ADDITIONAL_CLASSES=Foo |
|
135 | 31 |
# |
0 | 32 |
|
7 | 33 |
TOP=../.. |
0 | 34 |
SUBDIRS= |
384 | 35 |
SUPPRESS_LOCAL_ABBREVS="yes" |
398 | 36 |
# |
37 |
# these are installed when installing their |
|
38 |
# package dir ... |
|
39 |
# |
|
40 |
SUPPRESS_INSTALL_BITMAPS="yes" |
|
41 |
SUPPRESS_INSTALL_RESOURCES="yes" |
|
42 |
||
43 |
INSTALLBIN_DIR=$(INSTALLBASE)/bin |
|
44 |
INSTALLLIB_DIR=$(INSTALLBASE)/lib |
|
0 | 45 |
|
13 | 46 |
RCSSOURCES=*.rc patches Make.proto |
26 | 47 |
LINKSOURCES=*.rc patches Make.proto |
13 | 48 |
|
150 | 49 |
DELIVERBINARIES=stx |
71 | 50 |
|
6 | 51 |
# |
52 |
# other definitions to use for things compiled here |
|
53 |
# |
|
54 |
LOCALDEFS=-DDEBUG |
|
26 | 55 |
# ST_LDFLAG= |
0 | 56 |
|
259
a5e174f1ee6d
do not enter local abrbevs into common abbrev.stc file
Claus Gittinger <cg@exept.de>
parents:
248
diff
changeset
|
57 |
# st files found here wont go into the global abbrev list |
a5e174f1ee6d
do not enter local abrbevs into common abbrev.stc file
Claus Gittinger <cg@exept.de>
parents:
248
diff
changeset
|
58 |
SUPPRESS_LOCAL_ABBREVS=1 |
a5e174f1ee6d
do not enter local abrbevs into common abbrev.stc file
Claus Gittinger <cg@exept.de>
parents:
248
diff
changeset
|
59 |
|
6 | 60 |
# |
7 | 61 |
# see COMMON/defines for what those XXX_LIB etc. are |
6 | 62 |
# |
11 | 63 |
# MINI_LIB = libbasic, libcomp $(PRIVATELIBS) |
7 | 64 |
# FUNDAMENTAL_LIB = above PLUS libview, libwidg |
65 |
# DEVELOP_LIB = above PLUS libtool |
|
66 |
# STANDARD_LIB = above PLUS libwidg2, libdbase |
|
67 |
# EXTENDED_LIB = above PLUS libwidg3 |
|
6 | 68 |
|
7 | 69 |
# |
70 |
# this defines where the show starts |
|
71 |
# |
|
72 |
STARTUP_CLASS="Smalltalk" |
|
0 | 73 |
STARTUP_SELECTOR="start" |
74 |
||
10 | 75 |
# |
76 |
# directories from which bitmap files in bitmap subdirectories are to be symlinked |
|
77 |
# to the bitmaps subdirectory |
|
190 | 78 |
# The default lists all relevant dirs. |
10 | 79 |
# |
190 | 80 |
# BITMAPLINK_DIRS= ... |
81 |
||
82 |
# |
|
83 |
# you may add additional bitmap dirs here |
|
84 |
# |
|
85 |
# EXTRA_BITMAPLINK_DIRS= ... |
|
10 | 86 |
|
190 | 87 |
# |
88 |
# directories from which resource files are to be symlinked |
|
89 |
# to the resources subdirectory |
|
90 |
# The default lists all relevant dirs. |
|
91 |
# |
|
92 |
# RESOURCELINK_DIRS= ... |
|
51 | 93 |
|
10 | 94 |
# |
95 |
# directories from which binary files are to be symlinked |
|
96 |
# to the binary subdirectory |
|
190 | 97 |
# The default lists all relevant dirs. |
10 | 98 |
# |
190 | 99 |
# BINARYLINK_DIRS= ... |
100 |
# EXTRA_BINARYLINK_DIRS= ... |
|
10 | 101 |
|
102 |
# |
|
103 |
# directories from which source files are to be symlinked |
|
104 |
# to the source subdirectory |
|
190 | 105 |
# The default lists all relevant dirs. |
10 | 106 |
# |
190 | 107 |
# SOURCELINK_DIRS= ... |
108 |
# EXTRA_SOURCELINK_DIRS= ... |
|
10 | 109 |
|
11 | 110 |
# |
111 |
# including your own private lib in the make process and executable: |
|
112 |
# |
|
8 | 113 |
# for example, if you have a libprivate directory, |
11 | 114 |
# where libprivate.obj is built, and that one should be included, |
115 |
# add lines as below to your configuration/.../defines file: |
|
8 | 116 |
# PRIVATEOBJ=$(TOP)/libprivate/libprivate.obj |
117 |
# PRIVATE_SO=$(TOP)/libprivate/libprivate.so |
|
118 |
# PRIVATELIBS=libprivate |
|
119 |
||
120 |
# ---------------------- end additional stuff -------------------- |
|
121 |
||
122 |
||
6 | 123 |
# |
124 |
# default target: create the TARGET (usually smalltalk), |
|
125 |
# create subdirectories with source-links, bitmap-links and resource-links |
|
126 |
# |
|
232 | 127 |
all:: $(TARGET)$(TARGET_RULE_EXTENSION) symlinks |
233 | 128 |
@-if [ "$(ALSO_MAKE_STATIC_TARGET)" = "1" ]; then \ |
232 | 129 |
mv stx stx_dynamic; \ |
130 |
$(MAKE) stx_fullstatic; \ |
|
131 |
fi |
|
6 | 132 |
|
133 |
# |
|
134 |
# same, force recreation of link-directories |
|
135 |
# |
|
232 | 136 |
allNew: $(TARGET)$(TARGET_RULE_EXTENSION) newResources styles newSource newBitmaps binary newInclude misc |
233 | 137 |
@-if [ "$(ALSO_MAKE_STATIC_TARGET)" = "1" ]; then \ |
232 | 138 |
mv stx stx_dynamic; \ |
139 |
$(MAKE) stx_fullstatic; \ |
|
140 |
fi |
|
0 | 141 |
|
6 | 142 |
# |
11 | 143 |
# create symbolic links to sources, resources etc. |
144 |
# normally (on an end-user system) these should go into usr/local/lib/smalltalk |
|
145 |
# |
|
283 | 146 |
symlinks: resourceLink styleLink newSource bitmapLink binaryLink includeLink misc |
11 | 147 |
|
148 |
# |
|
6 | 149 |
# the standard smalltalk executable: |
150 |
# basic classes + view & widgets + tools + persistency |
|
151 |
# |
|
24 | 152 |
xsmalltalk: $(TARGET) |
153 |
||
154 |
smalltalk:: $(TARGET)$(TARGET_RULE_EXTENSION) |
|
7 | 155 |
|
82 | 156 |
# |
157 |
# demo for a graphical standAlone application (simply opening a FileBrowser) |
|
158 |
# |
|
186 | 159 |
fbrowser: |
332
6cda703e3dd5
- Fixes to avoid using '-' rules to ignore an exit status:
manfred
parents:
330
diff
changeset
|
160 |
-rm -f main.o modulList.* |
190 | 161 |
$(MAKE) main.o \ |
162 |
STARTUP_CLASS="FileBrowser" \ |
|
163 |
STARTUP_SELECTOR="open" \ |
|
207 | 164 |
MAIN_DEFINES="-DIGNORE_IMAGE" |
186 | 165 |
$(MAKE) linkTarget TARGET=fbrowser |
332
6cda703e3dd5
- Fixes to avoid using '-' rules to ignore an exit status:
manfred
parents:
330
diff
changeset
|
166 |
-rm -f main.o modulList.* |
186 | 167 |
|
168 |
# |
|
169 |
# demo for a non-graphical standAlone application (simply prints 'hello world') |
|
266 | 170 |
# demoApps have been moved into a separate directory. |
189 | 171 |
# See more in ../demoApps |
186 | 172 |
# |
173 |
demoApp1: DemoApp1.o |
|
174 |
$(MAKE) NON_GUI_APPLICATION \ |
|
175 |
TARGET=demoApp1 \ |
|
176 |
APPLICATION_CLASSES="DemoApp1" \ |
|
177 |
APPLICATION_OBJS="DemoApp1.o" \ |
|
190 | 178 |
STARTUP_CLASS="DemoApp1" \ |
179 |
STARTUP_SELECTOR="start" \ |
|
186 | 180 |
MAIN_DEFINES="-DIGNORE_IMAGE" |
181 |
||
182 |
DemoApp1.o:: DemoApp1.st |
|
183 |
||
187
734692183edf
moved demoApps into a separate directory
Claus Gittinger <cg@exept.de>
parents:
186
diff
changeset
|
184 |
DemoApp1.st: ../demoApps/DemoApp1.st |
734692183edf
moved demoApps into a separate directory
Claus Gittinger <cg@exept.de>
parents:
186
diff
changeset
|
185 |
-cp ../demoApps/DemoApp1.st . |
186 | 186 |
|
187 |
# |
|
266 | 188 |
# a testtalk with additional classes builtIn |
189 |
# the following rule is now obsolete (JPEGReader is already builtIn) |
|
190 |
# however, it can be used as a guide for your own additional classes |
|
207 | 191 |
# |
192 |
MY_ADDITIONAL_OBJECTS=JPEGReader.$(O) |
|
193 |
MY_ADDITIONAL_CLASSES=JPEGReader |
|
194 |
MY_ADDITIONAL_LIBS=../../support/libjpeg/libjpeg.a |
|
195 |
||
196 |
mySmalltalk: $(MY_ADDITIONAL_OBJECTS) |
|
197 |
@echo "making special smalltalk ..." |
|
198 |
@$(MAKE) linkIt \ |
|
199 |
LIBOBJS="$(LIBOBJS)" \ |
|
200 |
LINK_OBJS="$(LINK_OBJS)" \ |
|
201 |
LINK_LIBOBJS="$(LINK_LIBOBJS)" \ |
|
202 |
LINK_LIBRUN="$(LINK_LIBRUN)" \ |
|
203 |
LIBRUN="$(LIBRUN)" \ |
|
204 |
ADDITIONAL_OBJS=$(MY_ADDITIONAL_OBJECTS) \ |
|
205 |
ADDITIONAL_CLASSES=$(MY_ADDITIONAL_CLASSES) \ |
|
206 |
ADDITIONAL_LIBS=$(MY_ADDITIONAL_LIBS) \ |
|
207 |
EXTRA_OBJ="$(EXTRA_OBJ)" \ |
|
208 |
EXTRA_LINK_OBJ="$(EXTRA_LINK_OBJ)" \ |
|
209 |
LIBLIST="$(LIBLIST)" |
|
237 | 210 |
@$(MAKE) removeLinkLibs |
207 | 211 |
|
212 |
# |
|
178
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
213 |
# by default, the TARGET rule calls for one of the |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
214 |
# rules below. Which one is controlled by the |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
215 |
# architecture-specific definition file. |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
216 |
# |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
217 |
$(TARGET)_static: $(STATIC_LIBRUN) |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
218 |
@echo "making statically linked smalltalk ..." |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
219 |
@$(MAKE) linkIt \ |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
220 |
LIBOBJS="" \ |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
221 |
LINK_OBJS="$(STATIC_OBJS)" \ |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
222 |
LINK_LIBOBJS="$(STATIC_LIBOBJS)" \ |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
223 |
LINK_LIBRUN="$(STATIC_LIBRUN)" \ |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
224 |
LIBRUN="$(STATIC_LIBRUN)" \ |
184 | 225 |
ADDITIONAL_OBJS=$(STATIC_ADDITIONAL_OBJS) \ |
178
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
226 |
ADDITIONAL_CLASSES=$(STATIC_ADDITIONAL_CLASSES) \ |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
227 |
EXTRA_OBJ="$(STATIC_EXTRA_OBJ)" \ |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
228 |
EXTRA_LINK_OBJ="$(STATIC_EXTRA_OBJ)" \ |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
229 |
LIBLIST="$(LIBLIST)" |
237 | 230 |
@$(MAKE) removeLinkLibs |
8 | 231 |
|
150 | 232 |
$(TARGET)_shared: |
178
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
233 |
@echo "making shared library linked smalltalk ..." |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
234 |
@$(MAKE) linkIt \ |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
235 |
LIBOBJS="$(LIBOBJS)" \ |
184 | 236 |
ADDITIONAL_OBJS=$(ADDITIONAL_OBJS) \ |
178
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
237 |
ADDITIONAL_CLASSES=$(ADDITIONAL_CLASSES) \ |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
238 |
EXTRA_OBJ="$(EXTRA_OBJ)" \ |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
239 |
EXTRA_LINK_OBJ="$(EXTRA_LINK_OBJ)" \ |
311
1a215d5dab5a
oops - what happened to librun ?
Claus Gittinger <cg@exept.de>
parents:
285
diff
changeset
|
240 |
LIBRUN=$(LIBRUN) \ |
1a215d5dab5a
oops - what happened to librun ?
Claus Gittinger <cg@exept.de>
parents:
285
diff
changeset
|
241 |
LINK_LIBRUN=$(LINK_LIBRUN) \ |
178
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
242 |
LIBLIST="$(LIBLIST)" |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
243 |
|
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
244 |
$(TARGET)_fullstatic: $(STATIC_LIBRUN) |
285 | 245 |
if [ -f $(LIBRUNDIR)/librun.a ]; then \ |
246 |
echo "librun.a already made."; \ |
|
247 |
else \ |
|
248 |
(cd $(LIBRUNDIR); make librun.a); \ |
|
249 |
fi |
|
178
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
250 |
@echo "making full statically linked smalltalk ..." |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
251 |
@$(MAKE) linkIt \ |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
252 |
LIBOBJS="" \ |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
253 |
LINK_OBJS="$(STATIC_OBJS)" \ |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
254 |
LINK_LIBOBJS="$(STATIC_LIBOBJS)" \ |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
255 |
LINK_LIBRUN="$(STATIC_LIBRUN)" \ |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
256 |
LIBRUN="$(STATIC_LIBRUN)" \ |
184 | 257 |
ADDITIONAL_OBJS=$(STATIC_ADDITIONAL_OBJS) \ |
178
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
258 |
ADDITIONAL_CLASSES=$(STATIC_ADDITIONAL_CLASSES) \ |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
259 |
EXTRA_OBJ="$(STATIC_EXTRA_OBJ)" \ |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
260 |
EXTRA_LINK_OBJ="$(STATIC_EXTRA_OBJ)" \ |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
261 |
LIBLIST="$(LIBLIST)" \ |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
262 |
MATHLIB="$(STATIC_MATHLIB)" \ |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
263 |
EXTRA_LIBS="$(STATIC_EXTRA_LIBS)" \ |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
264 |
SYSLIBS="$(STATIC_SYSLIBS)" |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
265 |
|
237 | 266 |
@$(MAKE) removeLinkLibs |
8 | 267 |
|
130 | 268 |
AIX_SHARED_LIBOBJS= \ |
269 |
$(LIBBASICDIR)/libbasic.so \ |
|
270 |
$(LIBCOMPDIR)/libcomp.so \ |
|
150 | 271 |
$(LIBVIEWDIR)/libview.so \ |
130 | 272 |
$(LIBVIEW2DIR)/libview2.so \ |
273 |
$(LIBWIDGDIR)/libwidg.so \ |
|
150 | 274 |
$(LIBTOOLDIR)/libtool.so \ |
130 | 275 |
$(LIBBASIC2DIR)/libbasic2.so \ |
276 |
$(LIBBASIC3DIR)/libbasic3.so \ |
|
145 | 277 |
$(LIBHTMLDIR)/libhtml.so \ |
150 | 278 |
$(LIBWIDG2DIR)/libwidg2.so \ |
130 | 279 |
$(PERSDIR)/libdbase.so |
280 |
||
281 |
aix: |
|
162 | 282 |
@echo "making shared library linked smalltalk for aix ..." |
142 | 283 |
@$(MAKE) linkIt \ |
284 |
LIBOBJS="$(AIX_SHARED_LIBOBJS)" \ |
|
285 |
EXTRA_OBJ="$(EXTRA_OBJ)" \ |
|
286 |
EXTRA_LINK_OBJ="$(EXTRA_LINK_OBJ)" \ |
|
287 |
LIBLIST="$(LIBLIST)" \ |
|
162 | 288 |
LINK_LIBRUN=$(LINK_LIBDIR)librun.so \ |
142 | 289 |
LIBRUN=$(LIBRUNDIR)/librun.so |
130 | 290 |
|
132 | 291 |
aix_librun_only: |
292 |
@echo "making partial shared library linked smalltalk ..." |
|
293 |
@$(MAKE) linkIt LIBRUN=$(LIBRUNDIR)/librun.so |
|
294 |
||
101 | 295 |
forceStatic: |
296 |
(cd $(LIBBASICDIR) ; make libbasicInit.o) |
|
332
6cda703e3dd5
- Fixes to avoid using '-' rules to ignore an exit status:
manfred
parents:
330
diff
changeset
|
297 |
-rm -f $(LIBBASICDIR)/libbasic.o |
101 | 298 |
$(MAKE) linkIt LIBRUN="$(LIBRUNDIR)/*.o" LIBBASIC="$(LIBBASICDIR)/*.o" |
299 |
||
10 | 300 |
# |
301 |
# a "smaller" smalltalk (does not include development classes) |
|
302 |
# |
|
303 |
smalltalk_exec: |
|
332
6cda703e3dd5
- Fixes to avoid using '-' rules to ignore an exit status:
manfred
parents:
330
diff
changeset
|
304 |
-rm -f modulList.stc |
24 | 305 |
@$(MAKE) modulList.stc \ |
134 | 306 |
EXTRA_CLASSES="$(EXTRA_CLASSES) DebugView" \ |
307 |
EXTRA_OBJ="$(EXTRA_OBJ) $(LIBTOOLDIR)/DebugView$(BIN_O)" \ |
|
308 |
LIBLIST="$(FUNDAMENTAL_LIST)" |
|
15 | 309 |
@$(MAKE) smalltalk \ |
134 | 310 |
LIBLIST="$(FUNDAMENTAL_LIST)" \ |
311 |
EXTRA_CLASSES="$(EXTRA_CLASSES) DebugView" \ |
|
185 | 312 |
EXTRA_OBJ="$(EXTRA_OBJ) \ |
313 |
EXTRA_LINK_OBJ="$(EXTRA_LINK_OBJ)" \ |
|
142 | 314 |
$(LIBTOOLDIR)/DebugView$(BIN_O)" \ |
134 | 315 |
LIBOBJS="$(FUNDAMENTAL_LIB)" |
26 | 316 |
if [ ! -f binary/DebugView$(BIN_O) ]; then \ |
383 | 317 |
rm -f binary/DebugView.so; \ |
318 |
(cd binary ; ln -s ../../../libtool/DebugView.so .); \ |
|
26 | 319 |
fi |
7 | 320 |
|
24 | 321 |
$(LIBTOOLDIR)/DebugView.so: |
322 |
(cd $(LIBTOOLDIR) ; $(MAKE) DebugView.so) |
|
0 | 323 |
|
25 | 324 |
$(LIBTOOLDIR)/DebugView.o: |
325 |
(cd $(LIBTOOLDIR) ; $(MAKE) DebugView.o) |
|
326 |
||
393 | 327 |
$(LIBVIEWDIR)/XWorkstation.o: |
328 |
(cd $(LIBVIEWDIR) ; $(MAKE) XWorkstation.o) |
|
25 | 329 |
|
393 | 330 |
$(LIBVIEWDIR)/XWorkstation.so: |
331 |
(cd $(LIBVIEWDIR) ; $(MAKE) XWorkstation.so) |
|
25 | 332 |
|
393 | 333 |
$(LIBVIEWDIR)/GLXWorkstation.o: |
334 |
(cd $(LIBVIEWDIR) ; $(MAKE) GLXWorkstation.o) |
|
25 | 335 |
|
393 | 336 |
$(LIBVIEWDIR)/GLXWorkstation.so: |
337 |
(cd $(LIBVIEWDIR) ; $(MAKE) GLXWorkstation.so) |
|
25 | 338 |
|
393 | 339 |
$(LIBCOMPDIR)/ObjectFileLoader.o: |
340 |
(cd $(LIBCOMPDIR) ; $(MAKE) ObjectFileLoader.o) |
|
25 | 341 |
|
393 | 342 |
$(LIBCOMPDIR)/ObjectFileLoader.so: |
343 |
(cd $(LIBCOMPDIR) ; $(MAKE) ObjectFileLoader.so) |
|
25 | 344 |
|
178
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
345 |
$(LIBRUNDIR)/librun.a: |
285 | 346 |
if [ -f $(LIBRUNDIR)/librun.a ]; then \ |
347 |
echo "librun.a already made."; \ |
|
348 |
else \ |
|
349 |
(cd $(LIBRUNDIR); make librun.a); \ |
|
350 |
fi |
|
178
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
351 |
|
0 | 352 |
# |
353 |
# make list of classes for a standard smalltalk |
|
2 | 354 |
# (includes basic, view & widgets and Persistency) |
0 | 355 |
# |
7 | 356 |
BASICLIST: $(CLASSLISTS) |
357 |
-cat $(CLASSLISTS) > $(CLASSLIST) |
|
6 | 358 |
|
359 |
# |
|
27 | 360 |
# dont want these ttt-tempfile abbrevs to be included ... |
15 | 361 |
# |
16 | 362 |
abbrev.stc:: |
27 | 363 |
@-rm -f ttt*.* |
16 | 364 |
|
27 | 365 |
# |
362 | 366 |
# currently, abbrev,stc must be made cross |
367 |
# |
|
368 |
ntAbbrev.stc: include/abbrev.stc |
|
369 |
cp include/abbrev.stc ntAbbrev.stc |
|
370 |
||
371 |
# |
|
27 | 372 |
# dont want local abbrevs to be included ... |
373 |
# |
|
15 | 374 |
collectAbbrev:: |
27 | 375 |
@-rm -f abbrev.stc |
408 | 376 |
@-if [ "$(SUPPRESS_ABBREVS)" = "" ]; then \ |
377 |
if [ -d include ]; then \ |
|
130 | 378 |
if [ ! -f include/abbrev.stc ]; then \ |
383 | 379 |
(cd include; $(LNS) ../$(INCLUDE)/abbrev.stc . ); \ |
408 | 380 |
fi; \ |
381 |
fi; \ |
|
112 | 382 |
fi |
383 |
||
384 |
collectAutoload:: |
|
385 |
@-rm -f autoloadList.stc |
|
332
6cda703e3dd5
- Fixes to avoid using '-' rules to ignore an exit status:
manfred
parents:
330
diff
changeset
|
386 |
@-if [ -d include ]; then \ |
130 | 387 |
if [ ! -f include/autoloadList.stc ]; then \ |
388 |
(cd include; $(LNS) ../$(INCLUDE)/autoloadList.stc . ); \ |
|
389 |
fi; \ |
|
112 | 390 |
fi |
15 | 391 |
|
82 | 392 |
classes:: |
332
6cda703e3dd5
- Fixes to avoid using '-' rules to ignore an exit status:
manfred
parents:
330
diff
changeset
|
393 |
test -d classes || mkdir classes |
82 | 394 |
-for i in source/*.st; do \ |
130 | 395 |
stcomp -i stcomp.img $$i; \ |
82 | 396 |
done |
397 |
||
15 | 398 |
# |
0 | 399 |
# make a new source subdirectory |
6 | 400 |
# the source directory consists of sym-links to all .st files we find |
0 | 401 |
# |
402 |
newSource: |
|
403 |
-rm -rf source |
|
35 | 404 |
@-$(MAKE) sourceLink |
0 | 405 |
|
406 |
Source: source |
|
407 |
||
7 | 408 |
source: |
35 | 409 |
@-$(MAKE) sourceLink |
0 | 410 |
|
38 | 411 |
sourcelink:: sourceLink |
412 |
||
6 | 413 |
# |
7 | 414 |
# make a new include subdirectory and link to abbreviation file |
408 | 415 |
include: includeLink |
416 |
||
7 | 417 |
newInclude: |
418 |
-rm -rf include |
|
35 | 419 |
@-$(MAKE) includeLink |
7 | 420 |
|
38 | 421 |
includelink:: includeLink |
422 |
||
8 | 423 |
|
424 |
misc: examples |
|
425 |
||
426 |
examples: |
|
332
6cda703e3dd5
- Fixes to avoid using '-' rules to ignore an exit status:
manfred
parents:
330
diff
changeset
|
427 |
test -d examples || mkdir examples examples/3D |
6cda703e3dd5
- Fixes to avoid using '-' rules to ignore an exit status:
manfred
parents:
330
diff
changeset
|
428 |
-(cd examples/3D; $(LNS) ../../$(TOP)/clients/GLdemos/*.data . 2> /dev/null) |
0 | 429 |
|
2 | 430 |
# |
431 |
# make a new binary subdirectory |
|
432 |
# (this is only useful on systems that support dynamic loading; |
|
433 |
# autoloaded classes will then be loaded from machine code files |
|
434 |
# instead of source) |
|
435 |
# |
|
0 | 436 |
newBinary: |
437 |
-rm -rf binary |
|
35 | 438 |
@-$(MAKE) binaryLink |
0 | 439 |
|
440 |
binary: |
|
35 | 441 |
@-$(MAKE) binaryLink |
0 | 442 |
|
38 | 443 |
binarylink:: binaryLink |
444 |
||
0 | 445 |
# |
446 |
# make a new bitmaps subdirectory |
|
2 | 447 |
# (simply collect the contents of all bitmap directories) |
0 | 448 |
# |
449 |
newBitmaps: |
|
450 |
-rm -rf bitmaps |
|
408 | 451 |
@-$(MAKE) bitmapLink |
0 | 452 |
|
453 |
Bitmaps: bitmaps |
|
454 |
||
10 | 455 |
bitmaps: |
35 | 456 |
@-$(MAKE) bitmapLink |
0 | 457 |
|
38 | 458 |
bitmaplink:: bitmapLink |
459 |
||
2 | 460 |
# |
461 |
# clean out intermediate chunk |
|
462 |
# |
|
0 | 463 |
cleanjunk:: |
334 | 464 |
@-rm -f a.out SymbolTable ttt main.c |
465 |
@-rm -f classList.c fclassList.c nxclassList.c basicclassList.c |
|
466 |
@-rm -f betaclassList.c miniList.c tinyList.c |
|
467 |
@-rm -f modulList.stc modulList.c modulList.o |
|
468 |
@-rm -f pers* pers2 data data2 data.boss tetris.scores |
|
0 | 469 |
|
26 | 470 |
cleanlinks: |
334 | 471 |
@-rm -rf source bitmaps binaries resources examples include |
26 | 472 |
|
2 | 473 |
# |
474 |
# clean out all that is not needed to run smalltalk |
|
475 |
# |
|
0 | 476 |
clean:: |
334 | 477 |
@-rm -f a.out SymbolTable ttt main.c |
478 |
@-rm -f modulList.stc modulList.c modulList.o |
|
479 |
@-rm -f classList.stc classList.c classList.o |
|
480 |
@-rm -f fclassList.stc fclassList.c |
|
481 |
@-rm -f nxclassList.stc nxclassList.c |
|
482 |
@-rm -f basicclassList.stc basicclassList.c |
|
483 |
@-rm -f betaclassList.stc betaclassList.c |
|
484 |
@-rm -f miniList.stc miniList.c |
|
485 |
@-rm -f tinyList.stc tinyList.c |
|
486 |
@-rm -f pers pers2 data data2 data.boss tetris.scores |
|
487 |
@-rm -f st.img st2.img st.img.sav errorOutput |
|
488 |
@-rm -f .stx*.mem symbols.h |
|
489 |
@-rm -rf modules stxtmp* |
|
0 | 490 |
|
2 | 491 |
# |
492 |
# clean out all that can be regenerated |
|
493 |
# |
|
0 | 494 |
clobber:: |
334 | 495 |
@$(MAKE) removeLinkLibs |
496 |
@-rm -f modulList.stc modulList.c modulList.o |
|
497 |
@-rm -rf resources source binary bitmaps include examples lib |
|
498 |
@-rm -f stx st.img st.img.sav st.sav |
|
499 |
@-rm -f main.o symbols.h |
|
500 |
@-rm -rf modules |
|
501 |
@-rm -rf stxtmp_* |
|
0 | 502 |
|
503 |
# |
|
504 |
# make a new resources subdirectory |
|
505 |
# |
|
506 |
newResources: |
|
507 |
rm -rf resources |
|
190 | 508 |
@$(MAKE) resources styleLink |
0 | 509 |
|
510 |
resources: |
|
408 | 511 |
@-if [ "$(COLLECT_RESOURCES)" != "" ]; then \ |
512 |
test -d resources || mkdir resources ; \ |
|
513 |
$(MAKE) resourceLink; \ |
|
514 |
fi |
|
32 | 515 |
|
38 | 516 |
resourcelink: resourceLink |
517 |
||
0 | 518 |
|
190 | 519 |
styles: styleLink |
0 | 520 |
|
248
46aa1483b74c
main.o depends upon symbols.stc
Claus Gittinger <cg@exept.de>
parents:
237
diff
changeset
|
521 |
main.o:: $(INCLUDE)/stc.h $(INCLUDE)/stcIntern.h Makefile $(INCLUDE)/symbols.stc symbols.h |
0 | 522 |
|
398 | 523 |
installProgsIf:: $(INSTALLBIN_DIR) |
400 | 524 |
@-echo "installing smalltalk..." |
398 | 525 |
$(INSTALL_SCRIPT_CMD) smalltalk $(INSTALLBIN_DIR) |
400 | 526 |
@-echo "installing stx..." |
383 | 527 |
$(INSTALL_BIN_CMD) stx $(INSTALLBIN_DIR) |
528 |
-strip $(INSTALLBIN_DIR)/stx |
|
529 |
||
398 | 530 |
installAux:: installRCScripts |
383 | 531 |
|
398 | 532 |
installRCScripts:: |
400 | 533 |
@-echo "installing rc scripts..." |
398 | 534 |
$(INSTALL_AUX_CMD) *.rc $(INSTALLLIB_DIR) |
418 | 535 |
$(INSTALL_AUX_CMD) *.xpm $(INSTALLLIB_DIR) |