os/persistentdata/persistentstorage/store/BMAKE/MAKEFILE
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 # makefile to replace BLD.CMD
     2 #
     3 # plat is wins/marm
     4 # cfg is rel,deb,urel,udeb
     5 # target is component to build
     6 #
     7 TARGETS=estor
     8 
     9 MAKE_DIR=\epoc32\make\$(PLAT)
    10 
    11 MAKE=nmake -nologo
    12 MAKMAKE=makmake
    13 MAKCLEAN=makmake -clean
    14 
    15 !if "$(PLAT)" == "marm"
    16 CPP_FLAG=-Wno-non-virtual-dtor
    17 !endif
    18 
    19 all: $(TARGETS)
    20 
    21 $(TARGETS):
    22 !if "$(PLAT)" == "ide"
    23 # build the IDE makfile in the current directory
    24 #
    25     $(MAKMAKE) -d $(*B) $(CFG)
    26 !else if "$(CFG)" == "clean"
    27 # use Makmake's clean verb to delete all generated files
    28 #
    29     $(MAKCLEAN) -d $(*B) $(PLAT)
    30     @if exist $(MAKE_DIR)\$(*B).$(PLAT) erase $(MAKE_DIR)\$(*B).$(PLAT)
    31 !else
    32 	@$(MAKE) -c $(MAKE_DIR)\$(*B).$(PLAT)
    33 	$(MAKE) -kcs -f$(MAKE_DIR)\$(*B).$(PLAT) $(CFG) USERDEFS=$(CPP_FLAG) 1>$(*B).$(PLAT).$(CFG).log 2>&1
    34 !endif
    35 
    36 .SUFFIXES: .$(PLAT) .mmp
    37 
    38 .mmp{$(MAKE_DIR)}.$(PLAT):
    39 	$(MAKMAKE) -d $(*B) $(PLAT)
    40 
    41 wins:
    42     @$(MAKE) plat=wins cfg=urel
    43     @$(MAKE) plat=wins cfg=udeb
    44 
    45 marm:
    46     @$(MAKE) plat=marm cfg=urel
    47     @$(MAKE) plat=marm cfg=udeb
    48 
    49 clean:
    50     @$(MAKE) plat=wins cfg=clean
    51     @$(MAKE) plat=marm cfg=clean