Commit 344ec84e authored by thomasl's avatar thomasl

make it readable with correct line split

nevertheless probably more to do: seems not correct approach of Makefiles



git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6215 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 5f010e14
export IS_REL10_CBA=$(shell if [ -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/.lock-rel10-cba ] ; then echo "1" ; else echo "0" ; fi) export IS_REL10_CBA=$(shell \
export IS_REL10=$(shell if [ -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/.lock-rel10 ] ; then echo "1" ; else echo "0" ; fi) if [ -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/.lock-rel10-cba ] ; then \
export IS_REL8=$(shell if [ -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/.lock-rel8 ] ; then echo "1" ; else echo "0" ; fi) echo "1" ; else echo "0" ; fi)
export IS_REL10=$(shell \
if [ -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/.lock-rel10 ] ; then \
echo "1" ; else echo "0" ; fi)
export IS_REL8=$(shell \
if [ -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/.lock-rel8 ] ; then \
echo "1" ; else echo "0" ; fi)
print-%: print-%:
@echo '$*=$($*)' @echo '$*=$($*)'
...@@ -9,33 +17,88 @@ print-%: ...@@ -9,33 +17,88 @@ print-%:
ifdef CBA ifdef CBA
CFLAGS += -DRel10 CFLAGS += -DRel10
CFLAGS += -DCBA CFLAGS += -DCBA
ifeq ($(IS_REL10_CBA), 0)
tmp3:=$(shell cd $(OPENAIR2_DIR)/RRC/LITE/MESSAGES ; rm -f ${ASN_MODULE_SOURCES} $(ASN_MODULE_HEADERS) *.o *.d ) ifeq ($(IS_REL10_CBA), 0)
tmp2:=$(shell cd $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/ ; rm EUTRA-RRC-Definitions.asn ; ln -s EUTRA-RRC-Definitions-a20-lola.asn EUTRA-RRC-Definitions.asn ; cd $(OPENAIR_TARGETS)/SIMU/USER/ ; rm -f $(ASN1_MSG_OBJS1) ; rm -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/Makefile.inc.generated ; rm -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/Makefile.am.sample ; rm -f $(L2_OBJS) ; rm -f *.o ; rm -f oaisim ; touch $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/.lock-rel10-cba ; rm -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/.lock-rel8 ; rm -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/.lock-rel10 ; /bin/bash $(OPENAIR_TARGETS)/SCRIPTS/asn1_generate_rrc_messaging_c_code.bash ) tmp3:=$(shell cd $(OPENAIR2_DIR)/RRC/LITE/MESSAGES ; \
tmp:=$(shell cd $(OPENAIR2_DIR)/RRC/LITE/MESSAGES ; awk '/converter-sample.c/ {exit} // {print}' Makefile.am.sample > Makefile.inc.generated ) rm -f ${ASN_MODULE_SOURCES} $(ASN_MODULE_HEADERS) *.o *.d )
endif tmp2:=$(shell cd $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/ ; \
rm EUTRA-RRC-Definitions.asn ; \
ln -s EUTRA-RRC-Definitions-a20-lola.asn EUTRA-RRC-Definitions.asn ; \
cd $(OPENAIR_TARGETS)/SIMU/USER/ ; \
rm -f $(ASN1_MSG_OBJS1) ; \
rm -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/Makefile.inc.generated ; \
rm -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/Makefile.am.sample ; \
rm -f $(L2_OBJS) ; \
rm -f *.o ; \
rm -f oaisim ; \
touch $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/.lock-rel10-cba ; \
rm -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/.lock-rel8 ; \
rm -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/.lock-rel10 ; \
/bin/bash $(OPENAIR_TARGETS)/SCRIPTS/asn1_generate_rrc_messaging_c_code.bash \
)
tmp:=$(shell cd $(OPENAIR2_DIR)/RRC/LITE/MESSAGES ; \
awk '/converter-sample.c/ {exit} // {print}' Makefile.am.sample > Makefile.inc.generated )
endif
else ifdef Rel10 else ifdef Rel10
CFLAGS += -DRel10 CFLAGS += -DRel10
ifeq ($(IS_REL10), 0) ifeq ($(IS_REL10), 0)
tmp3:=$(shell cd $(OPENAIR2_DIR)/RRC/LITE/MESSAGES ; rm -f ${ASN_MODULE_SOURCES} $(ASN_MODULE_HEADERS) *.o *.d ) tmp3:=$(shell cd $(OPENAIR2_DIR)/RRC/LITE/MESSAGES ; \
tmp2:=$(shell cd $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/ ; rm EUTRA-RRC-Definitions.asn ; ln -s EUTRA-RRC-Definitions-a20.asn EUTRA-RRC-Definitions.asn ; cd $(OPENAIR_TARGETS)/SIMU/USER/ ; rm -f $(ASN1_MSG_OBJS1) ; rm -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/Makefile.inc.generated ; rm -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/Makefile.am.sample ; rm -f $(L2_OBJS) ; rm -f *.o ; rm -f oaisim ; touch $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/.lock-rel10 ; rm -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/.lock-rel8 ; rm -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/.lock-rel10-cba ; /bin/bash $(OPENAIR_TARGETS)/SCRIPTS/asn1_generate_rrc_messaging_c_code.bash ) rm -f ${ASN_MODULE_SOURCES} $(ASN_MODULE_HEADERS) *.o *.d )
tmp:=$(shell cd $(OPENAIR2_DIR)/RRC/LITE/MESSAGES ; awk '/converter-sample.c/ {exit} // {print}' Makefile.am.sample > Makefile.inc.generated ) tmp2:=$(shell cd $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/ ; \
endif rm EUTRA-RRC-Definitions.asn ; \
ln -s EUTRA-RRC-Definitions-a20.asn EUTRA-RRC-Definitions.asn ; \
cd $(OPENAIR_TARGETS)/SIMU/USER/ ; \
rm -f $(ASN1_MSG_OBJS1) ; \
rm -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/Makefile.inc.generated ; \
rm -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/Makefile.am.sample ; \
rm -f $(L2_OBJS) ; \
rm -f *.o ; \
rm -f oaisim ; \
touch $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/.lock-rel10 ; \
rm -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/.lock-rel8 ; \
rm -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/.lock-rel10-cba ; \
/bin/bash $(OPENAIR_TARGETS)/SCRIPTS/asn1_generate_rrc_messaging_c_code.bash \
)
tmp:=$(shell cd $(OPENAIR2_DIR)/RRC/LITE/MESSAGES ; \
awk '/converter-sample.c/ {exit} // {print}' Makefile.am.sample > Makefile.inc.generated )
endif
else # default is rel 8 else # default is rel 8
CFLAGS += -DRel8 CFLAGS += -DRel8
ifeq ($(IS_REL8), 0) ifeq ($(IS_REL8), 0)
tmp3:=$(shell cd $(OPENAIR2_DIR)/RRC/LITE/MESSAGES ; rm -f ${ASN_MODULE_SOURCES} $(ASN_MODULE_HEADERS) *.o *.d ) tmp3:=$(shell cd $(OPENAIR2_DIR)/RRC/LITE/MESSAGES ; \
tmp2:=$(shell cd $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/ ; rm EUTRA-RRC-Definitions.asn ; ln -s EUTRA-RRC-Definitions-86.asn EUTRA-RRC-Definitions.asn ; cd $(OPENAIR_TARGETS)/SIMU/USER/ ; rm -f $(ASN1_MSG_OBJS1) ; rm -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/Makefile.inc.generated ; rm -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/Makefile.am.sample ; rm -f $(L2_OBJS); rm -f *.o ; rm -f oaisim ; touch $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/.lock-rel8 ; rm -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/.lock-rel10 ; rm -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/.lock-rel10-cba ; /bin/bash $(OPENAIR_TARGETS)/SCRIPTS/asn1_generate_rrc_messaging_c_code.bash ) rm -f ${ASN_MODULE_SOURCES} $(ASN_MODULE_HEADERS) *.o *.d )
tmp:=$(shell cd $(OPENAIR2_DIR)/RRC/LITE/MESSAGES ; awk '/converter-sample.c/ {exit} // {print}' Makefile.am.sample > Makefile.inc.generated ) tmp2:=$(shell cd $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/ ; \
endif rm EUTRA-RRC-Definitions.asn ; \
ln -s EUTRA-RRC-Definitions-86.asn EUTRA-RRC-Definitions.asn ; \
cd $(OPENAIR_TARGETS)/SIMU/USER/ ; \
rm -f $(ASN1_MSG_OBJS1) ; \
rm -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/Makefile.inc.generated ; \
rm -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/Makefile.am.sample ; \
rm -f $(L2_OBJS); \
rm -f *.o ; \
rm -f oaisim ; \
touch $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/.lock-rel8 ; \
rm -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/.lock-rel10 ; \
rm -f $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/asn1c/ASN1_files/.lock-rel10-cba ; \
/bin/bash $(OPENAIR_TARGETS)/SCRIPTS/asn1_generate_rrc_messaging_c_code.bash \
)
tmp:=$(shell cd $(OPENAIR2_DIR)/RRC/LITE/MESSAGES ; \
awk '/converter-sample.c/ {exit} // {print}' Makefile.am.sample > Makefile.inc.generated )
endif
endif endif
tmp:=$(shell cd $(OPENAIR2_DIR)/RRC/LITE/MESSAGES ; if [ ! -s Makefile.am.sample ] ; then /bin/bash $(OPENAIR_TARGETS)/SCRIPTS/asn1_generate_rrc_messaging_c_code.bash ; fi; if [ ! -s Makefile.inc.generated ] ; then awk '/converter-sample.c/ {exit} // {print}' Makefile.am.sample > Makefile.inc.generated ; fi ) tmp:=$(shell cd $(OPENAIR2_DIR)/RRC/LITE/MESSAGES ; \
if [ ! -s Makefile.am.sample ] ; then \
/bin/bash $(OPENAIR_TARGETS)/SCRIPTS/asn1_generate_rrc_messaging_c_code.bash ;\
fi; \
if [ ! -s Makefile.inc.generated ] ; then \
awk '/converter-sample.c/ {exit} // {print}' Makefile.am.sample > Makefile.inc.generated ; \
fi )
include $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/Makefile.inc.generated include $(OPENAIR2_DIR)/RRC/LITE/MESSAGES/Makefile.inc.generated
...@@ -47,5 +110,4 @@ EXTRA_CFLAGS += -I. -I$(OPENAIR2_DIR)/RRC/LITE/MESSAGES ...@@ -47,5 +110,4 @@ EXTRA_CFLAGS += -I. -I$(OPENAIR2_DIR)/RRC/LITE/MESSAGES
ASN1_MODULE_OBJS=${ASN_MODULE_SOURCES:.c=.o} ASN1_MODULE_OBJS=${ASN_MODULE_SOURCES:.c=.o}
ASN1_CONVERTER_OBJS=${ASN_CONVERTER_SOURCES:.c=.o} ASN1_CONVERTER_OBJS=${ASN_CONVERTER_SOURCES:.c=.o}
ASN1_MSG_OBJS=$(ASN1_MODULE_OBJS) $(ASN1_CONVERTER_OBJS) ASN1_MSG_OBJS=$(ASN1_MODULE_OBJS) $(ASN1_CONVERTER_OBJS)
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment