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