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