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