aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-03-08 00:06:40 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-03-20 14:30:43 +0100
commitf444600afe1d1b9ddfd75bb6abcd0d51af6ddad7 (patch)
tree9c2edb7bc3de6f1db536b2e61e0629bbb63f076b
parentd1537e033f2fee06590fdc8df08272a7f91bdb04 (diff)
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
-rw-r--r--include/Makefile.am4
-rw-r--r--src/gsm/Makefile.am4
2 files changed, 6 insertions, 2 deletions
diff --git a/include/Makefile.am b/include/Makefile.am
index 7d0b384c..e2a1b127 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -1,3 +1,5 @@
+BUILT_SOURCES = osmocom/gsm/gsm0503.h
+
nobase_include_HEADERS = \
osmocom/codec/codec.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)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 \
--target-path $(builddir)/osmocom/gsm
diff --git a/src/gsm/Makefile.am b/src/gsm/Makefile.am
index 653bdb96..3a4a0cd3 100644
--- a/src/gsm/Makefile.am
+++ b/src/gsm/Makefile.am
@@ -14,6 +14,8 @@ noinst_HEADERS = milenage/aes.h milenage/aes_i.h milenage/aes_wrap.h \
noinst_LTLIBRARIES = libgsmint.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 \
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 \
@@ -34,7 +36,7 @@ libosmogsm_la_LIBADD = libgsmint.la
EXTRA_DIST = libosmogsm.map
# 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
CLEANFILES = gsm0503_conv.c