Daniel Willmann | 29b9e00 | 2015-12-15 15:10:31 +0100 | [diff] [blame] | 1 | SUBDIRS = hnbap rua ranap tests |
| 2 | |
Harald Welte | a95d5a5 | 2016-01-03 16:22:16 +0100 | [diff] [blame] | 3 | # Build {hnbap,rua,ranap}_{encoder,decoder}.c using asn1tostruct |
Daniel Willmann | 29b9e00 | 2015-12-15 15:10:31 +0100 | [diff] [blame] | 4 | ASN1_ROOT = $(top_builddir)/asn1/ |
| 5 | ASN1TOSTRUCT = $(ASN1_ROOT)/utils/asn1tostruct.py |
Neels Hofmeyr | c51f735 | 2015-12-22 12:21:16 +0100 | [diff] [blame] | 6 | BUILT_SOURCES = hnbap_decoder.c hnbap_encoder.c rua_decoder.c rua_encoder.c ranap_decoder.c ranap_encoder.c |
| 7 | |
Harald Welte | de9055f | 2015-12-18 17:33:49 +0100 | [diff] [blame] | 8 | hnbap_encoder.c hnbap_decoder.c hnbap_ies_defs.h: $(ASN1_ROOT)/hnbap/HNBAP-PDU-Contents.asn |
Daniel Willmann | 29b9e00 | 2015-12-15 15:10:31 +0100 | [diff] [blame] | 9 | $(ASN1TOSTRUCT) -f $< |
| 10 | |
Harald Welte | de9055f | 2015-12-18 17:33:49 +0100 | [diff] [blame] | 11 | rua_encoder.c rua_decoder.c rua_ies_defs.h: $(ASN1_ROOT)/rua/RUA-PDU-Contents.asn |
Daniel Willmann | 29b9e00 | 2015-12-15 15:10:31 +0100 | [diff] [blame] | 12 | $(ASN1TOSTRUCT) -p RUA_ -f $< |
| 13 | |
Alexander Huemer | f6d0138 | 2015-12-22 14:59:07 +0100 | [diff] [blame] | 14 | ranap_encoder.c ranap_decoder.c ranap_ies_defs.h: $(ASN1_ROOT)/ranap/RANAP-PDU-Contents.asn |
Daniel Willmann | 29b9e00 | 2015-12-15 15:10:31 +0100 | [diff] [blame] | 15 | $(ASN1TOSTRUCT) -p RANAP_ -f $< |
Harald Welte | a95d5a5 | 2016-01-03 16:22:16 +0100 | [diff] [blame] | 16 | |
| 17 | |
| 18 | AM_CFLAGS = $(OSMOCORE_CFLAGS) $(OSMOVTY_CFLAGS) $(OSMOGSM_CFLAGS) $(OSMONETIF_CFLAGS) $(ASN1C_CFLAGS) $(OSMOSIGTRAN_CFLAGS) -Ihnbap/ |
| 19 | COMMON_LDADD = -lsctp |
| 20 | |
| 21 | # build the shared RANAP library |
| 22 | # |
| 23 | RANAP_LIBVERSION=0:0:0 |
| 24 | lib_LTLIBRARIES = libosmo-ranap.la |
| 25 | libosmo_ranap_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(RANAP_LIBVERSION) |
| 26 | libosmo_ranap_la_LIBADD = $(OSMOCORE_LIBS) $(OSMOGSM_LIBS) $(ASN1C_LIBS) $(COMMON_LDADD) ranap/libosmo-asn1-ranap.la |
Harald Welte | 056984f | 2016-01-03 16:31:31 +0100 | [diff] [blame] | 27 | libosmo_ranap_la_SOURCES = ranap_common.c ranap_encoder.c ranap_decoder.c ranap_msg_factory.c iu_helpers.c |
Harald Welte | a95d5a5 | 2016-01-03 16:22:16 +0100 | [diff] [blame] | 28 | |
Harald Welte | 056984f | 2016-01-03 16:31:31 +0100 | [diff] [blame] | 29 | osmoranap_HEADERS = ranap_common.h ranap_ies_defs.h ranap_msg_factory.h iu_helpers.h |
Harald Welte | a95d5a5 | 2016-01-03 16:22:16 +0100 | [diff] [blame] | 30 | osmoranapdir = $(includedir)/osmocom/ranap |
| 31 | |
| 32 | |
| 33 | # build the actual HomeNodeB gateway |
| 34 | # |
| 35 | bin_PROGRAMS = osmo-hnbgw |
| 36 | |
| 37 | noinst_HEADERS = hnbap_common.h hnbap_ies_defs.h \ |
| 38 | rua_common.h rua_ies_defs.h \ |
| 39 | context_map.h hnbgw.h hnbgw_cn.h \ |
| 40 | hnbgw_hnbap.h hnbgw_rua.h hnbgw_ranap.h |
| 41 | |
| 42 | osmo_hnbgw_SOURCES = hnbap_encoder.c hnbap_decoder.c hnbap_common.c \ |
| 43 | rua_encoder.c rua_decoder.c rua_common.c \ |
Harald Welte | 056984f | 2016-01-03 16:31:31 +0100 | [diff] [blame] | 44 | asn1helpers.c sccp_helpers.c \ |
Harald Welte | a95d5a5 | 2016-01-03 16:22:16 +0100 | [diff] [blame] | 45 | hnbgw.c hnbgw_hnbap.c hnbgw_rua.c hnbgw_ranap.c \ |
| 46 | context_map.c hnbgw_cn.c |
| 47 | |
| 48 | osmo_hnbgw_LDADD = $(OSMOCORE_LIBS) $(OSMOVTY_LIBS) $(OSMOGSM_LIBS) \ |
| 49 | $(ASN1C_LIBS) $(OSMOSIGTRAN_LIBS) $(COMMON_LDADD) \ |
| 50 | hnbap/libosmo-asn1-hnbap.a rua/libosmo-asn1-rua.a \ |
| 51 | libosmo-ranap.la |