author | Claus Gittinger <cg@exept.de> |
Sun, 08 Feb 1998 15:40:18 +0100 | |
changeset 266 | b5f18cf801ca |
parent 259 | a5e174f1ee6d |
child 283 | f7856e0093a3 |
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 |
# |
|
190 | 136 |
symlinks: resources 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: |
150 |
-rm 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 |
93 | 156 |
-rm 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)" \ |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
230 |
LIBLIST="$(LIBLIST)" |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
231 |
|
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
232 |
$(TARGET)_fullstatic: $(STATIC_LIBRUN) |
206 | 233 |
(cd $(LIBRUNDIR); make librun.a) |
178
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
234 |
@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
|
235 |
@$(MAKE) linkIt \ |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
236 |
LIBOBJS="" \ |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
237 |
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
|
238 |
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
|
239 |
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
|
240 |
LIBRUN="$(STATIC_LIBRUN)" \ |
184 | 241 |
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
|
242 |
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
|
243 |
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
|
244 |
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
|
245 |
LIBLIST="$(LIBLIST)" \ |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
246 |
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
|
247 |
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
|
248 |
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
|
249 |
|
237 | 250 |
@$(MAKE) removeLinkLibs |
8 | 251 |
|
130 | 252 |
AIX_SHARED_LIBOBJS= \ |
253 |
$(LIBBASICDIR)/libbasic.so \ |
|
254 |
$(LIBCOMPDIR)/libcomp.so \ |
|
150 | 255 |
$(LIBVIEWDIR)/libview.so \ |
130 | 256 |
$(LIBVIEW2DIR)/libview2.so \ |
257 |
$(LIBWIDGDIR)/libwidg.so \ |
|
150 | 258 |
$(LIBTOOLDIR)/libtool.so \ |
130 | 259 |
$(LIBBASIC2DIR)/libbasic2.so \ |
260 |
$(LIBBASIC3DIR)/libbasic3.so \ |
|
145 | 261 |
$(LIBHTMLDIR)/libhtml.so \ |
150 | 262 |
$(LIBWIDG2DIR)/libwidg2.so \ |
130 | 263 |
$(PERSDIR)/libdbase.so |
264 |
||
265 |
aix: |
|
162 | 266 |
@echo "making shared library linked smalltalk for aix ..." |
142 | 267 |
@$(MAKE) linkIt \ |
268 |
LIBOBJS="$(AIX_SHARED_LIBOBJS)" \ |
|
269 |
EXTRA_OBJ="$(EXTRA_OBJ)" \ |
|
270 |
EXTRA_LINK_OBJ="$(EXTRA_LINK_OBJ)" \ |
|
271 |
LIBLIST="$(LIBLIST)" \ |
|
162 | 272 |
LINK_LIBRUN=$(LINK_LIBDIR)librun.so \ |
142 | 273 |
LIBRUN=$(LIBRUNDIR)/librun.so |
130 | 274 |
|
132 | 275 |
aix_librun_only: |
276 |
@echo "making partial shared library linked smalltalk ..." |
|
277 |
@$(MAKE) linkIt LIBRUN=$(LIBRUNDIR)/librun.so |
|
278 |
||
101 | 279 |
forceStatic: |
280 |
(cd $(LIBBASICDIR) ; make libbasicInit.o) |
|
281 |
-rm $(LIBBASICDIR)/libbasic.o |
|
282 |
$(MAKE) linkIt LIBRUN="$(LIBRUNDIR)/*.o" LIBBASIC="$(LIBBASICDIR)/*.o" |
|
283 |
||
10 | 284 |
# |
285 |
# a "smaller" smalltalk (does not include development classes) |
|
286 |
# |
|
287 |
smalltalk_exec: |
|
24 | 288 |
-rm modulList.stc |
289 |
@$(MAKE) modulList.stc \ |
|
134 | 290 |
EXTRA_CLASSES="$(EXTRA_CLASSES) DebugView" \ |
291 |
EXTRA_OBJ="$(EXTRA_OBJ) $(LIBTOOLDIR)/DebugView$(BIN_O)" \ |
|
292 |
LIBLIST="$(FUNDAMENTAL_LIST)" |
|
15 | 293 |
@$(MAKE) smalltalk \ |
134 | 294 |
LIBLIST="$(FUNDAMENTAL_LIST)" \ |
295 |
EXTRA_CLASSES="$(EXTRA_CLASSES) DebugView" \ |
|
185 | 296 |
EXTRA_OBJ="$(EXTRA_OBJ) \ |
297 |
EXTRA_LINK_OBJ="$(EXTRA_LINK_OBJ)" \ |
|
142 | 298 |
$(LIBTOOLDIR)/DebugView$(BIN_O)" \ |
134 | 299 |
LIBOBJS="$(FUNDAMENTAL_LIB)" |
26 | 300 |
if [ ! -f binary/DebugView$(BIN_O) ]; then \ |
301 |
(cd binary ; ln -s ../../../libtool/DebugView.so .); \ |
|
302 |
fi |
|
7 | 303 |
|
24 | 304 |
$(LIBTOOLDIR)/DebugView.so: |
305 |
(cd $(LIBTOOLDIR) ; $(MAKE) DebugView.so) |
|
0 | 306 |
|
25 | 307 |
$(LIBTOOLDIR)/DebugView.o: |
308 |
(cd $(LIBTOOLDIR) ; $(MAKE) DebugView.o) |
|
309 |
||
310 |
$(LIBVIEWDIR)/XWorkstat.o: |
|
311 |
(cd $(LIBVIEWDIR) ; $(MAKE) XWorkstat.o) |
|
312 |
||
313 |
$(LIBVIEWDIR)/XWorkstat.so: |
|
314 |
(cd $(LIBVIEWDIR) ; $(MAKE) XWorkstat.so) |
|
315 |
||
316 |
$(LIBVIEWDIR)/GLXWorkstat.o: |
|
317 |
(cd $(LIBVIEWDIR) ; $(MAKE) GLXWorkstat.o) |
|
318 |
||
319 |
$(LIBVIEWDIR)/GLXWorkstat.so: |
|
320 |
(cd $(LIBVIEWDIR) ; $(MAKE) GLXWorkstat.so) |
|
321 |
||
322 |
$(LIBCOMPDIR)/ObjFLoader.o: |
|
323 |
(cd $(LIBCOMPDIR) ; $(MAKE) ObjFLoader.o) |
|
324 |
||
325 |
$(LIBCOMPDIR)/ObjFLoader.so: |
|
326 |
(cd $(LIBCOMPDIR) ; $(MAKE) ObjFLoader.so) |
|
327 |
||
178
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
328 |
$(LIBRUNDIR)/librun.a: |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
329 |
(cd $(LIBRUNDIR) ; $(MAKE) librun.a) |
7ab96c8246bd
added stx_static & stx_fullstatic support on shared lib systems (Linux-ELF)
Claus Gittinger <cg@exept.de>
parents:
176
diff
changeset
|
330 |
|
0 | 331 |
# |
332 |
# make list of classes for a standard smalltalk |
|
2 | 333 |
# (includes basic, view & widgets and Persistency) |
0 | 334 |
# |
7 | 335 |
BASICLIST: $(CLASSLISTS) |
336 |
-cat $(CLASSLISTS) > $(CLASSLIST) |
|
6 | 337 |
|
338 |
# |
|
27 | 339 |
# dont want these ttt-tempfile abbrevs to be included ... |
15 | 340 |
# |
16 | 341 |
abbrev.stc:: |
27 | 342 |
@-rm -f ttt*.* |
16 | 343 |
|
27 | 344 |
# |
345 |
# dont want local abbrevs to be included ... |
|
346 |
# |
|
15 | 347 |
collectAbbrev:: |
27 | 348 |
@-rm -f abbrev.stc |
112 | 349 |
-@if [ -d include ]; then \ |
130 | 350 |
if [ ! -f include/abbrev.stc ]; then \ |
351 |
(cd include; $(LNS) ../$(INCLUDE)/abbrev.stc . ); \ |
|
352 |
fi; \ |
|
112 | 353 |
fi |
354 |
||
355 |
collectAutoload:: |
|
356 |
@-rm -f autoloadList.stc |
|
357 |
-@if [ -d include ]; then \ |
|
130 | 358 |
if [ ! -f include/autoloadList.stc ]; then \ |
359 |
(cd include; $(LNS) ../$(INCLUDE)/autoloadList.stc . ); \ |
|
360 |
fi; \ |
|
112 | 361 |
fi |
15 | 362 |
|
82 | 363 |
classes:: |
364 |
-mkdir classes |
|
365 |
-for i in source/*.st; do \ |
|
130 | 366 |
stcomp -i stcomp.img $$i; \ |
82 | 367 |
done |
368 |
||
15 | 369 |
# |
0 | 370 |
# make a new source subdirectory |
6 | 371 |
# the source directory consists of sym-links to all .st files we find |
0 | 372 |
# |
373 |
newSource: |
|
374 |
-rm -rf source |
|
35 | 375 |
@-$(MAKE) sourceLink |
0 | 376 |
|
377 |
Source: source |
|
378 |
||
7 | 379 |
source: |
35 | 380 |
@-$(MAKE) sourceLink |
0 | 381 |
|
38 | 382 |
sourcelink:: sourceLink |
383 |
||
6 | 384 |
# |
7 | 385 |
# make a new include subdirectory and link to abbreviation file |
386 |
newInclude: |
|
387 |
-rm -rf include |
|
35 | 388 |
@-$(MAKE) includeLink |
7 | 389 |
|
38 | 390 |
includelink:: includeLink |
391 |
||
190 | 392 |
#includeLink: |
393 |
# @-rm -f ttt*.H |
|
394 |
# @-if [ ! -d include ]; then \ |
|
395 |
# mkdir include; \ |
|
396 |
# fi |
|
397 |
# @-if [ ! -r include/abbrev.stc ]; then \ |
|
398 |
# if [ -f $(INCLUDE)/abbrev.stc ]; then \ |
|
399 |
# echo "linking abbrev.stc ..."; \ |
|
400 |
# (cd include; $(LNS) ../$(INCLUDE)/abbrev.stc .); \ |
|
401 |
# else \ |
|
402 |
# echo "oops - no $(INCLUDE)/abbrev.stc"; \ |
|
403 |
# fi \ |
|
404 |
# fi |
|
405 |
# @-if [ ! -r include/liblist.stc ]; then \ |
|
406 |
# if [ -f $(INCLUDE)/liblist.stc ]; then \ |
|
407 |
# echo "linking liblist.stc ..."; \ |
|
408 |
# (cd include; $(LNS) ../$(INCLUDE)/liblist.stc .); \ |
|
409 |
# else \ |
|
410 |
# echo "oops - no $(INCLUDE)/liblist.stc"; \ |
|
411 |
# fi \ |
|
412 |
# fi |
|
413 |
# @-if [ ! -r include/symbols.stc ]; then \ |
|
414 |
# if [ -f $(INCLUDE)/symbols.stc ]; then \ |
|
415 |
# echo "linking symbols.stc ..."; \ |
|
416 |
# (cd include; $(LNS) ../$(INCLUDE)/symbols.stc .); \ |
|
417 |
# fi \ |
|
418 |
# fi |
|
419 |
# @-if [ ! -r include/autoloadList.stc ]; then \ |
|
420 |
# if [ -f $(INCLUDE)/autoloadList.stc ]; then \ |
|
421 |
# echo "linking autoloadList.stc ..."; \ |
|
422 |
# (cd include; $(LNS) ../$(INCLUDE)/autoloadList.stc .); \ |
|
423 |
# fi \ |
|
424 |
# fi |
|
425 |
# @-rm -f include/RCS include/CVS |
|
8 | 426 |
|
427 |
misc: examples |
|
428 |
||
429 |
examples: |
|
430 |
-mkdir examples examples/3D |
|
431 |
-(cd examples/3D; $(LNS) ../../$(TOP)/clients/GLdemos/*.data .) |
|
0 | 432 |
|
2 | 433 |
# |
434 |
# make a new binary subdirectory |
|
435 |
# (this is only useful on systems that support dynamic loading; |
|
436 |
# autoloaded classes will then be loaded from machine code files |
|
437 |
# instead of source) |
|
438 |
# |
|
0 | 439 |
newBinary: |
440 |
-rm -rf binary |
|
35 | 441 |
@-$(MAKE) binaryLink |
0 | 442 |
|
443 |
binary: |
|
35 | 444 |
@-$(MAKE) binaryLink |
0 | 445 |
|
38 | 446 |
binarylink:: binaryLink |
447 |
||
0 | 448 |
# |
449 |
# make a new bitmaps subdirectory |
|
2 | 450 |
# (simply collect the contents of all bitmap directories) |
0 | 451 |
# |
452 |
newBitmaps: |
|
453 |
-rm -rf bitmaps |
|
35 | 454 |
@-$(MAKE) bitmaps |
0 | 455 |
|
456 |
Bitmaps: bitmaps |
|
457 |
||
10 | 458 |
bitmaps: |
35 | 459 |
@-$(MAKE) bitmapLink |
0 | 460 |
|
38 | 461 |
bitmaplink:: bitmapLink |
462 |
||
2 | 463 |
# |
464 |
# clean out intermediate chunk |
|
465 |
# |
|
0 | 466 |
cleanjunk:: |
66
70bbef4d5737
Do not clean or clobber changes file.
Stefan Vogel <sv@exept.de>
parents:
51
diff
changeset
|
467 |
-rm -f a.out SymbolTable ttt main.c |
6 | 468 |
-rm -f classList.c fclassList.c nxclassList.c basicclassList.c |
469 |
-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
|
470 |
-rm -f modulList.stc modulList.c modulList.o |
16 | 471 |
-rm -f pers* pers2 data data2 data.boss tetris.scores |
0 | 472 |
|
26 | 473 |
cleanlinks: |
474 |
-rm -rf source bitmaps binaries resources examples include |
|
475 |
||
2 | 476 |
# |
477 |
# clean out all that is not needed to run smalltalk |
|
478 |
# |
|
0 | 479 |
clean:: |
66
70bbef4d5737
Do not clean or clobber changes file.
Stefan Vogel <sv@exept.de>
parents:
51
diff
changeset
|
480 |
-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
|
481 |
-rm -f modulList.stc modulList.c modulList.o |
11 | 482 |
-rm -f classList.stc classList.c classList.o |
0 | 483 |
-rm -f fclassList.stc fclassList.c |
484 |
-rm -f nxclassList.stc nxclassList.c |
|
6 | 485 |
-rm -f basicclassList.stc basicclassList.c |
486 |
-rm -f betaclassList.stc betaclassList.c |
|
2 | 487 |
-rm -f miniList.stc miniList.c |
488 |
-rm -f tinyList.stc tinyList.c |
|
16 | 489 |
-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
|
490 |
-rm -f st.img st2.img st.img.sav errorOutput |
25 | 491 |
-rm -f .stx*.mem |
124
65335ebbbc01
also remove modules in clobber
Claus Gittinger <cg@exept.de>
parents:
113
diff
changeset
|
492 |
-rm -rf modules stxtmp* |
0 | 493 |
|
2 | 494 |
# |
495 |
# clean out all that can be regenerated |
|
496 |
# |
|
0 | 497 |
clobber:: |
146 | 498 |
$(MAKE) removeLinkLibs |
67
734370f8d967
clean rule has to remove modulList
Claus Gittinger <cg@exept.de>
parents:
66
diff
changeset
|
499 |
-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
|
500 |
-rm -rf resources source binary bitmaps include examples |
172 | 501 |
-rm -f stx st.img st.img.sav |
502 |
-rm -f main.o symbols.h |
|
124
65335ebbbc01
also remove modules in clobber
Claus Gittinger <cg@exept.de>
parents:
113
diff
changeset
|
503 |
-rm -rf modules |
219 | 504 |
-rm -rf stxtmp_* |
0 | 505 |
|
506 |
# |
|
507 |
# make a new resources subdirectory |
|
508 |
# |
|
509 |
newResources: |
|
510 |
rm -rf resources |
|
190 | 511 |
@$(MAKE) resources styleLink |
0 | 512 |
|
513 |
resources: |
|
514 |
-mkdir resources |
|
32 | 515 |
@$(MAKE) resourceLink |
516 |
||
38 | 517 |
resourcelink: resourceLink |
518 |
||
190 | 519 |
#resourceLink: |
520 |
# @-if [ "`echo $(LIBBASICDIR)/resources/*`" != '$(LIBBASICDIR)/resources/*' ]; then \ |
|
521 |
# echo "linking resource files from $(LIBBASICDIR) ..."; \ |
|
522 |
# (cd resources; $(LNS) ../$(LIBBASICDIR)/resources/* .); \ |
|
523 |
# rm -f resources/RCS resources/CVS; \ |
|
524 |
# fi |
|
525 |
# @-if [ "`echo $(LIBVIEWDIR)/resources/*`" != '$(LIBVIEWDIR)/resources/*' ]; then \ |
|
526 |
# echo "linking resource files from $(LIBVIEWDIR) ..."; \ |
|
527 |
# (cd resources; $(LNS) ../$(LIBVIEWDIR)/resources/* .); \ |
|
528 |
# rm -f resources/RCS resources/CVS; \ |
|
529 |
# fi |
|
530 |
# @-if [ "`echo $(LIBVIEW2DIR)/resources/*`" != '$(LIBVIEW2DIR)/resources/*' ]; then \ |
|
531 |
# echo "linking resource files from $(LIBVIEW2DIR) ..."; \ |
|
532 |
# (cd resources; $(LNS) ../$(LIBVIEW2DIR)/resources/* .); \ |
|
533 |
# rm -f resources/RCS resources/CVS; \ |
|
534 |
# fi |
|
535 |
# @-if [ "`echo $(LIBWIDGDIR)/resources/*`" != '$(LIBWIDGDIR)/resources/*' ]; then \ |
|
536 |
# echo "linking resource files from $(LIBWIDGDIR) ..."; \ |
|
537 |
# (cd resources; $(LNS) ../$(LIBWIDGDIR)/resources/* .); \ |
|
538 |
# rm -f resources/RCS resources/CVS; \ |
|
539 |
# fi |
|
540 |
# @-if [ "`echo $(LIBWIDG2DIR)/resources/*`" != '$(LIBWIDG2DIR)/resources/*' ]; then \ |
|
541 |
# echo "linking resource files from $(LIBWIDG2DIR) ..."; \ |
|
542 |
# (cd resources; $(LNS) ../$(LIBWIDG2DIR)/resources/* .); \ |
|
543 |
# rm -f resources/RCS resources/CVS; \ |
|
544 |
# fi |
|
545 |
# @-if [ "`echo $(LIBWIDG3DIR)/resources/*`" != '$(LIBWIDG3DIR)/resources/*' ]; then \ |
|
546 |
# echo "linking resource files from $(LIBWIDG3DIR) ..."; \ |
|
547 |
# (cd resources; $(LNS) ../$(LIBWIDG3DIR)/resources/* .); \ |
|
548 |
# rm -f resources/RCS resources/CVS; \ |
|
549 |
# fi |
|
550 |
# @-if [ "`echo $(LIBTOOLDIR)/resources/*`" != '$(LIBTOOLDIR)/resources/*' ]; then \ |
|
551 |
# echo "linking resource files from $(LIBTOOLDIR) ..."; \ |
|
552 |
# (cd resources; $(LNS) ../$(LIBTOOLDIR)/resources/* .); \ |
|
553 |
# rm -f resources/RCS resources/CVS; \ |
|
554 |
# fi |
|
555 |
# @-if [ "`echo $(LIBTABLEDIR)/resources/*`" != '$(LIBTABLEDIR)/resources/*' ]; then \ |
|
556 |
# echo "linking resource files from $(LIBTABLEDIR) ..."; \ |
|
557 |
# (cd resources; $(LNS) ../$(LIBTABLEDIR)/resources/* .); \ |
|
558 |
# rm -f resources/RCS resources/CVS; \ |
|
559 |
# fi |
|
560 |
# @-if [ "`echo $(TOP)/fileIn/resources/*`" != '$(TOP)/fileIn/resources/*' ]; then \ |
|
561 |
# echo "linking resource files from $(TOP)/fileIn ..."; \ |
|
562 |
# (cd resources; $(LNS) ../$(TOP)/fileIn/resources/* .); \ |
|
563 |
# rm -f resources/RCS resources/CVS; \ |
|
564 |
# fi |
|
565 |
# @-if [ "`echo $(CLIENTDIR)/*/resources/*`" != '$(CLIENTDIR)/*/resources/*' ]; then \ |
|
566 |
# echo "linking resource files from $(CLIENTDIR) ..."; \ |
|
567 |
# (cd resources; $(LNS) ../$(CLIENTDIR)/*/resources/* .); \ |
|
568 |
# rm -f resources/RCS resources/CVS; \ |
|
569 |
# fi |
|
0 | 570 |
|
190 | 571 |
styles: styleLink |
572 |
#styles: resources |
|
573 |
# @-echo "linking style files from $(LIBVIEWDIR)/styles ..." |
|
574 |
# @-rm -f resources/*.style resources/*.common |
|
575 |
# @-(cd resources; $(LNS) ../$(LIBVIEWDIR)/styles/* .) |
|
576 |
# @rm -f resources/RCS resources/CVS |
|
0 | 577 |
|
248
46aa1483b74c
main.o depends upon symbols.stc
Claus Gittinger <cg@exept.de>
parents:
237
diff
changeset
|
578 |
main.o:: $(INCLUDE)/stc.h $(INCLUDE)/stcIntern.h Makefile $(INCLUDE)/symbols.stc symbols.h |
0 | 579 |
|
6 | 580 |
# |
581 |
# installation rules |
|
582 |
# |
|
0 | 583 |
|
6 | 584 |
install:: installThis |
585 |
||
586 |
# |
|
587 |
# install binary only |
|
588 |
# |
|
0 | 589 |
binInstall:: |
590 |
-mkdir $(DESTLIBDIR) |
|
591 |
-mkdir $(DESTBINDIR) |
|
592 |
$(INSTALL) smalltalk $(DESTBINDIR) |
|
593 |
-strip $(DESTBINDIR)/smalltalk |
|
594 |
||
6 | 595 |
# |
596 |
# install all local stuff |
|
0 | 597 |
# |
598 |
# notice the [x-y]* patterns; some unixes (at&t) dont like too many arguments ... |
|
599 |
# |
|
600 |
installThis:: |
|
601 |
-mkdir $(DESTLIBDIR) |
|
602 |
-mkdir $(DESTBINDIR) |
|
603 |
$(INSTALL) smalltalk $(DESTBINDIR) |
|
604 |
-strip $(DESTBINDIR)/smalltalk |
|
605 |
-mkdir $(DESTLIBDIR)/source |
|
606 |
-chmod a+rx $(DESTLIBDIR)/source |
|
607 |
-cp source/[A-G]* $(DESTLIBDIR)/source |
|
608 |
-cp source/[H-P]* $(DESTLIBDIR)/source |
|
609 |
-cp source/[Q-Z]* $(DESTLIBDIR)/source |
|
610 |
-chmod a+r $(DESTLIBDIR)/source/[A-G]* |
|
611 |
-chmod a+r $(DESTLIBDIR)/source/[H-P]* |
|
612 |
-chmod a+r $(DESTLIBDIR)/source/[Q-Z]* |
|
613 |
-mkdir $(DESTLIBDIR)/bitmaps |
|
614 |
-chmod a+rx $(DESTLIBDIR)/bitmaps |
|
615 |
-cp bitmaps/[A-I]* $(DESTLIBDIR)/bitmaps |
|
616 |
-cp bitmaps/[J-Z]* $(DESTLIBDIR)/bitmaps |
|
617 |
-cp bitmaps/[a-i]* $(DESTLIBDIR)/bitmaps |
|
618 |
-cp bitmaps/[j-z]* $(DESTLIBDIR)/bitmaps |
|
619 |
-chmod a+r $(DESTLIBDIR)/bitmaps/[A-I]* |
|
620 |
-chmod a+r $(DESTLIBDIR)/bitmaps/[J-Z]* |
|
621 |
-chmod a+r $(DESTLIBDIR)/bitmaps/[a-i]* |
|
622 |
-chmod a+r $(DESTLIBDIR)/bitmaps/[j-z]* |
|
623 |
-chmod a+rx $(DESTLIBDIR)/resources |
|
624 |
-mkdir $(DESTLIBDIR)/resources |
|
625 |
-cp resources/* $(DESTLIBDIR)/resources |
|
626 |
-chmod a+r $(DESTLIBDIR)/resources/*.rs |
|
627 |
-cp *.rc *.stc patches $(DESTLIBDIR) |
|
628 |
-chmod a+r $(DESTLIBDIR)/*.rc $(DESTLIBDIR)/*.stc $(DESTLIBDIR)/patches |
|
629 |
||
630 |
qinstall:: installThis |