diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2016-01-06 14:18:51 +0100 |
---|---|---|
committer | Daniel Willmann <dwillmann@sysmocom.de> | 2016-01-07 10:52:52 +0100 |
commit | 8fda362dd8b30e921e8384ebe9f8afa3bed052fa (patch) | |
tree | d3cdbfd819aeb1f41b31773b164505c2d1710816 /src | |
parent | f3d2c74250be45d9b213f8d77c1b186e80c09b23 (diff) |
Correct postprocessing of generated files
Rewrite ranap_common.h include path in ranap_ies_defs.h as well
Don't move ranap_ies_defs.h to the install directory, but move it inside
the source tree
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index f07f457..29daeb5 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -13,12 +13,12 @@ rua_encoder.c rua_decoder.c rua_ies_defs.h: $(ASN1_ROOT)/rua/RUA-PDU-Contents.as ranap_encoder.c ranap_decoder.c: $(ASN1_ROOT)/ranap/RANAP-PDU-Contents.asn $(ASN1TOSTRUCT) $(ASN1TOSTRUCT) -p RANAP_ -f $< - mv ranap_ies_defs.h $(includedir)/osmocom/ranap/ -# this is ugly ^. ranap_ies_defs.h is generated from asn1tostruct.py here, but -# it should live in include/osmocom/ranap/. # We also need to replace the include in the newly generated .c files: sed -i 's,^#include "ranap_ies_defs.h",#include <osmocom/ranap/ranap_ies_defs.h>,' ranap_encoder.c ranap_decoder.c - sed -i 's,^#include "ranap_common.h",#include <osmocom/ranap/ranap_common.h>,' ranap_encoder.c ranap_decoder.c + sed -i 's,^#include "ranap_common.h",#include <osmocom/ranap/ranap_common.h>,' ranap_encoder.c ranap_decoder.c ranap_ies_defs.h + mv ranap_ies_defs.h $(top_srcdir)/include/osmocom/ranap/ +# this is ugly ^. ranap_ies_defs.h is generated from asn1tostruct.py here, but +# it should live in include/osmocom/ranap/. AM_CFLAGS = $(OSMOCORE_CFLAGS) $(OSMOVTY_CFLAGS) $(OSMOGSM_CFLAGS) $(OSMONETIF_CFLAGS) $(ASN1C_CFLAGS) $(OSMOSIGTRAN_CFLAGS) -I../include COMMON_LDADD = -lsctp |