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