blob: a30674c536b77fa3239e4ce397ebefd97ee4a511 [file] [log] [blame]
Harald Weltee844bf72019-05-06 15:25:10 +02001ASN_MODULE_SRC= \
2 SABP_InitiatingMessage.c \
3 SABP_SABP-PDU.c \
4 SABP_SuccessfulOutcome.c \
5 SABP_UnsuccessfulOutcome.c \
6 SABP_Criticality.c \
7 SABP_Presence.c \
8 SABP_ProcedureCode.c \
9 SABP_ProtocolExtensionID.c \
10 SABP_ProtocolIE-ID.c \
11 SABP_TriggeringMessage.c \
12 SABP_IE-Extensions.c \
13 SABP_Available-Bandwidth.c \
14 SABP_Broadcast-Message-Content.c \
15 SABP_Broadcast-Message-Content-Validity-Indicator.c \
16 SABP_Category.c \
17 SABP_Cause.c \
18 SABP_Criticality-Diagnostics.c \
19 SABP_CriticalityDiagnostics-IE-List.c \
20 SABP_MessageStructure.c \
21 SABP_Data-Coding-Scheme.c \
22 SABP_Failure-List.c \
23 SABP_Failure-List-Item.c \
24 SABP_Message-Identifier.c \
25 SABP_New-Serial-Number.c \
26 SABP_Number-of-Broadcasts-Completed-List.c \
27 SABP_Number-of-Broadcasts-Completed-List-Item.c \
28 SABP_Number-Of-Broadcasts-Completed-Info.c \
29 SABP_Number-of-Broadcasts-Requested.c \
30 SABP_Old-Serial-Number.c \
31 SABP_Paging-ETWS-Indicator.c \
32 SABP_Radio-Resource-Loading-List.c \
33 SABP_Radio-Resource-Loading-List-Item.c \
34 SABP_Recovery-Indication.c \
35 SABP_RepetitionNumber0.c \
36 SABP_RepetitionNumber1.c \
37 SABP_Repetition-Period.c \
38 SABP_Serial-Number.c \
39 SABP_Service-Area-Identifier.c \
40 SABP_Service-Areas-List.c \
41 SABP_TypeOfError.c \
42 SABP_WarningSecurityInfo.c \
43 SABP_Warning-Type.c \
44 SABP_Write-Replace.c \
45 SABP_Write-Replace-Complete.c \
46 SABP_Write-Replace-Failure.c \
47 SABP_Kill.c \
48 SABP_Kill-Complete.c \
49 SABP_Kill-Failure.c \
50 SABP_Load-Query.c \
51 SABP_Load-Query-Complete.c \
52 SABP_Load-Query-Failure.c \
53 SABP_Message-Status-Query.c \
54 SABP_Message-Status-Query-Complete.c \
55 SABP_Message-Status-Query-Failure.c \
56 SABP_Reset.c \
57 SABP_Reset-Complete.c \
58 SABP_Reset-Failure.c \
59 SABP_Restart.c \
60 SABP_Failure.c \
61 SABP_Error-Indication.c \
62 SABP_IE.c \
63 $(NULL)
64
65ASN_MODULE_INC= \
66 SABP_InitiatingMessage.h \
67 SABP_SABP-PDU.h \
68 SABP_SuccessfulOutcome.h \
69 SABP_UnsuccessfulOutcome.h \
70 SABP_Criticality.h \
71 SABP_Presence.h \
72 SABP_ProcedureCode.h \
73 SABP_ProtocolExtensionID.h \
74 SABP_ProtocolIE-ID.h \
75 SABP_TriggeringMessage.h \
76 SABP_IE-Extensions.h \
77 SABP_Available-Bandwidth.h \
78 SABP_Broadcast-Message-Content.h \
79 SABP_Broadcast-Message-Content-Validity-Indicator.h \
80 SABP_Category.h \
81 SABP_Cause.h \
82 SABP_Criticality-Diagnostics.h \
83 SABP_CriticalityDiagnostics-IE-List.h \
84 SABP_MessageStructure.h \
85 SABP_Data-Coding-Scheme.h \
86 SABP_Failure-List.h \
87 SABP_Failure-List-Item.h \
88 SABP_Message-Identifier.h \
89 SABP_New-Serial-Number.h \
90 SABP_Number-of-Broadcasts-Completed-List.h \
91 SABP_Number-of-Broadcasts-Completed-List-Item.h \
92 SABP_Number-Of-Broadcasts-Completed-Info.h \
93 SABP_Number-of-Broadcasts-Requested.h \
94 SABP_Old-Serial-Number.h \
95 SABP_Paging-ETWS-Indicator.h \
96 SABP_Radio-Resource-Loading-List.h \
97 SABP_Radio-Resource-Loading-List-Item.h \
98 SABP_Recovery-Indication.h \
99 SABP_RepetitionNumber0.h \
100 SABP_RepetitionNumber1.h \
101 SABP_Repetition-Period.h \
102 SABP_Serial-Number.h \
103 SABP_Service-Area-Identifier.h \
104 SABP_Service-Areas-List.h \
105 SABP_TypeOfError.h \
106 SABP_WarningSecurityInfo.h \
107 SABP_Warning-Type.h \
108 SABP_Write-Replace.h \
109 SABP_Write-Replace-Complete.h \
110 SABP_Write-Replace-Failure.h \
111 SABP_Kill.h \
112 SABP_Kill-Complete.h \
113 SABP_Kill-Failure.h \
114 SABP_Load-Query.h \
115 SABP_Load-Query-Complete.h \
116 SABP_Load-Query-Failure.h \
117 SABP_Message-Status-Query.h \
118 SABP_Message-Status-Query-Complete.h \
119 SABP_Message-Status-Query-Failure.h \
120 SABP_Reset.h \
121 SABP_Reset-Complete.h \
122 SABP_Reset-Failure.h \
123 SABP_Restart.h \
124 SABP_Failure.h \
125 SABP_Error-Indication.h \
126 SABP_IE.h \
127 $(NULL)
128
129AM_CFLAGS = -I$(top_srcdir)/include $(ASN1C_CFLAGS) $(OSMOCORE_CFLAGS)
130
131noinst_LTLIBRARIES=libosmo-asn1-sabp.la
132libosmo_asn1_sabp_la_SOURCES=$(ASN_MODULE_SRC)
133libosmo_asn1_sabp_la_LIBADD=$(ASN1C_LDADD)
134
135regen: regenerate-from-asn1-source
136
137regenerate-from-asn1-source:
138 ASN1C_PREFIX="SABP_" asn1c -gen-PER $(top_srcdir)/asn1/sabp/SABP-CommonDataTypes.asn $(top_srcdir)/asn1/sabp/SABP-Constants.asn $(top_srcdir)/asn1/sabp/SABP-IEs.asn $(top_srcdir)/asn1/sabp/SABP-PDU.asn
139# remove the local copy of the runtime code
140 @rm ANY.* INTEGER.* NativeEnumerated.* NativeInteger.* asn_* OCTET_STRING.* converter-sample.c per_* xer_* constr* der_* ber_* BIT_STRING.*
141# change include style to `#include <dir/foo.h>'
142 sed -i 's/Member/MemberA/' SABP_MessageStructure.[ch]
143 sed -i 's/Member/MemberB/' SABP_Criticality-Diagnostics.[ch]
144# add missing includes
145 sed -i '/#include "SABP_Serial-Number.h"/a #include <constr_CHOICE.h>' SABP_Old-Serial-Number.h SABP_New-Serial-Number.h
146# change include style to `#include <dir/foo.h>'
147 $(top_srcdir)/move-asn1-header-files.sh osmocom/sabp $(ASN_MODULE_INC)
148