analyzer/tests/Make.spec
author Jan Vrany <jan.vrany@fit.cvut.cz>
Sun, 05 Oct 2014 00:05:20 +0100
changeset 380 8fe3cb4e607f
parent 264 dab627821108
child 420 b2f2f15cef26
permissions -rw-r--r--
Remove Pharoisms to make code more portable and running on Smalltalk/X * Use ANSI `(Character codePoint: 13)` (`10`) instead of `Character cr` (`lf`), This is more portable and does not depend on dialects interpretation of `#cr` - Smalltalk/X convert it according to platform line end convention (UNIX/Windows/Mac) * Do not assume exact value of a printstring in tests, i.e., instead of `msg includesSubstring: '$a' code `msg includesSubstring: $a printString. This way, the test is independent on the printString value, which may differ among dialects. Q: Is printString value of String and/or Character defined in ANSI? * In assestions, instead of `#equals:` use plain old `#=`, which is more portable. * Removed Character>>- used to create range parser. Use portable `(Interval from: $a to: $z) asParser` instead of just `$a - $z`. Do not use ($a to: $z) asParser as in Pharo, Character>>to: does not create an Interval but an Array (sigh).
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
380
8fe3cb4e607f Remove Pharoisms to make code more portable and running on Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 264
diff changeset
     1
# $Header$
264
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
#
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
# DO NOT EDIT
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
# automagically generated from the projectDefinition: stx_goodies_petitparser_analyzer_tests.
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
#
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
# Warning: once you modify this file, do not rerun
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
# stmkmp or projectDefinition-build again - otherwise, your changes are lost.
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
#
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
# This file contains specifications which are common to all platforms.
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
#
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
# Do NOT CHANGE THESE DEFINITIONS
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
# (otherwise, ST/X will have a hard time to find out the packages location from its packageID,
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
#  to find the source code of a class and to find the library for a package)
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
MODULE=stx
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
MODULE_DIR=goodies/petitparser/analyzer/tests
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
PACKAGE=$(MODULE):$(MODULE_DIR)
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
# Argument(s) to the stc compiler (stc --usage).
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
#  -headerDir=. : create header files locally
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
#                (if removed, they will be created as common
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
#  -Pxxx       : defines the package
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
#  -Zxxx       : a prefix for variables within the classLib
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
#  -Dxxx       : defines passed to to CC for inline C-code
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
#  -Ixxx       : include path passed to CC for inline C-code
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
#  +optspace   : optimized for space
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
#  +optspace2  : optimized more for space
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
#  +optspace3  : optimized even more for space
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
#  +optinline  : generate inline code for some ST constructs
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
#  +inlineNew  : additionally inline new
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
#  +inlineMath : additionally inline some floatPnt math stuff
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
#
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
# ********** OPTIONAL: MODIFY the next line(s) ***
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
# STCLOCALOPTIMIZATIONS=+optinline +inlineNew
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
# STCLOCALOPTIMIZATIONS=+optspace3
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
STCLOCALOPTIMIZATIONS=+optspace3
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
# Argument(s) to the stc compiler (stc --usage).
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
#  -warn            : no warnings
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
#  -warnNonStandard : no warnings about ST/X extensions
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
#  -warnEOLComments : no warnings about EOL comment extension
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
#  -warnPrivacy     : no warnings about privateClass extension
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
#
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
# ********** OPTIONAL: MODIFY the next line(s) ***
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
# STCWARNINGS=-warn
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
# STCWARNINGS=-warnNonStandard
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
# STCWARNINGS=-warnEOLComments
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
STCWARNINGS=-warnNonStandard
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
COMMON_CLASSES= \
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
	stx_goodies_petitparser_analyzer_tests \
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
COMMON_OBJS= \
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
    $(OUTDIR_SLASH)stx_goodies_petitparser_analyzer_tests.$(O) \
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
dab627821108 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62