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