author | Claus Gittinger <cg@exept.de> |
Tue, 20 Oct 2009 16:42:25 +0200 | |
changeset 12310 | 3a8e985b4625 |
parent 12214 | 96d417c20fb8 |
child 12333 | 736cae5edb2a |
permissions | -rw-r--r-- |
9526
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
1 |
" |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
2 |
COPYRIGHT (c) 2006 by eXept Software AG |
12095 | 3 |
All Rights Reserved |
9526
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
4 |
|
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
5 |
This software is furnished under a license and may be used |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
6 |
only in accordance with the terms of that license and with the |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
7 |
inclusion of the above copyright notice. This software may not |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
8 |
be provided or otherwise made available to, or used by, any |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
9 |
other person. No title to or ownership of the software is |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
10 |
hereby transferred. |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
11 |
" |
9671 | 12 |
"{ Package: 'stx:libbasic' }" |
9493 | 13 |
|
9568 | 14 |
ProjectDefinition subclass:#LibraryDefinition |
9616 | 15 |
instanceVariableNames:'' |
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
18 |
category:'System-Support-Projects' |
|
9493 | 19 |
! |
20 |
||
9568 | 21 |
!LibraryDefinition class methodsFor:'documentation'! |
9526
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
22 |
|
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
23 |
copyright |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
24 |
" |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
25 |
COPYRIGHT (c) 2006 by eXept Software AG |
12095 | 26 |
All Rights Reserved |
9526
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
27 |
|
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
28 |
This software is furnished under a license and may be used |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
29 |
only in accordance with the terms of that license and with the |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
30 |
inclusion of the above copyright notice. This software may not |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
31 |
be provided or otherwise made available to, or used by, any |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
32 |
other person. No title to or ownership of the software is |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
33 |
hereby transferred. |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
34 |
" |
6760ab786028
changed name from '..._Definition' to '...'
Claus Gittinger <cg@exept.de>
parents:
9517
diff
changeset
|
35 |
! ! |
9493 | 36 |
|
9999 | 37 |
!LibraryDefinition class methodsFor:'code generation'! |
38 |
||
39 |
forEachMethodsCodeToCompileDo:aTwoArgBlock ignoreOldDefinition:ignoreOldDefinition |
|
40 |
super forEachMethodsCodeToCompileDo:aTwoArgBlock ignoreOldDefinition:ignoreOldDefinition. |
|
41 |
||
42 |
"Created: / 10-08-2006 / 16:35:47 / cg" |
|
43 |
"Modified: / 18-08-2006 / 16:22:49 / cg" |
|
44 |
! ! |
|
45 |
||
11577
d9ad27e7ca5e
Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents:
11550
diff
changeset
|
46 |
!LibraryDefinition class methodsFor:'description - compilation'! |
d9ad27e7ca5e
Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents:
11550
diff
changeset
|
47 |
|
d9ad27e7ca5e
Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents:
11550
diff
changeset
|
48 |
primaryTarget |
d9ad27e7ca5e
Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents:
11550
diff
changeset
|
49 |
"the primary make target in Make.proto/bc.mak" |
d9ad27e7ca5e
Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents:
11550
diff
changeset
|
50 |
|
d9ad27e7ca5e
Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents:
11550
diff
changeset
|
51 |
^ 'classLibRule' |
d9ad27e7ca5e
Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents:
11550
diff
changeset
|
52 |
! ! |
d9ad27e7ca5e
Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents:
11550
diff
changeset
|
53 |
|
9576 | 54 |
!LibraryDefinition class methodsFor:'description - project information'! |
55 |
||
56 |
description |
|
57 |
"Returns a description string which will appear in nt.def / bc.def" |
|
58 |
||
59 |
self module = 'stx' ifTrue:[ |
|
12095 | 60 |
^ 'Smalltalk/X Class library' |
9576 | 61 |
]. |
62 |
||
9586 | 63 |
^ 'Class Library' |
9576 | 64 |
|
65 |
"Created: / 17-08-2006 / 20:52:16 / cg" |
|
9586 | 66 |
"Modified: / 18-08-2006 / 16:15:53 / cg" |
9847 | 67 |
! |
68 |
||
69 |
fileDescription |
|
10417 | 70 |
"Return a description string which will appear in nt.def / bc.def and the rc-file" |
9847 | 71 |
|
11550 | 72 |
^self description , ' (LIB)' |
9847 | 73 |
|
74 |
"Created: / 14-09-2006 / 10:55:23 / cg" |
|
9576 | 75 |
! ! |
76 |
||
9568 | 77 |
!LibraryDefinition class methodsFor:'file generation'! |
9493 | 78 |
|
9853 | 79 |
basicFileNamesToGenerate |
10865
59a7977261af
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10805
diff
changeset
|
80 |
"answer a dictionary (filename -> generator method) with all the files, that have to be generated for this |
59a7977261af
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10805
diff
changeset
|
81 |
package" |
59a7977261af
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10805
diff
changeset
|
82 |
|
59a7977261af
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10805
diff
changeset
|
83 |
|dict| |
9576 | 84 |
|
10865
59a7977261af
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10805
diff
changeset
|
85 |
dict := super basicFileNamesToGenerate. |
59a7977261af
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10805
diff
changeset
|
86 |
|
12095 | 87 |
dict |
88 |
at:'libInit.cc' put:#'generate_libInit_dot_cc'. |
|
10865
59a7977261af
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10805
diff
changeset
|
89 |
|
59a7977261af
Use dictionary to hold filename->generatorMethpd mapping
Stefan Vogel <sv@exept.de>
parents:
10805
diff
changeset
|
90 |
^ dict. |
9582 | 91 |
! |
92 |
||
9622 | 93 |
generateFile:filename |
94 |
filename = 'libInit.cc' ifTrue:[ |
|
12095 | 95 |
^ self generate_libInit_dot_cc |
9622 | 96 |
]. |
9832 | 97 |
((filename = 'lib.rc') or:[filename = self rcFilename]) ifTrue:[ |
12095 | 98 |
^ self generate_packageName_dot_rc |
9622 | 99 |
]. |
100 |
^ super generateFile:filename |
|
101 |
||
102 |
"Created: / 22-08-2006 / 18:36:24 / cg" |
|
9832 | 103 |
"Modified: / 07-09-2006 / 17:07:46 / cg" |
9622 | 104 |
! |
105 |
||
9582 | 106 |
generate_libInit_dot_cc |
12095 | 107 |
^ self replaceMappings: self libInit_dot_cc_mappings |
108 |
in: self libInit_dot_cc |
|
9582 | 109 |
|
9960
13b44d7b8f54
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9957
diff
changeset
|
110 |
" |
13b44d7b8f54
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9957
diff
changeset
|
111 |
bosch_dapasx_datenbasis generate_libInit_dot_cc |
13b44d7b8f54
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9957
diff
changeset
|
112 |
bosch_dapasx_application generate_libInit_dot_cc |
13b44d7b8f54
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9957
diff
changeset
|
113 |
" |
9582 | 114 |
|
115 |
"Created: / 08-08-2006 / 12:47:16 / fm" |
|
116 |
"Modified: / 09-08-2006 / 11:30:52 / fm" |
|
9960
13b44d7b8f54
also generate modules.c (precompiled-in init list for app)
Claus Gittinger <cg@exept.de>
parents:
9957
diff
changeset
|
117 |
"Modified: / 19-09-2006 / 22:41:40 / cg" |
9493 | 118 |
! ! |
119 |
||
9568 | 120 |
!LibraryDefinition class methodsFor:'file templates'! |
9493 | 121 |
|
122 |
bc_dot_def |
|
9576 | 123 |
"the template code for the bc.def file" |
9493 | 124 |
|
12095 | 125 |
^ |
9608 | 126 |
'LIBRARY %(LIBRARY_NAME) |
9493 | 127 |
DESCRIPTION %(DESCRIPTION) |
128 |
CODE PRELOAD MOVEABLE DISCARDABLE |
|
129 |
SEGMENTS |
|
130 |
INITCODE PRELOAD DISCARDABLE |
|
131 |
EXPORTS |
|
9590 | 132 |
__%(LIBRARY_NAME)_Init @1 |
9504 | 133 |
' |
9493 | 134 |
|
135 |
"Created: / 08-08-2006 / 12:26:58 / fm" |
|
136 |
"Modified: / 08-08-2006 / 19:32:27 / fm" |
|
9590 | 137 |
"Modified: / 18-08-2006 / 17:13:45 / cg" |
9493 | 138 |
! |
139 |
||
10305 | 140 |
bc_dot_mak |
10318
bef855ddbb59
bc.def - no longer generated it is now in rules\bc_dll.def or
Stefan Vogel <sv@exept.de>
parents:
10305
diff
changeset
|
141 |
"answer a template for the bc.mak makefile. |
bef855ddbb59
bc.def - no longer generated it is now in rules\bc_dll.def or
Stefan Vogel <sv@exept.de>
parents:
10305
diff
changeset
|
142 |
Any variable definition %(Variable) will be later replaced by the mapping. |
bef855ddbb59
bc.def - no longer generated it is now in rules\bc_dll.def or
Stefan Vogel <sv@exept.de>
parents:
10305
diff
changeset
|
143 |
$% characters have to be duplicated" |
10305 | 144 |
|
145 |
^ |
|
146 |
'# $','Header','$ |
|
147 |
# |
|
12095 | 148 |
# DO NOT EDIT |
10305 | 149 |
# automagically generated from the projectDefinition: ',self name,'. |
150 |
# |
|
151 |
# Warning: once you modify this file, do not rerun |
|
152 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
|
153 |
# |
|
154 |
# This file contains make rules for the win32 platform (using borland-bcc). |
|
155 |
# It shares common definitions with the unix-make in Make.spec. |
|
156 |
# The nt.mak supports the following targets: |
|
157 |
# bmake - compile all st-files to a classLib (dll) |
|
158 |
# bmake clean - clean all temp files |
|
159 |
# bmake clobber - clean all |
|
160 |
# |
|
161 |
# |
|
162 |
TOP=%(TOP) |
|
163 |
INCLUDE_TOP=$(TOP)\.. |
|
164 |
||
11941
56b21fa6c358
base address definition moved into a separate spec
Claus Gittinger <cg@exept.de>
parents:
11687
diff
changeset
|
165 |
%(ADDITIONAL_BASE_ADDRESS_DEFINITION) |
56b21fa6c358
base address definition moved into a separate spec
Claus Gittinger <cg@exept.de>
parents:
11687
diff
changeset
|
166 |
|
10305 | 167 |
!!INCLUDE $(TOP)\rules\stdHeader_bc |
168 |
||
169 |
!!INCLUDE Make.spec |
|
170 |
||
171 |
LIBNAME=%(LIBRARY_NAME) |
|
172 |
RESFILES=%(RESFILENAME) |
|
10536
d1da7d71bcf5
Put additionalDefinitions before localIncludes
Stefan Vogel <sv@exept.de>
parents:
10417
diff
changeset
|
173 |
|
d1da7d71bcf5
Put additionalDefinitions before localIncludes
Stefan Vogel <sv@exept.de>
parents:
10417
diff
changeset
|
174 |
%(ADDITIONAL_DEFINITIONS) |
d1da7d71bcf5
Put additionalDefinitions before localIncludes
Stefan Vogel <sv@exept.de>
parents:
10417
diff
changeset
|
175 |
|
10305 | 176 |
LOCALINCLUDES=%(LOCAL_INCLUDES) |
10980 | 177 |
LOCALDEFINES=%(LOCAL_DEFINES) |
10305 | 178 |
|
179 |
STCLOCALOPT=-package=$(PACKAGE) -I. $(LOCALINCLUDES) %(HEADEROUTPUTARG) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) %(COMMONSYMFLAG) -varPrefix=$(LIBNAME) |
|
180 |
LOCALLIBS=%(ADDITIONAL_LINK_LIBRARIES) |
|
181 |
||
182 |
OBJS= $(COMMON_OBJS) $(WIN32_OBJS) |
|
183 |
||
11577
d9ad27e7ca5e
Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents:
11550
diff
changeset
|
184 |
ALL:: %(ADDITIONAL_TARGETS) %(PRIMARY_TARGET) |
d9ad27e7ca5e
Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents:
11550
diff
changeset
|
185 |
|
12152
9d03dd3552a0
changed: classLibRule to include OUTDIR.
Claus Gittinger <cg@exept.de>
parents:
12095
diff
changeset
|
186 |
classLibRule: $(OUTDIR) $(OUTDIR)$(LIBNAME).dll |
10305 | 187 |
|
188 |
!!INCLUDE $(TOP)\rules\stdRules_bc |
|
189 |
||
11155
c816b5f0f90b
prereq rule also for libraries
Claus Gittinger <cg@exept.de>
parents:
10980
diff
changeset
|
190 |
# build all prerequisite packages for this package |
c816b5f0f90b
prereq rule also for libraries
Claus Gittinger <cg@exept.de>
parents:
10980
diff
changeset
|
191 |
prereq: |
c816b5f0f90b
prereq rule also for libraries
Claus Gittinger <cg@exept.de>
parents:
10980
diff
changeset
|
192 |
%(MAKE_PREREQUISITES) |
c816b5f0f90b
prereq rule also for libraries
Claus Gittinger <cg@exept.de>
parents:
10980
diff
changeset
|
193 |
|
10305 | 194 |
%(ADDITIONAL_RULES) |
195 |
||
196 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
|
197 |
%(DEPENDENCIES) |
|
198 |
# ENDMAKEDEPEND --- do not remove this line |
|
199 |
' |
|
200 |
||
201 |
"Created: / 09-08-2006 / 11:44:20 / fm" |
|
202 |
"Modified: / 09-08-2006 / 19:59:32 / fm" |
|
203 |
"Modified: / 14-09-2006 / 15:48:18 / cg" |
|
204 |
! |
|
205 |
||
9493 | 206 |
extensionLine_libInit_dot_cc |
207 |
||
208 |
^'_%(LIBRARY_NAME)_extensions_Init(pass,__pRT__,snd);' |
|
209 |
||
210 |
"Created: / 08-08-2006 / 15:48:56 / fm" |
|
211 |
"Modified: / 08-08-2006 / 19:32:33 / fm" |
|
212 |
! |
|
213 |
||
214 |
libInit_dot_cc |
|
9576 | 215 |
"the template code for the libInit.cc file" |
9493 | 216 |
|
12095 | 217 |
^ |
9493 | 218 |
'/* |
9576 | 219 |
* $','Header','$ |
220 |
* |
|
12095 | 221 |
* DO NOT EDIT |
9576 | 222 |
* automagically generated from the projectDefinition: ',self name,'. |
9493 | 223 |
*/ |
224 |
#define __INDIRECTVMINITCALLS__ |
|
10377 | 225 |
#include <stc.h> |
10332
5fe4d84d78fe
Add DLL_EXPORT to libInit_dot_cc
Stefan Vogel <sv@exept.de>
parents:
10318
diff
changeset
|
226 |
|
9493 | 227 |
#ifdef WIN32 |
228 |
# pragma codeseg INITCODE "INITCODE" |
|
12095 | 229 |
#endif |
10332
5fe4d84d78fe
Add DLL_EXPORT to libInit_dot_cc
Stefan Vogel <sv@exept.de>
parents:
10318
diff
changeset
|
230 |
|
5fe4d84d78fe
Add DLL_EXPORT to libInit_dot_cc
Stefan Vogel <sv@exept.de>
parents:
10318
diff
changeset
|
231 |
#if defined(INIT_TEXT_SECTION) || defined(DLL_EXPORT) |
5fe4d84d78fe
Add DLL_EXPORT to libInit_dot_cc
Stefan Vogel <sv@exept.de>
parents:
10318
diff
changeset
|
232 |
DLL_EXPORT void _%(LIBRARY_NAME)_Init() INIT_TEXT_SECTION; |
9493 | 233 |
#endif |
10332
5fe4d84d78fe
Add DLL_EXPORT to libInit_dot_cc
Stefan Vogel <sv@exept.de>
parents:
10318
diff
changeset
|
234 |
|
9493 | 235 |
void _%(LIBRARY_NAME)_Init(pass, __pRT__, snd) |
236 |
OBJ snd; struct __vmData__ *__pRT__; { |
|
237 |
__BEGIN_PACKAGE2__("%(LIBRARY_NAME)", _%(LIBRARY_NAME)_Init, "%(PACKAGE)"); |
|
238 |
%(CLASSES) |
|
239 |
%(EXTENSION) |
|
240 |
__END_PACKAGE__(); |
|
9902
74fab44fab6e
Add newline at end of libInit.cc
Stefan Vogel <sv@exept.de>
parents:
9899
diff
changeset
|
241 |
} |
74fab44fab6e
Add newline at end of libInit.cc
Stefan Vogel <sv@exept.de>
parents:
9899
diff
changeset
|
242 |
' |
9493 | 243 |
|
244 |
"Created: / 08-08-2006 / 12:40:45 / fm" |
|
245 |
"Modified: / 08-08-2006 / 19:33:01 / fm" |
|
9576 | 246 |
"Modified: / 18-08-2006 / 12:57:02 / cg" |
247 |
! |
|
248 |
||
9493 | 249 |
make_dot_proto |
250 |
||
12024 | 251 |
^ |
9576 | 252 |
'# $','Header','$ |
253 |
# |
|
12024 | 254 |
# DO NOT EDIT |
9576 | 255 |
# automagically generated from the projectDefinition: ',self name,'. |
256 |
# |
|
9493 | 257 |
# Warning: once you modify this file, do not rerun |
9576 | 258 |
# stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
9493 | 259 |
# |
260 |
# The Makefile as generated by this Make.proto supports the following targets: |
|
261 |
# make - compile all st-files to a classLib |
|
262 |
# make clean - clean all temp files |
|
263 |
# make clobber - clean all |
|
9576 | 264 |
# |
265 |
# This file contains definitions for Unix based platforms. |
|
9851 | 266 |
# It shares common definitions with the win32-make in Make.spec. |
9493 | 267 |
|
268 |
# |
|
269 |
# position (of this package) in directory hierarchy: |
|
270 |
# (must point to ST/X top directory, for tools and includes) |
|
271 |
TOP=%(TOP) |
|
9879 | 272 |
INCLUDE_TOP=$(TOP)/.. |
9493 | 273 |
|
274 |
# subdirectories where targets are to be made: |
|
275 |
SUBDIRS=%(SUBDIRECTORIES) |
|
276 |
||
277 |
||
278 |
# subdirectories where Makefiles are to be made: |
|
279 |
# (only define if different from SUBDIRS) |
|
280 |
# ALLSUBDIRS= |
|
281 |
||
11155
c816b5f0f90b
prereq rule also for libraries
Claus Gittinger <cg@exept.de>
parents:
10980
diff
changeset
|
282 |
REQUIRED_SUPPORT_DIRS=%(REQUIRED_SUPPORT_DIRS) |
9493 | 283 |
|
12024 | 284 |
# if your embedded C code requires any system includes, |
285 |
# add the path(es) here:, |
|
9493 | 286 |
# ********** OPTIONAL: MODIFY the next lines *** |
287 |
# LOCALINCLUDES=-Ifoo -Ibar |
|
288 |
LOCALINCLUDES=%(LOCAL_INCLUDES) |
|
289 |
||
290 |
||
12024 | 291 |
# if you need any additional defines for embedded C code, |
292 |
# add them here:, |
|
9493 | 293 |
# ********** OPTIONAL: MODIFY the next lines *** |
294 |
# LOCALDEFINES=-Dfoo -Dbar -DDEBUG |
|
295 |
LOCALDEFINES=%(LOCAL_DEFINES) |
|
296 |
||
9818 | 297 |
LIBNAME=%(LIBRARY_NAME) |
9613 | 298 |
STCLOCALOPT=''-package=$(PACKAGE)'' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) %(HEADEROUTPUTARG) %(COMMONSYMFLAG) -varPrefix=$(LIBNAME) |
9493 | 299 |
|
300 |
||
301 |
# ********** OPTIONAL: MODIFY the next line *** |
|
302 |
# additional C-libraries that should be pre-linked with the class-objects |
|
9734 | 303 |
LD_OBJ_LIBS=%(ADDITIONAL_LINK_LIBRARIES) |
9971
57890631d67a
Allow shared libraries to be defined for a class lib (needed for liboracle)
Stefan Vogel <sv@exept.de>
parents:
9960
diff
changeset
|
304 |
LOCAL_SHARED_LIBS=%(ADDITIONAL_SHARED_LINK_LIBRARIES) |
9493 | 305 |
|
306 |
||
307 |
# ********** OPTIONAL: MODIFY the next line *** |
|
308 |
# additional C targets or libraries should be added below |
|
309 |
LOCAL_EXTRA_TARGETS= |
|
310 |
||
9606 | 311 |
OBJS= $(COMMON_OBJS) $(UNIX_OBJS) |
312 |
||
9626 | 313 |
%(ADDITIONAL_DEFINITIONS) |
314 |
||
11577
d9ad27e7ca5e
Allow to define primary make target (needed, if sub.makes have to be performed -
Stefan Vogel <sv@exept.de>
parents:
11550
diff
changeset
|
315 |
all:: preMake %(PRIMARY_TARGET) postMake |
9493 | 316 |
|
12024 | 317 |
pre_objs:: %(ADDITIONAL_TARGETS) %(ADDITIONAL_TARGETS_SVN) |
9626 | 318 |
|
319 |
%(ADDITIONAL_RULES) |
|
9493 | 320 |
|
12024 | 321 |
%(ADDITIONAL_RULES_SVN) |
322 |
||
9493 | 323 |
# add more install actions here |
324 |
install:: |
|
325 |
||
326 |
# add more install actions for aux-files (resources) here |
|
327 |
installAux:: |
|
328 |
||
329 |
# add more preMake actions here |
|
330 |
preMake:: |
|
331 |
||
332 |
# add more postMake actions here |
|
333 |
postMake:: cleanjunk |
|
334 |
||
11155
c816b5f0f90b
prereq rule also for libraries
Claus Gittinger <cg@exept.de>
parents:
10980
diff
changeset
|
335 |
prereq: $(REQUIRED_SUPPORT_DIRS) |
c816b5f0f90b
prereq rule also for libraries
Claus Gittinger <cg@exept.de>
parents:
10980
diff
changeset
|
336 |
%(MAKE_PREREQUISITES) |
c816b5f0f90b
prereq rule also for libraries
Claus Gittinger <cg@exept.de>
parents:
10980
diff
changeset
|
337 |
|
9493 | 338 |
cleanjunk:: |
339 |
||
340 |
clean:: |
|
9576 | 341 |
%(TAB)-rm -f *.o *.H |
9493 | 342 |
|
10805
92df6c9281f9
Fix prereq: definition in Make.proto
Stefan Vogel <sv@exept.de>
parents:
10536
diff
changeset
|
343 |
clobber:: clean |
9576 | 344 |
%(TAB)-rm -f *.so *.dll |
9493 | 345 |
|
346 |
', |
|
347 |
" |
|
348 |
$(INSTALLBASE):: |
|
9576 | 349 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 350 |
|
351 |
$(INSTALLBASE)/packages:: $(INSTALLBASE) |
|
9576 | 352 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 353 |
|
354 |
$(INSTALLBASE)/packages/$(MODULE):: $(INSTALLBASE)/packages |
|
9576 | 355 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 356 |
|
357 |
$(INSTALLBASE)/packages/$(MODULE)/dapasx:: $(INSTALLBASE)/packages/$(MODULE) |
|
9576 | 358 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 359 |
|
360 |
$(INSTALLBASE)/packages/$(MODULE)/dapasx/interactiver_editor:: $(INSTALLBASE)/packages/$(MODULE)/dapasx |
|
9576 | 361 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 362 |
|
363 |
$(INSTALLBASE)/packages/$(MODULE)/$(MODULE_DIR):: $(INSTALLBASE)/packages/$(MODULE) |
|
9576 | 364 |
%(TAB)@test -d $@ || mkdir $@ |
9493 | 365 |
" |
366 |
' |
|
367 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
|
9851 | 368 |
%(DEPENDENCIES) |
9493 | 369 |
# ENDMAKEDEPEND --- do not remove this line |
370 |
||
371 |
' |
|
372 |
||
373 |
"Created: / 08-08-2006 / 20:45:36 / fm" |
|
374 |
"Modified: / 09-08-2006 / 16:50:23 / fm" |
|
9879 | 375 |
"Modified: / 14-09-2006 / 15:48:02 / cg" |
12024 | 376 |
"Modified: / 24-06-2009 / 21:39:29 / Jan Vrany <vranyj1@fel.cvut.cz>" |
9493 | 377 |
! |
378 |
||
10305 | 379 |
vc_dot_def |
9493 | 380 |
|
381 |
^ |
|
382 |
'LIBRARY %(LIBRARY_NAME) |
|
383 |
DESCRIPTION %(DESCRIPTION) |
|
384 |
VERSION %(VERSION_NUMBER) |
|
12095 | 385 |
CODE EXECUTE READ |
9493 | 386 |
DATA READ WRITE |
387 |
SECTIONS |
|
12095 | 388 |
INITCODE READ EXECUTE |
9493 | 389 |
INITDATA READ WRITE |
12095 | 390 |
EXPORTS |
9493 | 391 |
_%(LIBRARY_NAME)_Init @1 |
392 |
IMPORTS' |
|
393 |
||
394 |
"Modified: / 08-08-2006 / 19:33:14 / fm" |
|
395 |
! ! |
|
396 |
||
9568 | 397 |
!LibraryDefinition class methodsFor:'mappings'! |
9493 | 398 |
|
10305 | 399 |
bc_dot_mak_mappings |
400 |
|d resFileName| |
|
401 |
||
402 |
resFileName := (self package copyFrom:(self package lastIndexOfAny:':/')+1),'.res'. |
|
403 |
||
404 |
d := super bc_dot_mak_mappings. |
|
405 |
d |
|
12095 | 406 |
at: 'LIBRARY_NAME' put: ( self libraryName ); |
407 |
at: 'COMMONSYMFLAG' put: (self commonSymbolsFlag); |
|
408 |
at: 'HEADEROUTPUTARG' put: (self headerFileOutputArg); |
|
409 |
at: 'RESFILENAME' put: resFileName; |
|
410 |
at: 'DEPENDENCIES' put: (self generateDependencies_win32); |
|
411 |
yourself. |
|
10305 | 412 |
^ d. |
413 |
||
414 |
"Created: / 09-08-2006 / 11:44:36 / fm" |
|
415 |
"Modified: / 09-08-2006 / 20:00:01 / fm" |
|
416 |
"Modified: / 14-09-2006 / 18:58:15 / cg" |
|
417 |
! |
|
418 |
||
9493 | 419 |
extensionLine_libInit_dot_cc_mappings |
420 |
||
12095 | 421 |
^Dictionary new |
9885 | 422 |
at: 'LIBRARY_NAME' put: ( self st2c:(self package copy asString replaceAny:':/' with:$_) ); |
9493 | 423 |
yourself |
424 |
||
425 |
"Created: / 09-08-2006 / 11:19:59 / fm" |
|
9885 | 426 |
"Modified: / 14-09-2006 / 18:56:26 / cg" |
9493 | 427 |
! |
428 |
||
429 |
libInit_dot_cc_mappings |
|
430 |
||
431 |
^Dictionary new |
|
9885 | 432 |
at: 'LIBRARY_NAME' put: (self libraryName); |
433 |
at: 'PACKAGE' put: (self package); |
|
434 |
at: 'CLASSES' put: (self generateClassLines_libInit_dot_cc); |
|
435 |
at: 'EXTENSION' put: (self generateExtensionLine_libInit_dot_cc); |
|
9493 | 436 |
|
437 |
yourself |
|
438 |
||
439 |
"Created: / 09-08-2006 / 11:20:24 / fm" |
|
9543 | 440 |
"Modified: / 16-08-2006 / 18:19:03 / User" |
9885 | 441 |
"Modified: / 14-09-2006 / 18:56:42 / cg" |
9576 | 442 |
! |
443 |
||
10305 | 444 |
vc_dot_def_mappings |
9493 | 445 |
|
446 |
^Dictionary new |
|
9885 | 447 |
at: 'LIBRARY_NAME' put: (self libraryName); |
448 |
at: 'DESCRIPTION' put: (self description asString storeString); |
|
449 |
at: 'VERSION_NUMBER' put: (self versionNumber); |
|
9493 | 450 |
yourself |
451 |
||
452 |
"Created: / 09-08-2006 / 11:21:21 / fm" |
|
9885 | 453 |
"Modified: / 14-09-2006 / 18:58:07 / cg" |
9493 | 454 |
! ! |
455 |
||
9568 | 456 |
!LibraryDefinition class methodsFor:'mappings support'! |
9493 | 457 |
|
9576 | 458 |
commonSymbolsFlag |
459 |
"some libraries are compiled with COMMONSYMBOLS - |
|
460 |
This saves a lot of space in the generated dll/so files; |
|
461 |
However, it also requires the librun to be rebuilt, whenever one of |
|
462 |
the commonSymbols-libs changes. |
|
463 |
Therefore, NEVER do this for end-user or application libraries; |
|
9632 | 464 |
ONLY do it for a subset of the predefined, eXept-provided standard stx libraries" |
9493 | 465 |
|
9576 | 466 |
( |
12095 | 467 |
#( |
468 |
'stx:libbasic' 'stx:libview' 'stx:libtool' |
|
469 |
'stx:libbasic2' 'stx:libview2' 'stx:libtool2' |
|
470 |
'stx:libbasic3' 'stx:libwidg' 'stx:libhtml' |
|
471 |
'stx:libcomp' 'stx:libwidg2' 'stx:libui' |
|
472 |
'stx:libboss' 'stx:libdb' |
|
473 |
) |
|
9576 | 474 |
includes:self package) ifTrue:[ |
12095 | 475 |
^ '$(COMMONSYMBOLS)' |
9576 | 476 |
]. |
477 |
^ '' |
|
9547 | 478 |
|
9576 | 479 |
"Created: / 18-08-2006 / 13:01:52 / cg" |
9632 | 480 |
"Modified: / 23-08-2006 / 09:48:11 / cg" |
9576 | 481 |
! |
482 |
||
9493 | 483 |
generateExtensionLine_libInit_dot_cc |
9576 | 484 |
|mappings| |
9493 | 485 |
|
12095 | 486 |
^self hasExtensionMethods |
487 |
ifFalse:[''] |
|
488 |
ifTrue:[ |
|
489 |
mappings := self extensionLine_libInit_dot_cc_mappings. |
|
490 |
self replaceMappings: mappings in: self extensionLine_libInit_dot_cc.] |
|
9576 | 491 |
|
492 |
" |
|
493 |
DapasXProject generateExtensionLine_libInit_dot_cc |
|
494 |
DapasX_Datenbasis generateExtensionLine_libInit_dot_cc |
|
495 |
" |
|
9493 | 496 |
|
497 |
"Created: / 09-08-2006 / 11:23:34 / fm" |
|
9851 | 498 |
"Modified: / 14-09-2006 / 14:19:59 / cg" |
9493 | 499 |
! ! |
500 |
||
12087 | 501 |
!LibraryDefinition class methodsFor:'misc ui support'! |
502 |
||
503 |
iconInBrowserSymbol |
|
504 |
<resource: #programImage> |
|
505 |
||
506 |
self theNonMetaclass isLibraryDefinition ifTrue:[^ #libraryDefinitionClassIcon ]. |
|
507 |
^ super iconInBrowserSymbol |
|
508 |
||
509 |
"/ (c == LibraryDefinition) ifTrue:[ |
|
510 |
"/ aClass ~~ LibraryDefinition ifTrue:[ |
|
511 |
"/ ^ self packageIconSmall |
|
512 |
"/ ]. |
|
513 |
"/ ]. |
|
514 |
! ! |
|
515 |
||
11550 | 516 |
!LibraryDefinition class methodsFor:'obsolete'! |
517 |
||
518 |
lib_dot_rc |
|
519 |
<resource: #obsolete> |
|
520 |
||
12095 | 521 |
^ |
11550 | 522 |
'/*------------------------------------------------------------------------ |
12095 | 523 |
* $','Header','$ |
11550 | 524 |
* |
12095 | 525 |
* DO NOT EDIT |
11550 | 526 |
* automagically generated from the projectDefinition: ',self name,'. |
527 |
*------------------------------------------------------------------------*/ |
|
528 |
||
529 |
// #if (__BORLANDC__ < 0x0550) |
|
530 |
// #include <ver.h> |
|
531 |
// #endif |
|
532 |
||
533 |
VS_VERSION_INFO VERSIONINFO |
|
534 |
FILEVERSION %(FILEVERSION) |
|
535 |
PRODUCTVERSION %(PRODUCTVERSION) |
|
536 |
FILEFLAGSMASK VS_FF_DEBUG | VS_FF_PRERELEASE |
|
537 |
FILEFLAGS VS_FF_PRERELEASE | VS_FF_SPECIALBUILD |
|
538 |
FILEOS VOS_NT_WINDOWS32 |
|
539 |
FILETYPE %(FILETYPE) |
|
540 |
FILESUBTYPE VS_USER_DEFINED |
|
541 |
||
542 |
BEGIN |
|
543 |
BLOCK "StringFileInfo" |
|
544 |
BEGIN |
|
545 |
BLOCK "040904E4" |
|
546 |
BEGIN |
|
547 |
VALUE "CompanyName", %(COMPANYNAME) |
|
548 |
VALUE "FileDescription", "Smalltalk/X Additional Developer Basic Classes Library\0" |
|
549 |
VALUE "FileVersion", "5.2.8.1\0" |
|
550 |
VALUE "InternalName", "libbasic3\0" |
|
551 |
VALUE "LegalCopyright", "Copyright eXept Software AG 1998-2006\0" |
|
552 |
VALUE "ProductName", "Smalltalk/X\0" |
|
553 |
VALUE "ProductVersion", "5.2.8.1\0" |
|
554 |
END |
|
555 |
||
556 |
END |
|
557 |
||
558 |
BLOCK "VarFileInfo" |
|
559 |
BEGIN // Language | Translation |
|
560 |
VALUE "Translation", 0x409, 0x4E4 // U.S. English, Windows Multilingual |
|
561 |
END |
|
562 |
END |
|
563 |
' |
|
564 |
||
565 |
"Created: / 17-08-2006 / 19:37:50 / cg" |
|
566 |
"Modified: / 18-08-2006 / 12:57:09 / cg" |
|
567 |
! ! |
|
568 |
||
9812 | 569 |
!LibraryDefinition class methodsFor:'queries'! |
570 |
||
571 |
canHaveExtensions |
|
572 |
"return true, if this class allows extensions from other packages. |
|
573 |
Private classes, namespaces and projectDefinitions dont allow this" |
|
574 |
||
575 |
^ self == ApplicationDefinition |
|
576 |
||
577 |
" |
|
578 |
Smalltalk allClasses select:[:each | each canHaveExtensions not] |
|
579 |
" |
|
580 |
||
581 |
"Created: / 30-08-2006 / 15:29:53 / cg" |
|
582 |
! ! |
|
583 |
||
9568 | 584 |
!LibraryDefinition class methodsFor:'sanity checks'! |
9493 | 585 |
|
586 |
searchForInconsistencies |
|
587 |
self searchForNeverCompiledSuperclasses. |
|
588 |
||
589 |
" |
|
590 |
self searchForInconsistencies |
|
12095 | 591 |
DapasX_Datenbasis searchForInconsistencies |
9493 | 592 |
" |
593 |
||
594 |
"Created: / 09-08-2006 / 16:30:46 / fm" |
|
595 |
! |
|
596 |
||
597 |
searchForNeverCompiledSuperclasses |
|
12095 | 598 |
self compiled_classesDo:[:includedClass | |
12214
96d417c20fb8
Project noProjectID -> PackageId noProjectID
Claus Gittinger <cg@exept.de>
parents:
12152
diff
changeset
|
599 |
includedClass allSuperclassesDo:[:eachSuperClass | |
96d417c20fb8
Project noProjectID -> PackageId noProjectID
Claus Gittinger <cg@exept.de>
parents:
12152
diff
changeset
|
600 |
eachSuperClass package == PackageId noProjectID ifTrue:[ |
96d417c20fb8
Project noProjectID -> PackageId noProjectID
Claus Gittinger <cg@exept.de>
parents:
12152
diff
changeset
|
601 |
self inconsistency:'uncompiled superclass: ' , eachSuperClass name |
96d417c20fb8
Project noProjectID -> PackageId noProjectID
Claus Gittinger <cg@exept.de>
parents:
12152
diff
changeset
|
602 |
]. |
96d417c20fb8
Project noProjectID -> PackageId noProjectID
Claus Gittinger <cg@exept.de>
parents:
12152
diff
changeset
|
603 |
] |
9493 | 604 |
]. |
605 |
||
606 |
" |
|
607 |
self searchForNeverCompiledSuperclasses |
|
12095 | 608 |
DapasX_Datenbasis searchForNeverCompiledSuperclasses |
9493 | 609 |
" |
610 |
||
611 |
"Created: / 09-08-2006 / 16:31:54 / fm" |
|
612 |
! ! |
|
613 |
||
9568 | 614 |
!LibraryDefinition class methodsFor:'testing'! |
9558 | 615 |
|
12310
3a8e985b4625
added: #isConsoleApplication
Claus Gittinger <cg@exept.de>
parents:
12214
diff
changeset
|
616 |
isAbstract |
3a8e985b4625
added: #isConsoleApplication
Claus Gittinger <cg@exept.de>
parents:
12214
diff
changeset
|
617 |
^ self == LibraryDefinition |
3a8e985b4625
added: #isConsoleApplication
Claus Gittinger <cg@exept.de>
parents:
12214
diff
changeset
|
618 |
! |
3a8e985b4625
added: #isConsoleApplication
Claus Gittinger <cg@exept.de>
parents:
12214
diff
changeset
|
619 |
|
9666 | 620 |
isLibraryDefinition |
621 |
^ self ~~ LibraryDefinition |
|
622 |
||
623 |
" |
|
624 |
stx_libboss isLibraryDefinition |
|
625 |
ProjectDefinition isLibraryDefinition |
|
626 |
LibraryDefinition isLibraryDefinition |
|
627 |
" |
|
628 |
||
629 |
"Created: / 23-08-2006 / 15:17:50 / cg" |
|
630 |
! |
|
631 |
||
9558 | 632 |
isProjectDefinition |
9611 | 633 |
^ self ~~ LibraryDefinition |
9558 | 634 |
|
9612 | 635 |
" |
636 |
stx_libboss isProjectDefinition |
|
637 |
ProjectDefinition isProjectDefinition |
|
638 |
" |
|
639 |
||
9558 | 640 |
"Created: / 17-08-2006 / 14:11:46 / cg" |
9612 | 641 |
"Modified: / 21-08-2006 / 15:50:13 / cg" |
9558 | 642 |
! ! |
643 |
||
9568 | 644 |
!LibraryDefinition class methodsFor:'documentation'! |
9493 | 645 |
|
646 |
version |
|
12310
3a8e985b4625
added: #isConsoleApplication
Claus Gittinger <cg@exept.de>
parents:
12214
diff
changeset
|
647 |
^ '$Header: /cvs/stx/stx/libbasic/LibraryDefinition.st,v 1.94 2009-10-20 14:42:25 cg Exp $' |
12087 | 648 |
! |
649 |
||
650 |
version_CVS |
|
12310
3a8e985b4625
added: #isConsoleApplication
Claus Gittinger <cg@exept.de>
parents:
12214
diff
changeset
|
651 |
^ '$Header: /cvs/stx/stx/libbasic/LibraryDefinition.st,v 1.94 2009-10-20 14:42:25 cg Exp $' |
9493 | 652 |
! ! |