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