blob: b30b17f2459094ad6896b2eafd38c460bbf23583 [file] [log] [blame]
Daniel Willmann29b9e002015-12-15 15:10:31 +01001SUBDIRS = hnbap rua ranap tests
2
Harald Weltea95d5a52016-01-03 16:22:16 +01003# Build {hnbap,rua,ranap}_{encoder,decoder}.c using asn1tostruct
Daniel Willmann29b9e002015-12-15 15:10:31 +01004ASN1_ROOT = $(top_builddir)/asn1/
5ASN1TOSTRUCT = $(ASN1_ROOT)/utils/asn1tostruct.py
Neels Hofmeyrc51f7352015-12-22 12:21:16 +01006BUILT_SOURCES = hnbap_decoder.c hnbap_encoder.c rua_decoder.c rua_encoder.c ranap_decoder.c ranap_encoder.c
7
Harald Weltede9055f2015-12-18 17:33:49 +01008hnbap_encoder.c hnbap_decoder.c hnbap_ies_defs.h: $(ASN1_ROOT)/hnbap/HNBAP-PDU-Contents.asn
Daniel Willmann29b9e002015-12-15 15:10:31 +01009 $(ASN1TOSTRUCT) -f $<
10
Harald Weltede9055f2015-12-18 17:33:49 +010011rua_encoder.c rua_decoder.c rua_ies_defs.h: $(ASN1_ROOT)/rua/RUA-PDU-Contents.asn
Daniel Willmann29b9e002015-12-15 15:10:31 +010012 $(ASN1TOSTRUCT) -p RUA_ -f $<
13
Alexander Huemerf6d01382015-12-22 14:59:07 +010014ranap_encoder.c ranap_decoder.c ranap_ies_defs.h: $(ASN1_ROOT)/ranap/RANAP-PDU-Contents.asn
Daniel Willmann29b9e002015-12-15 15:10:31 +010015 $(ASN1TOSTRUCT) -p RANAP_ -f $<
Harald Weltea95d5a52016-01-03 16:22:16 +010016
17
18AM_CFLAGS = $(OSMOCORE_CFLAGS) $(OSMOVTY_CFLAGS) $(OSMOGSM_CFLAGS) $(OSMONETIF_CFLAGS) $(ASN1C_CFLAGS) $(OSMOSIGTRAN_CFLAGS) -Ihnbap/
19COMMON_LDADD = -lsctp
20
21# build the shared RANAP library
22#
23RANAP_LIBVERSION=0:0:0
24lib_LTLIBRARIES = libosmo-ranap.la
25libosmo_ranap_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(RANAP_LIBVERSION)
26libosmo_ranap_la_LIBADD = $(OSMOCORE_LIBS) $(OSMOGSM_LIBS) $(ASN1C_LIBS) $(COMMON_LDADD) ranap/libosmo-asn1-ranap.la
Harald Welte056984f2016-01-03 16:31:31 +010027libosmo_ranap_la_SOURCES = ranap_common.c ranap_encoder.c ranap_decoder.c ranap_msg_factory.c iu_helpers.c
Harald Weltea95d5a52016-01-03 16:22:16 +010028
Harald Welte056984f2016-01-03 16:31:31 +010029osmoranap_HEADERS = ranap_common.h ranap_ies_defs.h ranap_msg_factory.h iu_helpers.h
Harald Weltea95d5a52016-01-03 16:22:16 +010030osmoranapdir = $(includedir)/osmocom/ranap
31
32
33# build the actual HomeNodeB gateway
34#
35bin_PROGRAMS = osmo-hnbgw
36
37noinst_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 \
Harald Welte06bc5482016-01-03 17:54:24 +010040 hnbgw_hnbap.h hnbgw_rua.h hnbgw_ranap.h \
41 sccp_helpers.h
Harald Weltea95d5a52016-01-03 16:22:16 +010042
43osmo_hnbgw_SOURCES = hnbap_encoder.c hnbap_decoder.c hnbap_common.c \
44 rua_encoder.c rua_decoder.c rua_common.c \
Harald Welteb66c5d02016-01-03 18:04:28 +010045 rua_msg_factory.c sccp_helpers.c \
Harald Weltea95d5a52016-01-03 16:22:16 +010046 hnbgw.c hnbgw_hnbap.c hnbgw_rua.c hnbgw_ranap.c \
47 context_map.c hnbgw_cn.c
48
49osmo_hnbgw_LDADD = $(OSMOCORE_LIBS) $(OSMOVTY_LIBS) $(OSMOGSM_LIBS) \
50 $(ASN1C_LIBS) $(OSMOSIGTRAN_LIBS) $(COMMON_LDADD) \
51 hnbap/libosmo-asn1-hnbap.a rua/libosmo-asn1-rua.a \
52 libosmo-ranap.la
Neels Hofmeyr5aabad12016-01-04 15:23:09 +010053
54
55regen: regenerate-from-asn1-source
56
57regenerate-from-asn1-source:
58 make -C hnbap regen
59 make -C ranap regen
60 make -C rua regen