persistentstorage/dbms/bmake/MAKEFILE
changeset 0 08ec8eefde2f
equal deleted inserted replaced
-1:000000000000 0:08ec8eefde2f
       
     1 # makefile to replace BLD.CMD
       
     2 #
       
     3 # Full syntax:
       
     4 #    plat is wins,marm
       
     5 #    cfg is rel,deb,urel,udeb,clean
       
     6 #    target is component to build
       
     7 #
       
     8 
       
     9 !if "$(PLAT)" == "marm"
       
    10 TARGETS=edbms edbsrv
       
    11 !else
       
    12 TARGETS=edbms
       
    13 !endif
       
    14 
       
    15 MAKE_DIR=\epoc32\make\$(PLAT)
       
    16 
       
    17 MAKE=nmake -nologo
       
    18 MAKMAKE=makmake
       
    19 MAKCLEAN=makmake -clean
       
    20 
       
    21 !if "$(PLAT)" == "marm"
       
    22 CPP_FLAG=-Wno-non-virtual-dtor
       
    23 !endif
       
    24 
       
    25 all: $(TARGETS)
       
    26 
       
    27 $(TARGETS):
       
    28 !if "$(PLAT)" == "ide"
       
    29 # build the IDE makfile in the current directory
       
    30 #
       
    31     $(MAKMAKE) -d $(*B) $(CFG)
       
    32 !else if "$(CFG)" == "clean"
       
    33 # use Makmake's clean verb to delete all generated files
       
    34 #
       
    35     $(MAKCLEAN) -d $(*B) $(PLAT)
       
    36     @if exist $(MAKE_DIR)\$(*B).$(PLAT) erase $(MAKE_DIR)\$(*B).$(PLAT)
       
    37 !else
       
    38 	@$(MAKE) -c $(MAKE_DIR)\$(*B).$(PLAT)
       
    39 	$(MAKE) -kcs -f$(MAKE_DIR)\$(*B).$(PLAT) $(CFG) USERDEFS=$(CPP_FLAG) 1>$(*B).$(PLAT).$(CFG).log 2>&1
       
    40 !endif
       
    41 
       
    42 .SUFFIXES: .$(PLAT) .mmp
       
    43 
       
    44 .mmp{$(MAKE_DIR)}.$(PLAT):
       
    45 	$(MAKMAKE) -d $(*B) $(PLAT)
       
    46 
       
    47 wins:
       
    48     @$(MAKE) plat=wins cfg=urel
       
    49     @$(MAKE) plat=wins cfg=udeb
       
    50 
       
    51 marm:
       
    52     @$(MAKE) plat=marm cfg=urel
       
    53     @$(MAKE) plat=marm cfg=udeb
       
    54 
       
    55 clean:
       
    56     @$(MAKE) plat=wins cfg=clean
       
    57 	@$(MAKE) plat=marm cfg=clean