First public contribution.
     1 # makefile to replace BLD.CMD
 
     5 #    cfg is rel,deb,urel,udeb,clean
 
     6 #    target is component to build
 
     9 !if "$(PLAT)" == "marm"
 
    15 MAKE_DIR=\epoc32\make\$(PLAT)
 
    19 MAKCLEAN=makmake -clean
 
    21 !if "$(PLAT)" == "marm"
 
    22 CPP_FLAG=-Wno-non-virtual-dtor
 
    28 !if "$(PLAT)" == "ide"
 
    29 # build the IDE makfile in the current directory
 
    31     $(MAKMAKE) -d $(*B) $(CFG)
 
    32 !else if "$(CFG)" == "clean"
 
    33 # use Makmake's clean verb to delete all generated files
 
    35     $(MAKCLEAN) -d $(*B) $(PLAT)
 
    36     @if exist $(MAKE_DIR)\$(*B).$(PLAT) erase $(MAKE_DIR)\$(*B).$(PLAT)
 
    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
 
    42 .SUFFIXES: .$(PLAT) .mmp
 
    44 .mmp{$(MAKE_DIR)}.$(PLAT):
 
    45 	$(MAKMAKE) -d $(*B) $(PLAT)
 
    48     @$(MAKE) plat=wins cfg=urel
 
    49     @$(MAKE) plat=wins cfg=udeb
 
    52     @$(MAKE) plat=marm cfg=urel
 
    53     @$(MAKE) plat=marm cfg=udeb
 
    56     @$(MAKE) plat=wins cfg=clean
 
    57 	@$(MAKE) plat=marm cfg=clean