mirror of https://gerrit.osmocom.org/libosmocore
build: fix build dependencies for generated sources
Ensure that a changed conv_gen.py and/or conv_codes_gsm.py result in regeneration of the gsm0503* generated sources. Before this patch, manual cleaning of the generated files was necessary to benefit from a code update. Change-Id: Ib4328662c21280c0ea6aa9391a64ada2c6598704
This commit is contained in:
parent
d1537e033f
commit
f444600afe
|
@ -1,3 +1,5 @@
|
||||||
|
BUILT_SOURCES = osmocom/gsm/gsm0503.h
|
||||||
|
|
||||||
nobase_include_HEADERS = \
|
nobase_include_HEADERS = \
|
||||||
osmocom/codec/codec.h \
|
osmocom/codec/codec.h \
|
||||||
osmocom/core/application.h \
|
osmocom/core/application.h \
|
||||||
|
@ -149,7 +151,7 @@ osmocom/core/crc%gen.h: osmocom/core/crcXXgen.h.tpl
|
||||||
$(AM_V_GEN)$(MKDIR_P) $(dir $@)
|
$(AM_V_GEN)$(MKDIR_P) $(dir $@)
|
||||||
$(AM_V_GEN)sed -e's/XX/$*/g' $< > $@
|
$(AM_V_GEN)sed -e's/XX/$*/g' $< > $@
|
||||||
|
|
||||||
osmocom/gsm/gsm0503.h:
|
osmocom/gsm/gsm0503.h: $(top_srcdir)/utils/conv_gen.py $(top_srcdir)/utils/conv_codes_gsm.py
|
||||||
$(AM_V_GEN)python2 $(top_srcdir)/utils/conv_gen.py gen_header gsm \
|
$(AM_V_GEN)python2 $(top_srcdir)/utils/conv_gen.py gen_header gsm \
|
||||||
--target-path $(builddir)/osmocom/gsm
|
--target-path $(builddir)/osmocom/gsm
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,8 @@ noinst_HEADERS = milenage/aes.h milenage/aes_i.h milenage/aes_wrap.h \
|
||||||
noinst_LTLIBRARIES = libgsmint.la
|
noinst_LTLIBRARIES = libgsmint.la
|
||||||
lib_LTLIBRARIES = libosmogsm.la
|
lib_LTLIBRARIES = libosmogsm.la
|
||||||
|
|
||||||
|
BUILT_SOURCES = gsm0503_conv.c
|
||||||
|
|
||||||
libgsmint_la_SOURCES = a5.c rxlev_stat.c tlv_parser.c comp128.c comp128v23.c \
|
libgsmint_la_SOURCES = a5.c rxlev_stat.c tlv_parser.c comp128.c comp128v23.c \
|
||||||
gsm_utils.c rsl.c gsm48.c gsm48_ie.c gsm0808.c sysinfo.c \
|
gsm_utils.c rsl.c gsm48.c gsm48_ie.c gsm0808.c sysinfo.c \
|
||||||
gprs_cipher_core.c gprs_rlc.c gsm0480.c abis_nm.c gsm0502.c \
|
gprs_cipher_core.c gprs_rlc.c gsm0480.c abis_nm.c gsm0502.c \
|
||||||
|
@ -34,7 +36,7 @@ libosmogsm_la_LIBADD = libgsmint.la
|
||||||
EXTRA_DIST = libosmogsm.map
|
EXTRA_DIST = libosmogsm.map
|
||||||
|
|
||||||
# Convolutional codes generation
|
# Convolutional codes generation
|
||||||
gsm0503_conv.c:
|
gsm0503_conv.c: $(top_srcdir)/utils/conv_gen.py $(top_srcdir)/utils/conv_codes_gsm.py
|
||||||
$(AM_V_GEN)python2 $(top_srcdir)/utils/conv_gen.py gen_codes gsm
|
$(AM_V_GEN)python2 $(top_srcdir)/utils/conv_gen.py gen_codes gsm
|
||||||
|
|
||||||
CLEANFILES = gsm0503_conv.c
|
CLEANFILES = gsm0503_conv.c
|
||||||
|
|
Loading…
Reference in New Issue