aboutsummaryrefslogtreecommitdiffstats
path: root/src/rua/Makefile
blob: c8e3471755cfdc32d59865646805f78c37e75a99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
ASN_MODULE_SOURCES=	\
	RUA_Criticality.c	\
	RUA_Presence.c	\
	RUA_ProcedureCode.c	\
	RUA_PrivateIE-ID.c	\
	RUA_ProtocolIE-ID.c	\
	RUA_TriggeringMessage.c	\
	RUA_IE-Extensions.c	\
	RUA_CN-DomainIndicator.c	\
	RUA_CSGMembershipStatus.c	\
	RUA_Establishment-Cause.c	\
	RUA_Context-ID.c	\
	RUA_IntraDomainNasNodeSelector.c	\
	RUA_Gsm-map-IDNNS.c	\
	RUA_Ansi-41-IDNNS.c	\
	RUA_RANAP-Message.c	\
	RUA_RoutingParameter.c	\
	RUA_Cause.c	\
	RUA_CauseRadioNetwork.c	\
	RUA_CauseTransport.c	\
	RUA_CauseProtocol.c	\
	RUA_CauseMisc.c	\
	RUA_CriticalityDiagnostics.c	\
	RUA_CriticalityDiagnostics-IE-List.c	\
	RUA_TypeOfError.c	\
	RUA_RUA-PDU.c	\
	RUA_InitiatingMessage.c	\
	RUA_SuccessfulOutcome.c	\
	RUA_UnsuccessfulOutcome.c	\
	RUA_Connect.c	\
	RUA_DirectTransfer.c	\
	RUA_Disconnect.c	\
	RUA_ConnectionlessTransfer.c	\
	RUA_ErrorIndication.c	\
	RUA_PrivateMessage.c	\
	RUA_IE.c

ASN_MODULE_HEADERS=	\
	RUA_Criticality.h	\
	RUA_Presence.h	\
	RUA_ProcedureCode.h	\
	RUA_PrivateIE-ID.h	\
	RUA_ProtocolIE-ID.h	\
	RUA_TriggeringMessage.h	\
	RUA_IE-Extensions.h	\
	RUA_CN-DomainIndicator.h	\
	RUA_CSGMembershipStatus.h	\
	RUA_Establishment-Cause.h	\
	RUA_Context-ID.h	\
	RUA_IntraDomainNasNodeSelector.h	\
	RUA_Gsm-map-IDNNS.h	\
	RUA_Ansi-41-IDNNS.h	\
	RUA_RANAP-Message.h	\
	RUA_RoutingParameter.h	\
	RUA_Cause.h	\
	RUA_CauseRadioNetwork.h	\
	RUA_CauseTransport.h	\
	RUA_CauseProtocol.h	\
	RUA_CauseMisc.h	\
	RUA_CriticalityDiagnostics.h	\
	RUA_CriticalityDiagnostics-IE-List.h	\
	RUA_TypeOfError.h	\
	RUA_RUA-PDU.h	\
	RUA_InitiatingMessage.h	\
	RUA_SuccessfulOutcome.h	\
	RUA_UnsuccessfulOutcome.h	\
	RUA_Connect.h	\
	RUA_DirectTransfer.h	\
	RUA_Disconnect.h	\
	RUA_ConnectionlessTransfer.h	\
	RUA_ErrorIndication.h	\
	RUA_PrivateMessage.h	\
	RUA_IE.h


lib_LTLIBRARIES=libosmo-asn1-rua.la
libsomething_la_SOURCES=$(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)

# Remove the lines below to convert it into a pure .am file
CFLAGS += -I. `pkg-config --cflags libasn1c`
OBJS=${ASN_MODULE_SOURCES:.c=.o}

all: libosmo-asn1-rua.a

libosmo-asn1-rua.a: ${OBJS}
	$(AR) r $@ $^

.SUFFIXES:
.SUFFIXES: .c .o

.c.o:
	$(CC) $(CFLAGS) -o $@ -c $<

clean:
	rm -f libosmo-asn1-rua.a
	rm -f $(OBJS)

clean-srcs:
	@rm -f *.c *.h Makefile.am.sample

regen: regenerate-from-asn1-source

regenerate-from-asn1-source: clean clean-srcs
	ASN1C_PREFIX="RUA_" asn1c -gen-PER ../../asn1/rua/RUA-CommonDataTypes.asn ../../asn1/rua/RUA-Constants.asn ../../asn1/rua/RUA-IEs.asn ../../asn1/rua/RUA-PDU.asn
	# remove the local copy of the runtime code
	@rm ANY.* BOOLEAN.* INTEGER.* NativeEnumerated.* NativeInteger.* OBJECT_IDENTIFIER.* asn_* OCTET_STRING.* converter-sample.c per_* xer_* constr* der_* ber_* BIT_STRING.*