tests/bc.mak
author Jan Vrany <jan.vrany@fit.cvut.cz>
Thu, 30 Oct 2014 22:45:30 +0000
changeset 46 2fb37cf149fb
parent 44 840c68a91cdd
permissions -rw-r--r--
Fixed testSendSuper
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
44
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     1
# $Header$
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     2
#
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     3
# DO NOT EDIT
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     4
# automagically generated from the projectDefinition: ctu_ircompiler_tests.
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     5
#
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     6
# Warning: once you modify this file, do not rerun
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     7
# stmkmp or projectDefinition-build again - otherwise, your changes are lost.
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     8
#
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     9
# Notice, that the name bc.mak is historical (from times, when only borland c was supported).
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    10
# This file contains make rules for the win32 platform using either borland-bcc or visual-c.
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    11
# It shares common definitions with the unix-make in Make.spec.
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    12
# The bc.mak supports the following targets:
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    13
#    bmake         - compile all st-files to a classLib (dll)
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    14
#    bmake clean   - clean all temp files
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    15
#    bmake clobber - clean all
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    16
#
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    17
# Historic Note:
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    18
#  this used to contain only rules to make with borland
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    19
#    (called via bmake, by "make.exe -f bc.mak")
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    20
#  this has changed; it is now also possible to build using microsoft visual c
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    21
#    (called via vcmake, by "make.exe -f bc.mak -DUSEVC")
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    22
#
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    23
TOP=..\..\..\stx
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    24
INCLUDE_TOP=$(TOP)\..
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    25
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    26
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    27
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    28
!INCLUDE $(TOP)\rules\stdHeader_bc
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    29
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    30
!INCLUDE Make.spec
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    31
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    32
LIBNAME=libctu_ircompiler_tests
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    33
RESFILES=tests.$(RES)
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    34
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    35
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    36
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    37
LOCALINCLUDES= -I$(INCLUDE_TOP)\ctu\ircompiler -I$(INCLUDE_TOP)\stx\goodies\sunit -I$(INCLUDE_TOP)\stx\libbasic
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    38
LOCALDEFINES=
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    39
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    40
STCLOCALOPT=-package=$(PACKAGE) -I. $(LOCALINCLUDES) -headerDir=. $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES)  -varPrefix=$(LIBNAME)
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    41
LOCALLIBS=
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    42
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    43
OBJS= $(COMMON_OBJS) $(WIN32_OBJS)
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    44
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    45
ALL::  classLibRule
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    46
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    47
classLibRule: $(OUTDIR) $(OUTDIR)$(LIBNAME).dll
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    48
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    49
!INCLUDE $(TOP)\rules\stdRules_bc
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    50
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    51
# build all mandatory prerequisite packages (containing superclasses) for this package
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    52
prereq:
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    53
	pushd ..\..\..\stx\libbasic & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    54
	pushd ..\..\..\stx\libbasic2 & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    55
	pushd ..\..\..\stx\libbasic3 & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    56
	pushd ..\..\..\stx\libview & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    57
	pushd ..\..\..\stx\libview2 & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    58
	pushd ..\..\..\stx\goodies\sunit & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    59
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    60
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    61
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    62
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    63
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    64
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    65
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    66
test: $(TOP)\goodies\builder\reports\NUL
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    67
	pushd $(TOP)\goodies\builder\reports & $(MAKE_BAT)
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    68
	$(TOP)\goodies\builder\reports\report-runner.bat -D . -r Builder::TestReport -p $(PACKAGE)
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    69
        
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    70
clean::
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    71
	del *.$(CSUFFIX)
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    72
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    73
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    74
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    75
$(OUTDIR)IRBuilderTest.$(O) IRBuilderTest.$(H): IRBuilderTest.st $(INCLUDE_TOP)\stx\goodies\sunit\TestAsserter.$(H) $(INCLUDE_TOP)\stx\goodies\sunit\TestCase.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    76
$(OUTDIR)IRTransformTest.$(O) IRTransformTest.$(H): IRTransformTest.st $(INCLUDE_TOP)\stx\goodies\sunit\TestAsserter.$(H) $(INCLUDE_TOP)\stx\goodies\sunit\TestCase.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    77
$(OUTDIR)ctu_ircompiler_tests.$(O) ctu_ircompiler_tests.$(H): ctu_ircompiler_tests.st $(INCLUDE_TOP)\stx\libbasic\LibraryDefinition.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libbasic\ProjectDefinition.$(H) $(STCHDR)
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    78
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    79
# ENDMAKEDEPEND --- do not remove this line
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    80
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    81
# **Must be at end**
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    82
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    83
# Enforce recompilation of package definition class if Mercurial working
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    84
# copy state changes. Together with --guessVersion it ensures that package
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    85
# definition class always contains correct binary revision string.
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    86
!IFDEF HGROOT
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    87
$(OUTDIR)ctu_ircompiler_tests.$(O): $(HGROOT)\.hg\dirstate
840c68a91cdd Tests moved to separate subpackage to follow St/X conventions.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    88
!ENDIF