changeset 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 842c9fd828fd
children 0848c7f419fd
files gsm-fw/services/Makefile
diffstat 1 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/services/Makefile	Tue Jan 07 03:51:09 2014 +0000
+++ b/gsm-fw/services/Makefile	Tue Jan 07 04:16:16 2014 +0000
@@ -1,12 +1,19 @@
-SUBDIR=	etm ffs
+sinclude ../include/config.mk
+
+ALL_SUBDIR=	etm ffs
 
-all:	${SUBDIR}
+BUILD_SUBDIR=	ffs
+ifeq (${RVM_ETM_SWE},1)
+BUILD_SUBDIR+=	etm
+endif
 
-${SUBDIR}: FRC
+all:	${BUILD_SUBDIR}
+
+${BUILD_SUBDIR}: FRC
 	cd $@; ${MAKE} ${MFLAGS}
 
 clean: FRC
 	rm -f *.[oa] *.out *errs
-	for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
+	for i in ${ALL_SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
 
 FRC: