From ec473e47d0038aadd3039cc166d0f0b0bb941fe8 Mon Sep 17 00:00:00 2001
From: ghaddab <ghaddab@eurecom.fr>
Date: Wed, 12 Feb 2014 08:52:43 +0000
Subject: [PATCH] adapting for synctest

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5075 818b1a75-f10b-46b9-bf7c-635c3b92a50f
---
 targets/RTAI/USER/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/targets/RTAI/USER/Makefile b/targets/RTAI/USER/Makefile
index 4d22a3bb70b..d4c3fa4e40c 100644
--- a/targets/RTAI/USER/Makefile
+++ b/targets/RTAI/USER/Makefile
@@ -129,6 +129,8 @@ OBJ += $(OPENAIR1_DIR)/PHY/TOOLS/lte_phy_scope.o
 OBJ += stats.o
 endif
 
+OBJ_SYNC = $(OPENAIR_TARGETS)/ARCH/EXMIMO/USERSPACE/LIB/openair0_lib.o rt_wrapper.o $(OPENAIR2_DIR)/UTIL/LOG/log.o $(OPENAIR2_DIR)/UTIL/LOG/vcd_signal_dumper.o 
+
 ifdef SMBV
 CFLAGS += -DSMBV
 endif
@@ -235,8 +237,8 @@ $(USRP_OBJ):$(USRP_FILE_OBJ)
 condtest: condtest.c 
 	$(CC) $(CFLAGS) $(LDFLAGS) condtest.c -o condtest
 
-synctest: $(OBJ) $(ASN1_MSG_OBJS1) $(RTAI_OBJ)
-	$(CC) $(CFLAGS) $(LDFLAGS) $(OBJ) $(RTAI_OBJ) $(ASN1_MSG_OBJS1) -o synctest
+synctest: $(OBJ_SYNC) $(SHARED_DEPENDENCIES) synctest.c
+	$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(RTAI_CFLAGS) $(OBJ_EMOS) -o synctest synctest.c $(LDFLAGS) $(LIBS)
 
 lte-softmodem: $(OBJ) $(ASN1_MSG_OBJS1) $(RTAI_OBJ) lte-softmodem.o $(SHARED_DEPENDENCIES)
 	@echo Linking $@
-- 
GitLab