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