tests/bc.mak
author Claus Gittinger <cg@exept.de>
Tue, 04 Mar 2014 21:31:57 +0100
changeset 321 ceffb363a9c3
parent 248 4e79809dd271
child 376 a2656b27cace
child 594 0a106c9a1620
permissions -rw-r--r--
moved
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
321
Claus Gittinger <cg@exept.de>
parents: 248
diff changeset
     1
# $Header: /cvs/stx/stx/goodies/petitparser/tests/bc.mak,v 1.2 2014-03-04 20:31:57 cg Exp $
248
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
#
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
# DO NOT EDIT
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
# automagically generated from the projectDefinition: stx_goodies_petitparser_tests.
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
#
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
# Warning: once you modify this file, do not rerun
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
# stmkmp or projectDefinition-build again - otherwise, your changes are lost.
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
#
4e79809dd271 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).
4e79809dd271 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.
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
# It shares common definitions with the unix-make in Make.spec.
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
# The bc.mak supports the following targets:
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
#    bmake         - compile all st-files to a classLib (dll)
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
#    bmake clean   - clean all temp files
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
#    bmake clobber - clean all
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
#
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
# Historic Note:
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
#  this used to contain only rules to make with borland
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
#    (called via bmake, by "make.exe -f bc.mak")
4e79809dd271 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
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
#    (called via vcmake, by "make.exe -f bc.mak -DUSEVC")
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
#
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
TOP=..\..\..
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
INCLUDE_TOP=$(TOP)\..
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
!INCLUDE $(TOP)\rules\stdHeader_bc
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
!INCLUDE Make.spec
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
LIBNAME=libstx_goodies_petitparser_tests
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
RESFILES=tests.$(RES)
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
LOCALINCLUDES= -I$(INCLUDE_TOP)\stx\goodies\sunit -I$(INCLUDE_TOP)\stx\libbasic
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
LOCALDEFINES=
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
STCLOCALOPT=-package=$(PACKAGE) -I. $(LOCALINCLUDES) -headerDir=. $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES)  -varPrefix=$(LIBNAME)
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
LOCALLIBS=
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
OBJS= $(COMMON_OBJS) $(WIN32_OBJS)
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
ALL::  classLibRule
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
classLibRule: $(OUTDIR) $(OUTDIR)$(LIBNAME).dll
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
!INCLUDE $(TOP)\rules\stdRules_bc
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
# build all mandatory prerequisite packages (containing superclasses) for this package
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
prereq:
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
	pushd ..\..\..\libbasic & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
	pushd ..\..\..\libbasic2 & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
	pushd ..\..\..\libview & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
	pushd ..\..\..\libview2 & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
	pushd ..\..\sunit & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
test: $(TOP)\goodies\builder\reports\NUL
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
	pushd $(TOP)\goodies\builder\reports & $(MAKE_BAT)
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
	$(TOP)\goodies\builder\reports\report-runner.bat -D . -r Builder::TestReport -p $(PACKAGE)
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
        
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
clean::
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
	del *.$(CSUFFIX)
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
$(OUTDIR)PPAbstractParserTest.$(O) PPAbstractParserTest.$(H): PPAbstractParserTest.st $(INCLUDE_TOP)\stx\goodies\sunit\TestAsserter.$(H) $(INCLUDE_TOP)\stx\goodies\sunit\TestCase.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
$(OUTDIR)stx_goodies_petitparser_tests.$(O) stx_goodies_petitparser_tests.$(H): stx_goodies_petitparser_tests.st $(INCLUDE_TOP)\stx\libbasic\LibraryDefinition.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libbasic\ProjectDefinition.$(H) $(STCHDR)
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
$(OUTDIR)PPCompositeParserTest.$(O) PPCompositeParserTest.$(H): PPCompositeParserTest.st $(INCLUDE_TOP)\stx\goodies\petitparser\tests\PPAbstractParserTest.$(H) $(INCLUDE_TOP)\stx\goodies\sunit\TestAsserter.$(H) $(INCLUDE_TOP)\stx\goodies\sunit\TestCase.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(STCHDR)
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
4e79809dd271 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
# ENDMAKEDEPEND --- do not remove this line