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