bc.mak
changeset 0 99e99c395d86
equal deleted inserted replaced
-1:000000000000 0:99e99c395d86
       
     1 # $Header$
       
     2 #
       
     3 # DO NOT EDIT
       
     4 # automagically generated from the projectDefinition: ctu_smallruby.
       
     5 #
       
     6 # Warning: once you modify this file, do not rerun
       
     7 # stmkmp or projectDefinition-build again - otherwise, your changes are lost.
       
     8 #
       
     9 # Notice, that the name bc.mak is historical (from times, when only borland c was supported).
       
    10 # This file contains make rules for the win32 platform using either borland-bcc or visual-c.
       
    11 # It shares common definitions with the unix-make in Make.spec.
       
    12 # The bc.mak supports the following targets:
       
    13 #    bmake         - compile all st-files to a classLib (dll)
       
    14 #    bmake clean   - clean all temp files
       
    15 #    bmake clobber - clean all
       
    16 #
       
    17 # Historic Note:
       
    18 #  this used to contain only rules to make with borland
       
    19 #    (called via bmake, by "make.exe -f bc.mak")
       
    20 #  this has changed; it is now also possible to build using microsoft visual c
       
    21 #    (called via vcmake, by "make.exe -f bc.mak -DUSEVC")
       
    22 #
       
    23 TOP=..\..\stx
       
    24 INCLUDE_TOP=$(TOP)\..
       
    25 
       
    26 
       
    27 
       
    28 !INCLUDE $(TOP)\rules\stdHeader_bc
       
    29 
       
    30 !INCLUDE Make.spec
       
    31 
       
    32 LIBNAME=libctu_smallruby
       
    33 MODULE_PATH=smallruby
       
    34 RESFILES=smallruby.$(RES)
       
    35 
       
    36 
       
    37 
       
    38 LOCALINCLUDES= -I$(INCLUDE_TOP)\stx\libbasic
       
    39 LOCALDEFINES=
       
    40 
       
    41 STCLOCALOPT=-package=$(PACKAGE) -I. $(LOCALINCLUDES) -headerDir=. $(STCLOCALOPTIMIZATIONS) $(STCWARNINGS) $(LOCALDEFINES)  -varPrefix=$(LIBNAME)
       
    42 LOCALLIBS=
       
    43 
       
    44 OBJS= $(COMMON_OBJS) $(WIN32_OBJS)
       
    45 
       
    46 ALL::  classLibRule
       
    47 
       
    48 classLibRule: $(OUTDIR) $(OUTDIR)$(LIBNAME).dll
       
    49 
       
    50 !INCLUDE $(TOP)\rules\stdRules_bc
       
    51 
       
    52 # build all mandatory prerequisite packages (containing superclasses) for this package
       
    53 prereq:
       
    54 	pushd ..\..\stx\libbasic & $(MAKE_BAT) "CFLAGS_LOCAL=$(GLOBALDEFINES) "
       
    55 
       
    56 
       
    57 
       
    58 
       
    59 
       
    60 
       
    61 
       
    62 test: $(TOP)\goodies\builder\reports\NUL
       
    63 	pushd $(TOP)\goodies\builder\reports & $(MAKE_BAT)
       
    64 	$(TOP)\goodies\builder\reports\report-runner.bat -D . -r Builder::TestReport -p $(PACKAGE)
       
    65         
       
    66 clean::
       
    67 	del *.$(CSUFFIX)
       
    68 
       
    69 
       
    70 # BEGINMAKEDEPEND --- do not remove this line; make depend needs it
       
    71 $(OUTDIR)ctu_smallruby.$(O) ctu_smallruby.$(H): ctu_smallruby.st $(INCLUDE_TOP)\stx\libbasic\LibraryDefinition.$(H) $(INCLUDE_TOP)\stx\libbasic\Object.$(H) $(INCLUDE_TOP)\stx\libbasic\ProjectDefinition.$(H) $(STCHDR)
       
    72 
       
    73 # ENDMAKEDEPEND --- do not remove this line
       
    74 
       
    75 # **Must be at end**
       
    76 
       
    77 # Enforce recompilation of package definition class if Mercurial working
       
    78 # copy state changes. Together with --guessVersion it ensures that package
       
    79 # definition class always contains correct binary revision string.
       
    80 !IFDEF HGROOT
       
    81 $(OUTDIR)ctu_smallruby.$(O): $(HGROOT)\.hg\dirstate
       
    82 !ENDIF