232 "Created: / 08-08-2006 / 12:40:45 / fm" |
232 "Created: / 08-08-2006 / 12:40:45 / fm" |
233 "Modified: / 08-08-2006 / 19:33:01 / fm" |
233 "Modified: / 08-08-2006 / 19:33:01 / fm" |
234 "Modified: / 18-08-2006 / 12:57:02 / cg" |
234 "Modified: / 18-08-2006 / 12:57:02 / cg" |
235 ! |
235 ! |
236 |
236 |
|
237 make_dot_proto |
|
238 |
|
239 ^ |
|
240 '# $','Header','$ |
|
241 # |
|
242 # DO NOT EDIT |
|
243 # automagically generated from the projectDefinition: ',self name,'. |
|
244 # |
|
245 # Warning: once you modify this file, do not rerun |
|
246 # stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
|
247 # |
|
248 # The Makefile as generated by this Make.proto supports the following targets: |
|
249 # make - compile all st-files to a classLib |
|
250 # make clean - clean all temp files |
|
251 # make clobber - clean all |
|
252 # |
|
253 # This file contains definitions for Unix based platforms. |
|
254 # It shares common definitions with the win32-make in Make.spec. |
|
255 |
|
256 # |
|
257 # position (of this package) in directory hierarchy: |
|
258 # (must point to ST/X top directory, for tools and includes) |
|
259 TOP=%(TOP) |
|
260 INCLUDE_TOP=$(TOP)/.. |
|
261 |
|
262 # subdirectories where targets are to be made: |
|
263 SUBDIRS=%(SUBDIRECTORIES) |
|
264 |
|
265 |
|
266 # subdirectories where Makefiles are to be made: |
|
267 # (only define if different from SUBDIRS) |
|
268 # ALLSUBDIRS= |
|
269 |
|
270 REQUIRED_SUPPORT_DIRS=%(REQUIRED_SUPPORT_DIRS) |
|
271 |
|
272 # if your embedded C code requires any system includes, |
|
273 # add the path(es) here:, |
|
274 # ********** OPTIONAL: MODIFY the next lines *** |
|
275 # LOCALINCLUDES=-Ifoo -Ibar |
|
276 LOCALINCLUDES=%(LOCAL_INCLUDES) |
|
277 |
|
278 |
|
279 # if you need any additional defines for embedded C code, |
|
280 # add them here:, |
|
281 # ********** OPTIONAL: MODIFY the next lines *** |
|
282 # LOCALDEFINES=-Dfoo -Dbar -DDEBUG |
|
283 LOCALDEFINES=%(LOCAL_DEFINES) |
|
284 |
|
285 LIBNAME=%(LIBRARY_NAME) |
|
286 STCLOCALOPT=''-package=$(PACKAGE)'' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) %(HEADEROUTPUTARG) %(COMMONSYMFLAG) -varPrefix=$(LIBNAME) |
|
287 |
|
288 |
|
289 # ********** OPTIONAL: MODIFY the next line *** |
|
290 # additional C-libraries that should be pre-linked with the class-objects |
|
291 LD_OBJ_LIBS=%(ADDITIONAL_LINK_LIBRARIES) |
|
292 LOCAL_SHARED_LIBS=%(ADDITIONAL_SHARED_LINK_LIBRARIES) |
|
293 |
|
294 |
|
295 # ********** OPTIONAL: MODIFY the next line *** |
|
296 # additional C targets or libraries should be added below |
|
297 LOCAL_EXTRA_TARGETS= |
|
298 |
|
299 OBJS= $(COMMON_OBJS) $(UNIX_OBJS) |
|
300 |
|
301 %(ADDITIONAL_DEFINITIONS) |
|
302 |
|
303 all:: preMake classLibRule postMake |
|
304 |
|
305 pre_objs:: %(ADDITIONAL_TARGETS) |
|
306 |
|
307 %(ADDITIONAL_RULES) |
|
308 |
|
309 # add more install actions here |
|
310 install:: |
|
311 |
|
312 # add more install actions for aux-files (resources) here |
|
313 installAux:: |
|
314 |
|
315 # add more preMake actions here |
|
316 preMake:: |
|
317 |
|
318 # add more postMake actions here |
|
319 postMake:: cleanjunk |
|
320 |
|
321 prereq: $(REQUIRED_SUPPORT_DIRS) |
|
322 %(MAKE_PREREQUISITES) |
|
323 |
|
324 cleanjunk:: |
|
325 |
|
326 clean:: |
|
327 %(TAB)-rm -f *.o *.H |
|
328 |
|
329 clobber:: clean |
|
330 %(TAB)-rm -f *.so *.dll |
|
331 |
|
332 ', |
|
333 " |
|
334 $(INSTALLBASE):: |
|
335 %(TAB)@test -d $@ || mkdir $@ |
|
336 |
|
337 $(INSTALLBASE)/packages:: $(INSTALLBASE) |
|
338 %(TAB)@test -d $@ || mkdir $@ |
|
339 |
|
340 $(INSTALLBASE)/packages/$(MODULE):: $(INSTALLBASE)/packages |
|
341 %(TAB)@test -d $@ || mkdir $@ |
|
342 |
|
343 $(INSTALLBASE)/packages/$(MODULE)/dapasx:: $(INSTALLBASE)/packages/$(MODULE) |
|
344 %(TAB)@test -d $@ || mkdir $@ |
|
345 |
|
346 $(INSTALLBASE)/packages/$(MODULE)/dapasx/interactiver_editor:: $(INSTALLBASE)/packages/$(MODULE)/dapasx |
|
347 %(TAB)@test -d $@ || mkdir $@ |
|
348 |
|
349 $(INSTALLBASE)/packages/$(MODULE)/$(MODULE_DIR):: $(INSTALLBASE)/packages/$(MODULE) |
|
350 %(TAB)@test -d $@ || mkdir $@ |
|
351 " |
|
352 ' |
|
353 # BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
|
354 %(DEPENDENCIES) |
|
355 # ENDMAKEDEPEND --- do not remove this line |
|
356 |
|
357 ' |
|
358 |
|
359 "Created: / 08-08-2006 / 20:45:36 / fm" |
|
360 "Modified: / 09-08-2006 / 16:50:23 / fm" |
|
361 "Modified: / 14-09-2006 / 15:48:02 / cg" |
|
362 ! |
|
363 |
|
364 vc_dot_def |
|
365 |
|
366 ^ |
|
367 'LIBRARY %(LIBRARY_NAME) |
|
368 DESCRIPTION %(DESCRIPTION) |
|
369 VERSION %(VERSION_NUMBER) |
|
370 CODE EXECUTE READ |
|
371 DATA READ WRITE |
|
372 SECTIONS |
|
373 INITCODE READ EXECUTE |
|
374 INITDATA READ WRITE |
|
375 EXPORTS |
|
376 _%(LIBRARY_NAME)_Init @1 |
|
377 IMPORTS' |
|
378 |
|
379 "Modified: / 08-08-2006 / 19:33:14 / fm" |
|
380 ! ! |
|
381 |
|
382 !LibraryDefinition class methodsFor:'mappings'! |
|
383 |
|
384 bc_dot_mak_mappings |
|
385 |d resFileName| |
|
386 |
|
387 resFileName := (self package copyFrom:(self package lastIndexOfAny:':/')+1),'.res'. |
|
388 |
|
389 d := super bc_dot_mak_mappings. |
|
390 d |
|
391 at: 'LIBRARY_NAME' put: ( self libraryName ); |
|
392 at: 'COMMONSYMFLAG' put: (self commonSymbolsFlag); |
|
393 at: 'HEADEROUTPUTARG' put: (self headerFileOutputArg); |
|
394 at: 'RESFILENAME' put: resFileName; |
|
395 at: 'DEPENDENCIES' put: (self generateDependencies_win32); |
|
396 yourself. |
|
397 ^ d. |
|
398 |
|
399 "Created: / 09-08-2006 / 11:44:36 / fm" |
|
400 "Modified: / 09-08-2006 / 20:00:01 / fm" |
|
401 "Modified: / 14-09-2006 / 18:58:15 / cg" |
|
402 ! |
|
403 |
|
404 extensionLine_libInit_dot_cc_mappings |
|
405 |
|
406 ^Dictionary new |
|
407 at: 'LIBRARY_NAME' put: ( self st2c:(self package copy asString replaceAny:':/' with:$_) ); |
|
408 yourself |
|
409 |
|
410 "Created: / 09-08-2006 / 11:19:59 / fm" |
|
411 "Modified: / 14-09-2006 / 18:56:26 / cg" |
|
412 ! |
|
413 |
|
414 libInit_dot_cc_mappings |
|
415 |
|
416 ^Dictionary new |
|
417 at: 'LIBRARY_NAME' put: (self libraryName); |
|
418 at: 'PACKAGE' put: (self package); |
|
419 at: 'CLASSES' put: (self generateClassLines_libInit_dot_cc); |
|
420 at: 'EXTENSION' put: (self generateExtensionLine_libInit_dot_cc); |
|
421 |
|
422 yourself |
|
423 |
|
424 "Created: / 09-08-2006 / 11:20:24 / fm" |
|
425 "Modified: / 16-08-2006 / 18:19:03 / User" |
|
426 "Modified: / 14-09-2006 / 18:56:42 / cg" |
|
427 ! |
|
428 |
|
429 vc_dot_def_mappings |
|
430 |
|
431 ^Dictionary new |
|
432 at: 'LIBRARY_NAME' put: (self libraryName); |
|
433 at: 'DESCRIPTION' put: (self description asString storeString); |
|
434 at: 'VERSION_NUMBER' put: (self versionNumber); |
|
435 yourself |
|
436 |
|
437 "Created: / 09-08-2006 / 11:21:21 / fm" |
|
438 "Modified: / 14-09-2006 / 18:58:07 / cg" |
|
439 ! ! |
|
440 |
|
441 !LibraryDefinition class methodsFor:'mappings support'! |
|
442 |
|
443 commonSymbolsFlag |
|
444 "some libraries are compiled with COMMONSYMBOLS - |
|
445 This saves a lot of space in the generated dll/so files; |
|
446 However, it also requires the librun to be rebuilt, whenever one of |
|
447 the commonSymbols-libs changes. |
|
448 Therefore, NEVER do this for end-user or application libraries; |
|
449 ONLY do it for a subset of the predefined, eXept-provided standard stx libraries" |
|
450 |
|
451 ( |
|
452 #( |
|
453 'stx:libbasic' 'stx:libview' 'stx:libtool' |
|
454 'stx:libbasic2' 'stx:libview2' 'stx:libtool2' |
|
455 'stx:libbasic3' 'stx:libwidg' 'stx:libhtml' |
|
456 'stx:libcomp' 'stx:libwidg2' 'stx:libui' |
|
457 'stx:libboss' 'stx:libdb' |
|
458 ) |
|
459 includes:self package) ifTrue:[ |
|
460 ^ '$(COMMONSYMBOLS)' |
|
461 ]. |
|
462 ^ '' |
|
463 |
|
464 "Created: / 18-08-2006 / 13:01:52 / cg" |
|
465 "Modified: / 23-08-2006 / 09:48:11 / cg" |
|
466 ! |
|
467 |
|
468 generateExtensionLine_libInit_dot_cc |
|
469 |mappings| |
|
470 |
|
471 ^self hasExtensionMethods |
|
472 ifFalse:[''] |
|
473 ifTrue:[ |
|
474 mappings := self extensionLine_libInit_dot_cc_mappings. |
|
475 self replaceMappings: mappings in: self extensionLine_libInit_dot_cc.] |
|
476 |
|
477 " |
|
478 DapasXProject generateExtensionLine_libInit_dot_cc |
|
479 DapasX_Datenbasis generateExtensionLine_libInit_dot_cc |
|
480 " |
|
481 |
|
482 "Created: / 09-08-2006 / 11:23:34 / fm" |
|
483 "Modified: / 14-09-2006 / 14:19:59 / cg" |
|
484 ! ! |
|
485 |
|
486 !LibraryDefinition class methodsFor:'obsolete'! |
|
487 |
237 lib_dot_rc |
488 lib_dot_rc |
|
489 <resource: #obsolete> |
238 |
490 |
239 ^ |
491 ^ |
240 '/*------------------------------------------------------------------------ |
492 '/*------------------------------------------------------------------------ |
241 * $','Header','$ |
493 * $','Header','$ |
242 * |
494 * |
280 END |
532 END |
281 ' |
533 ' |
282 |
534 |
283 "Created: / 17-08-2006 / 19:37:50 / cg" |
535 "Created: / 17-08-2006 / 19:37:50 / cg" |
284 "Modified: / 18-08-2006 / 12:57:09 / cg" |
536 "Modified: / 18-08-2006 / 12:57:09 / cg" |
285 ! |
|
286 |
|
287 make_dot_proto |
|
288 |
|
289 ^ |
|
290 '# $','Header','$ |
|
291 # |
|
292 # DO NOT EDIT |
|
293 # automagically generated from the projectDefinition: ',self name,'. |
|
294 # |
|
295 # Warning: once you modify this file, do not rerun |
|
296 # stmkmp or projectDefinition-build again - otherwise, your changes are lost. |
|
297 # |
|
298 # The Makefile as generated by this Make.proto supports the following targets: |
|
299 # make - compile all st-files to a classLib |
|
300 # make clean - clean all temp files |
|
301 # make clobber - clean all |
|
302 # |
|
303 # This file contains definitions for Unix based platforms. |
|
304 # It shares common definitions with the win32-make in Make.spec. |
|
305 |
|
306 # |
|
307 # position (of this package) in directory hierarchy: |
|
308 # (must point to ST/X top directory, for tools and includes) |
|
309 TOP=%(TOP) |
|
310 INCLUDE_TOP=$(TOP)/.. |
|
311 |
|
312 # subdirectories where targets are to be made: |
|
313 SUBDIRS=%(SUBDIRECTORIES) |
|
314 |
|
315 |
|
316 # subdirectories where Makefiles are to be made: |
|
317 # (only define if different from SUBDIRS) |
|
318 # ALLSUBDIRS= |
|
319 |
|
320 REQUIRED_SUPPORT_DIRS=%(REQUIRED_SUPPORT_DIRS) |
|
321 |
|
322 # if your embedded C code requires any system includes, |
|
323 # add the path(es) here:, |
|
324 # ********** OPTIONAL: MODIFY the next lines *** |
|
325 # LOCALINCLUDES=-Ifoo -Ibar |
|
326 LOCALINCLUDES=%(LOCAL_INCLUDES) |
|
327 |
|
328 |
|
329 # if you need any additional defines for embedded C code, |
|
330 # add them here:, |
|
331 # ********** OPTIONAL: MODIFY the next lines *** |
|
332 # LOCALDEFINES=-Dfoo -Dbar -DDEBUG |
|
333 LOCALDEFINES=%(LOCAL_DEFINES) |
|
334 |
|
335 LIBNAME=%(LIBRARY_NAME) |
|
336 STCLOCALOPT=''-package=$(PACKAGE)'' -I. $(LOCALINCLUDES) $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES) %(HEADEROUTPUTARG) %(COMMONSYMFLAG) -varPrefix=$(LIBNAME) |
|
337 |
|
338 |
|
339 # ********** OPTIONAL: MODIFY the next line *** |
|
340 # additional C-libraries that should be pre-linked with the class-objects |
|
341 LD_OBJ_LIBS=%(ADDITIONAL_LINK_LIBRARIES) |
|
342 LOCAL_SHARED_LIBS=%(ADDITIONAL_SHARED_LINK_LIBRARIES) |
|
343 |
|
344 |
|
345 # ********** OPTIONAL: MODIFY the next line *** |
|
346 # additional C targets or libraries should be added below |
|
347 LOCAL_EXTRA_TARGETS= |
|
348 |
|
349 OBJS= $(COMMON_OBJS) $(UNIX_OBJS) |
|
350 |
|
351 %(ADDITIONAL_DEFINITIONS) |
|
352 |
|
353 all:: preMake classLibRule postMake |
|
354 |
|
355 pre_objs:: %(ADDITIONAL_TARGETS) |
|
356 |
|
357 %(ADDITIONAL_RULES) |
|
358 |
|
359 # add more install actions here |
|
360 install:: |
|
361 |
|
362 # add more install actions for aux-files (resources) here |
|
363 installAux:: |
|
364 |
|
365 # add more preMake actions here |
|
366 preMake:: |
|
367 |
|
368 # add more postMake actions here |
|
369 postMake:: cleanjunk |
|
370 |
|
371 prereq: $(REQUIRED_SUPPORT_DIRS) |
|
372 %(MAKE_PREREQUISITES) |
|
373 |
|
374 cleanjunk:: |
|
375 |
|
376 clean:: |
|
377 %(TAB)-rm -f *.o *.H |
|
378 |
|
379 clobber:: clean |
|
380 %(TAB)-rm -f *.so *.dll |
|
381 |
|
382 ', |
|
383 " |
|
384 $(INSTALLBASE):: |
|
385 %(TAB)@test -d $@ || mkdir $@ |
|
386 |
|
387 $(INSTALLBASE)/packages:: $(INSTALLBASE) |
|
388 %(TAB)@test -d $@ || mkdir $@ |
|
389 |
|
390 $(INSTALLBASE)/packages/$(MODULE):: $(INSTALLBASE)/packages |
|
391 %(TAB)@test -d $@ || mkdir $@ |
|
392 |
|
393 $(INSTALLBASE)/packages/$(MODULE)/dapasx:: $(INSTALLBASE)/packages/$(MODULE) |
|
394 %(TAB)@test -d $@ || mkdir $@ |
|
395 |
|
396 $(INSTALLBASE)/packages/$(MODULE)/dapasx/interactiver_editor:: $(INSTALLBASE)/packages/$(MODULE)/dapasx |
|
397 %(TAB)@test -d $@ || mkdir $@ |
|
398 |
|
399 $(INSTALLBASE)/packages/$(MODULE)/$(MODULE_DIR):: $(INSTALLBASE)/packages/$(MODULE) |
|
400 %(TAB)@test -d $@ || mkdir $@ |
|
401 " |
|
402 ' |
|
403 # BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
|
404 %(DEPENDENCIES) |
|
405 # ENDMAKEDEPEND --- do not remove this line |
|
406 |
|
407 ' |
|
408 |
|
409 "Created: / 08-08-2006 / 20:45:36 / fm" |
|
410 "Modified: / 09-08-2006 / 16:50:23 / fm" |
|
411 "Modified: / 14-09-2006 / 15:48:02 / cg" |
|
412 ! |
|
413 |
|
414 vc_dot_def |
|
415 |
|
416 ^ |
|
417 'LIBRARY %(LIBRARY_NAME) |
|
418 DESCRIPTION %(DESCRIPTION) |
|
419 VERSION %(VERSION_NUMBER) |
|
420 CODE EXECUTE READ |
|
421 DATA READ WRITE |
|
422 SECTIONS |
|
423 INITCODE READ EXECUTE |
|
424 INITDATA READ WRITE |
|
425 EXPORTS |
|
426 _%(LIBRARY_NAME)_Init @1 |
|
427 IMPORTS' |
|
428 |
|
429 "Modified: / 08-08-2006 / 19:33:14 / fm" |
|
430 ! ! |
|
431 |
|
432 !LibraryDefinition class methodsFor:'mappings'! |
|
433 |
|
434 bc_dot_mak_mappings |
|
435 |d resFileName| |
|
436 |
|
437 resFileName := (self package copyFrom:(self package lastIndexOfAny:':/')+1),'.res'. |
|
438 |
|
439 d := super bc_dot_mak_mappings. |
|
440 d |
|
441 at: 'LIBRARY_NAME' put: ( self libraryName ); |
|
442 at: 'COMMONSYMFLAG' put: (self commonSymbolsFlag); |
|
443 at: 'HEADEROUTPUTARG' put: (self headerFileOutputArg); |
|
444 at: 'RESFILENAME' put: resFileName; |
|
445 at: 'DEPENDENCIES' put: (self generateDependencies_win32); |
|
446 yourself. |
|
447 ^ d. |
|
448 |
|
449 "Created: / 09-08-2006 / 11:44:36 / fm" |
|
450 "Modified: / 09-08-2006 / 20:00:01 / fm" |
|
451 "Modified: / 14-09-2006 / 18:58:15 / cg" |
|
452 ! |
|
453 |
|
454 extensionLine_libInit_dot_cc_mappings |
|
455 |
|
456 ^Dictionary new |
|
457 at: 'LIBRARY_NAME' put: ( self st2c:(self package copy asString replaceAny:':/' with:$_) ); |
|
458 yourself |
|
459 |
|
460 "Created: / 09-08-2006 / 11:19:59 / fm" |
|
461 "Modified: / 14-09-2006 / 18:56:26 / cg" |
|
462 ! |
|
463 |
|
464 libInit_dot_cc_mappings |
|
465 |
|
466 ^Dictionary new |
|
467 at: 'LIBRARY_NAME' put: (self libraryName); |
|
468 at: 'PACKAGE' put: (self package); |
|
469 at: 'CLASSES' put: (self generateClassLines_libInit_dot_cc); |
|
470 at: 'EXTENSION' put: (self generateExtensionLine_libInit_dot_cc); |
|
471 |
|
472 yourself |
|
473 |
|
474 "Created: / 09-08-2006 / 11:20:24 / fm" |
|
475 "Modified: / 16-08-2006 / 18:19:03 / User" |
|
476 "Modified: / 14-09-2006 / 18:56:42 / cg" |
|
477 ! |
|
478 |
|
479 vc_dot_def_mappings |
|
480 |
|
481 ^Dictionary new |
|
482 at: 'LIBRARY_NAME' put: (self libraryName); |
|
483 at: 'DESCRIPTION' put: (self description asString storeString); |
|
484 at: 'VERSION_NUMBER' put: (self versionNumber); |
|
485 yourself |
|
486 |
|
487 "Created: / 09-08-2006 / 11:21:21 / fm" |
|
488 "Modified: / 14-09-2006 / 18:58:07 / cg" |
|
489 ! ! |
|
490 |
|
491 !LibraryDefinition class methodsFor:'mappings support'! |
|
492 |
|
493 commonSymbolsFlag |
|
494 "some libraries are compiled with COMMONSYMBOLS - |
|
495 This saves a lot of space in the generated dll/so files; |
|
496 However, it also requires the librun to be rebuilt, whenever one of |
|
497 the commonSymbols-libs changes. |
|
498 Therefore, NEVER do this for end-user or application libraries; |
|
499 ONLY do it for a subset of the predefined, eXept-provided standard stx libraries" |
|
500 |
|
501 ( |
|
502 #( |
|
503 'stx:libbasic' 'stx:libview' 'stx:libtool' |
|
504 'stx:libbasic2' 'stx:libview2' 'stx:libtool2' |
|
505 'stx:libbasic3' 'stx:libwidg' 'stx:libhtml' |
|
506 'stx:libcomp' 'stx:libwidg2' 'stx:libui' |
|
507 'stx:libboss' 'stx:libdb' |
|
508 ) |
|
509 includes:self package) ifTrue:[ |
|
510 ^ '$(COMMONSYMBOLS)' |
|
511 ]. |
|
512 ^ '' |
|
513 |
|
514 "Created: / 18-08-2006 / 13:01:52 / cg" |
|
515 "Modified: / 23-08-2006 / 09:48:11 / cg" |
|
516 ! |
|
517 |
|
518 generateExtensionLine_libInit_dot_cc |
|
519 |mappings| |
|
520 |
|
521 ^self hasExtensionMethods |
|
522 ifFalse:[''] |
|
523 ifTrue:[ |
|
524 mappings := self extensionLine_libInit_dot_cc_mappings. |
|
525 self replaceMappings: mappings in: self extensionLine_libInit_dot_cc.] |
|
526 |
|
527 " |
|
528 DapasXProject generateExtensionLine_libInit_dot_cc |
|
529 DapasX_Datenbasis generateExtensionLine_libInit_dot_cc |
|
530 " |
|
531 |
|
532 "Created: / 09-08-2006 / 11:23:34 / fm" |
|
533 "Modified: / 14-09-2006 / 14:19:59 / cg" |
|
534 ! ! |
537 ! ! |
535 |
538 |
536 !LibraryDefinition class methodsFor:'queries'! |
539 !LibraryDefinition class methodsFor:'queries'! |
537 |
540 |
538 canHaveExtensions |
541 canHaveExtensions |