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