Update contrib.
1 # makefile to replace BLD.CMD
4 # cfg is rel,deb,urel,udeb
5 # target is component to build
9 MAKE_DIR=\epoc32\make\$(PLAT)
13 MAKCLEAN=makmake -clean
15 !if "$(PLAT)" == "marm"
16 CPP_FLAG=-Wno-non-virtual-dtor
22 !if "$(PLAT)" == "ide"
23 # build the IDE makfile in the current directory
25 $(MAKMAKE) -d $(*B) $(CFG)
26 !else if "$(CFG)" == "clean"
27 # use Makmake's clean verb to delete all generated files
29 $(MAKCLEAN) -d $(*B) $(PLAT)
30 @if exist $(MAKE_DIR)\$(*B).$(PLAT) erase $(MAKE_DIR)\$(*B).$(PLAT)
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
36 .SUFFIXES: .$(PLAT) .mmp
38 .mmp{$(MAKE_DIR)}.$(PLAT):
39 $(MAKMAKE) -d $(*B) $(PLAT)
42 @$(MAKE) plat=wins cfg=urel
43 @$(MAKE) plat=wins cfg=udeb
46 @$(MAKE) plat=marm cfg=urel
47 @$(MAKE) plat=marm cfg=udeb
50 @$(MAKE) plat=wins cfg=clean
51 @$(MAKE) plat=marm cfg=clean