comparison gsm-fw/services/Makefile @ 222:02e80fcc3a5a

gsm-fw/services/Makefile: build ETM only when it is enabled
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Tue, 07 Jan 2014 04:16:16 +0000
parents 3ebe6409e8bc
children 749ca89741fa
comparison
equal deleted inserted replaced
221:842c9fd828fd 222:02e80fcc3a5a
1 SUBDIR= etm ffs 1 sinclude ../include/config.mk
2 2
3 all: ${SUBDIR} 3 ALL_SUBDIR= etm ffs
4 4
5 ${SUBDIR}: FRC 5 BUILD_SUBDIR= ffs
6 ifeq (${RVM_ETM_SWE},1)
7 BUILD_SUBDIR+= etm
8 endif
9
10 all: ${BUILD_SUBDIR}
11
12 ${BUILD_SUBDIR}: FRC
6 cd $@; ${MAKE} ${MFLAGS} 13 cd $@; ${MAKE} ${MFLAGS}
7 14
8 clean: FRC 15 clean: FRC
9 rm -f *.[oa] *.out *errs 16 rm -f *.[oa] *.out *errs
10 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done 17 for i in ${ALL_SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
11 18
12 FRC: 19 FRC: