1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/persistentdata/persistentstorage/store/BMAKE/MAKEFILE Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,51 @@
1.4 +# makefile to replace BLD.CMD
1.5 +#
1.6 +# plat is wins/marm
1.7 +# cfg is rel,deb,urel,udeb
1.8 +# target is component to build
1.9 +#
1.10 +TARGETS=estor
1.11 +
1.12 +MAKE_DIR=\epoc32\make\$(PLAT)
1.13 +
1.14 +MAKE=nmake -nologo
1.15 +MAKMAKE=makmake
1.16 +MAKCLEAN=makmake -clean
1.17 +
1.18 +!if "$(PLAT)" == "marm"
1.19 +CPP_FLAG=-Wno-non-virtual-dtor
1.20 +!endif
1.21 +
1.22 +all: $(TARGETS)
1.23 +
1.24 +$(TARGETS):
1.25 +!if "$(PLAT)" == "ide"
1.26 +# build the IDE makfile in the current directory
1.27 +#
1.28 + $(MAKMAKE) -d $(*B) $(CFG)
1.29 +!else if "$(CFG)" == "clean"
1.30 +# use Makmake's clean verb to delete all generated files
1.31 +#
1.32 + $(MAKCLEAN) -d $(*B) $(PLAT)
1.33 + @if exist $(MAKE_DIR)\$(*B).$(PLAT) erase $(MAKE_DIR)\$(*B).$(PLAT)
1.34 +!else
1.35 + @$(MAKE) -c $(MAKE_DIR)\$(*B).$(PLAT)
1.36 + $(MAKE) -kcs -f$(MAKE_DIR)\$(*B).$(PLAT) $(CFG) USERDEFS=$(CPP_FLAG) 1>$(*B).$(PLAT).$(CFG).log 2>&1
1.37 +!endif
1.38 +
1.39 +.SUFFIXES: .$(PLAT) .mmp
1.40 +
1.41 +.mmp{$(MAKE_DIR)}.$(PLAT):
1.42 + $(MAKMAKE) -d $(*B) $(PLAT)
1.43 +
1.44 +wins:
1.45 + @$(MAKE) plat=wins cfg=urel
1.46 + @$(MAKE) plat=wins cfg=udeb
1.47 +
1.48 +marm:
1.49 + @$(MAKE) plat=marm cfg=urel
1.50 + @$(MAKE) plat=marm cfg=udeb
1.51 +
1.52 +clean:
1.53 + @$(MAKE) plat=wins cfg=clean
1.54 + @$(MAKE) plat=marm cfg=clean