From cf5c4633e2eee78b32a5cc39cb762f1a9cd3a02e Mon Sep 17 00:00:00 2001 From: winckel <winckel@eurecom.fr> Date: Tue, 29 Oct 2013 08:09:04 +0000 Subject: [PATCH] Added a check on gccxml tool. git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4291 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- targets/SIMU/USER/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/targets/SIMU/USER/Makefile b/targets/SIMU/USER/Makefile index f88ed518ca4..f059bfe95a5 100644 --- a/targets/SIMU/USER/Makefile +++ b/targets/SIMU/USER/Makefile @@ -329,6 +329,13 @@ ASN1DIR=$(ASN1MESSAGESDIR)/ASN1 -include $(OAISIM_PAD_OBJS:.o=.d) -include $(ASN1_MSG_OBJS1:.o=.d) +ifdef ENABLE_ITTI +gccxml_available = $(shell if [ `gccxml --version | grep GCC-XML -c` = "0" ]; then echo "0" ; else echo "1" ; fi ) +ifeq ($(gccxml_available), 0) +$(error gccxml is missing, please install) +endif +endif + $(ITTI_MESSAGES_XML): $(ITTI_MESSAGES_FILE) @echo "Generating messages.xml ..." @gccxml $(L2_incl) $(UTILS_incl) $< -fxml=$@ -- GitLab