analyzer/bc.mak
author Jan Vrany <jan.vrany@fit.cvut.cz>
Thu, 30 Jul 2015 08:37:37 +0100
changeset 510 869853decf31
parent 421 7e08b31e0dae
permissions -rw-r--r--
Tests refactoring - use generated test cases to make sure all posibilities are tested. Do not generate resource for all combinations, use PPCSetUpBeforeTearDownAfterResource instead that delegates parser compilation to the testcase itself (it calls it's #setUpBefore method).
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
376
a2656b27cace Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 305
diff changeset
     1
# $Header$
217
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
#
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
# DO NOT EDIT
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
# automagically generated from the projectDefinition: stx_goodies_petitparser_analyzer.
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
#
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
# Warning: once you modify this file, do not rerun
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
# stmkmp or projectDefinition-build again - otherwise, your changes are lost.
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
#
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
# Notice, that the name bc.mak is historical (from times, when only borland c was supported).
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
# This file contains make rules for the win32 platform using either borland-bcc or visual-c.
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
# It shares common definitions with the unix-make in Make.spec.
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
# The bc.mak supports the following targets:
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
#    bmake         - compile all st-files to a classLib (dll)
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
#    bmake clean   - clean all temp files
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
#    bmake clobber - clean all
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
#
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
# Historic Note:
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
#  this used to contain only rules to make with borland
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
#    (called via bmake, by "make.exe -f bc.mak")
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
#  this has changed; it is now also possible to build using microsoft visual c
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
#    (called via vcmake, by "make.exe -f bc.mak -DUSEVC")
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
#
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
TOP=..\..\..
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
INCLUDE_TOP=$(TOP)\..
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
!INCLUDE $(TOP)\rules\stdHeader_bc
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
!INCLUDE Make.spec
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
LIBNAME=libstx_goodies_petitparser_analyzer
421
7e08b31e0dae Merged JK's version from Monticello
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 386
diff changeset
    33
MODULE_PATH=goodies\petitparser\analyzer
217
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
RESFILES=analyzer.$(RES)
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
386
a409905f7f2d Smalltalk parser almost fixed (except few pragma-related tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 382
diff changeset
    38
LOCALINCLUDES= -I$(INCLUDE_TOP)\stx\goodies\petitparser -I$(INCLUDE_TOP)\stx\libbasic
217
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
LOCALDEFINES=
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
STCLOCALOPT=-package=$(PACKAGE) -I. $(LOCALINCLUDES) -headerDir=. $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES)  -varPrefix=$(LIBNAME)
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
LOCALLIBS=
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
OBJS= $(COMMON_OBJS) $(WIN32_OBJS)
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
ALL::  classLibRule
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
classLibRule: $(OUTDIR) $(OUTDIR)$(LIBNAME).dll
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
!INCLUDE $(TOP)\rules\stdRules_bc
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
# build all mandatory prerequisite packages (containing superclasses) for this package
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
prereq:
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
	pushd ..\..\..\libbasic & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
	pushd ..\..\..\libbasic2 & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
	pushd .. & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
test: $(TOP)\goodies\builder\reports\NUL
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
	pushd $(TOP)\goodies\builder\reports & $(MAKE_BAT)
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
	$(TOP)\goodies\builder\reports\report-runner.bat -D . -r Builder::TestReport -p $(PACKAGE)
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
        
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
clean::
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
	del *.$(CSUFFIX)
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
$(OUTDIR)PPPattern.$(O) PPPattern.$(H): PPPattern.st $(INCLUDE_TOP)\stx\goodies\petitparser\PPParser.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
$(OUTDIR)PPProcessor.$(O) PPProcessor.$(H): PPProcessor.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
$(OUTDIR)PPRule.$(O) PPRule.$(H): PPRule.st $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
$(OUTDIR)PPSentinel.$(O) PPSentinel.$(H): PPSentinel.st $(INCLUDE_TOP)\stx\goodies\petitparser\PPEpsilonParser.$(H) $(INCLUDE_TOP)\stx\goodies\petitparser\PPParser.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
$(OUTDIR)stx_goodies_petitparser_analyzer.$(O) stx_goodies_petitparser_analyzer.$(H): stx_goodies_petitparser_analyzer.st $(INCLUDE_TOP)\stx\libbasic\LibraryDefinition.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libbasic\ProjectDefinition.$(H) $(STCHDR)
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
$(OUTDIR)PPListPattern.$(O) PPListPattern.$(H): PPListPattern.st $(INCLUDE_TOP)\stx\goodies\petitparser\PPParser.$(H) $(INCLUDE_TOP)\stx\goodies\petitparser\analyzer\PPPattern.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
$(OUTDIR)PPReplaceRule.$(O) PPReplaceRule.$(H): PPReplaceRule.st $(INCLUDE_TOP)\stx\goodies\petitparser\analyzer\PPRule.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
$(OUTDIR)PPRewriter.$(O) PPRewriter.$(H): PPRewriter.st $(INCLUDE_TOP)\stx\goodies\petitparser\analyzer\PPProcessor.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
$(OUTDIR)PPSearchRule.$(O) PPSearchRule.$(H): PPSearchRule.st $(INCLUDE_TOP)\stx\goodies\petitparser\analyzer\PPRule.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
$(OUTDIR)PPSearcher.$(O) PPSearcher.$(H): PPSearcher.st $(INCLUDE_TOP)\stx\goodies\petitparser\analyzer\PPProcessor.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
$(OUTDIR)PPBlockReplaceRule.$(O) PPBlockReplaceRule.$(H): PPBlockReplaceRule.st $(INCLUDE_TOP)\stx\goodies\petitparser\analyzer\PPReplaceRule.$(H) $(INCLUDE_TOP)\stx\goodies\petitparser\analyzer\PPRule.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
$(OUTDIR)PPParserReplaceRule.$(O) PPParserReplaceRule.$(H): PPParserReplaceRule.st $(INCLUDE_TOP)\stx\goodies\petitparser\analyzer\PPReplaceRule.$(H) $(INCLUDE_TOP)\stx\goodies\petitparser\analyzer\PPRule.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
386
a409905f7f2d Smalltalk parser almost fixed (except few pragma-related tests).
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 382
diff changeset
    85
$(OUTDIR)extensions.$(O): extensions.st $(INCLUDE_TOP)\stx\goodies\petitparser\PPActionParser.$(H) $(INCLUDE_TOP)\stx\goodies\petitparser\PPDelegateParser.$(H) $(INCLUDE_TOP)\stx\goodies\petitparser\PPEpsilonParser.$(H) $(INCLUDE_TOP)\stx\goodies\petitparser\PPFailingParser.$(H) $(INCLUDE_TOP)\stx\goodies\petitparser\PPFlattenParser.$(H) $(INCLUDE_TOP)\stx\goodies\petitparser\PPLimitedRepeatingParser.$(H) $(INCLUDE_TOP)\stx\goodies\petitparser\PPListParser.$(H) $(INCLUDE_TOP)\stx\goodies\petitparser\PPLiteralParser.$(H) $(INCLUDE_TOP)\stx\goodies\petitparser\PPNotParser.$(H) $(INCLUDE_TOP)\stx\goodies\petitparser\PPOptionalParser.$(H) $(INCLUDE_TOP)\stx\goodies\petitparser\PPParser.$(H) $(INCLUDE_TOP)\stx\goodies\petitparser\PPPluggableParser.$(H) $(INCLUDE_TOP)\stx\goodies\petitparser\PPPredicateParser.$(H) $(INCLUDE_TOP)\stx\goodies\petitparser\PPPredicateSequenceParser.$(H) $(INCLUDE_TOP)\stx\goodies\petitparser\PPRepeatingParser.$(H) $(INCLUDE_TOP)\stx\goodies\petitparser\PPSequenceParser.$(H) $(INCLUDE_TOP)\stx\goodies\petitparser\PPTokenParser.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
217
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
2be8fdfe34e0 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
# ENDMAKEDEPEND --- do not remove this line
376
a2656b27cace Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 305
diff changeset
    88
a2656b27cace Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 305
diff changeset
    89
# **Must be at end**
a2656b27cace Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 305
diff changeset
    90
a2656b27cace Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 305
diff changeset
    91
# Enforce recompilation of package definition class if Mercurial working
a2656b27cace Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 305
diff changeset
    92
# copy state changes. Together with --guessVersion it ensures that package
a2656b27cace Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 305
diff changeset
    93
# definition class always contains correct binary revision string.
a2656b27cace Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 305
diff changeset
    94
!IFDEF HGROOT
a2656b27cace Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 305
diff changeset
    95
$(OUTDIR)stx_goodies_petitparser_analyzer.$(O): $(HGROOT)\.hg\dirstate
a2656b27cace Added monticelloName to package definition to ease export to .mcz
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 305
diff changeset
    96
!ENDIF