summaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs/Makefile.am
blob: d059aeed0fe436f746e47504c42f5bc594496fb3 (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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
AM_CPPFLAGS = \
	$(all_includes) \
	-I$(top_srcdir)/include \
	-I$(top_builddir) \
	$(NULL)

AM_CFLAGS = \
	-Wall \
	-fno-strict-aliasing \
	$(LIBOSMOCORE_CFLAGS) \
	$(LIBOSMOGSM_CFLAGS) \
	$(LIBOSMOVTY_CFLAGS) \
	$(LIBOSMOCTRL_CFLAGS) \
	$(LIBOSMOABIS_CFLAGS) \
	$(LIBOSMOGB_CFLAGS) \
	$(COVERAGE_CFLAGS) \
	$(LIBCARES_CFLAGS) \
	$(LIBCRYPTO_CFLAGS) \
	$(LIBGTP_CFLAGS) \
	$(NULL)
if BUILD_IU
AM_CFLAGS += \
	$(LIBASN1C_CFLAGS) \
	$(LIBOSMOSIGTRAN_CFLAGS) \
	$(LIBOSMORANAP_CFLAGS) \
	$(NULL)
endif

OSMO_LIBS = \
	$(LIBOSMOCORE_LIBS) \
	$(LIBOSMOABIS_LIBS) \
	$(LIBOSMOGSM_LIBS) \
	$(LIBOSMOVTY_LIBS) \
	$(LIBOSMOCTRL_LIBS) \
	$(LIBOSMOGB_LIBS) \
	$(LIBGTP_LIBS) \
	$(NULL)

bin_PROGRAMS = \
	gsup_test_client \
	osmo-gbproxy \
	$(NULL)
if HAVE_LIBGTP
if HAVE_LIBCARES
bin_PROGRAMS += \
	osmo-sgsn \
	osmo-gtphub \
	$(NULL)
endif
endif

osmo_gbproxy_SOURCES = \
	gb_proxy.c \
	gb_proxy_main.c \
	gb_proxy_vty.c \
	gb_proxy_patch.c \
	gb_proxy_tlli.c \
	gb_proxy_peer.c \
	gprs_gb_parse.c \
	gprs_llc_parse.c \
	crc24.c \
	gprs_utils.c \
	$(NULL)
osmo_gbproxy_LDADD = \
	$(top_builddir)/src/libcommon/libcommon.a \
	$(OSMO_LIBS) \
	$(LIBCRYPTO_LIBS) \
	-lrt \
	$(NULL)

osmo_sgsn_SOURCES = \
	gprs_gmm.c \
	gprs_sgsn.c \
	gprs_sndcp.c \
	gprs_sndcp_comp.c \
	gprs_sndcp_dcomp.c \
	gprs_sndcp_pcomp.c \
	gprs_sndcp_vty.c \
	gprs_sndcp_xid.c \
	sgsn_main.c \
	sgsn_vty.c \
	sgsn_libgtp.c \
	gprs_llc.c \
	gprs_llc_parse.c \
	gprs_llc_vty.c \
	crc24.c \
	sgsn_ctrl.c \
	sgsn_auth.c \
	gprs_subscriber.c \
	gprs_utils.c \
	gprs_gsup_client.c \
	sgsn_cdr.c \
	sgsn_ares.c \
	slhc.c \
	gprs_llc_xid.c \
	v42bis.c \
	$(NULL)
osmo_sgsn_LDADD = \
	$(top_builddir)/src/libcommon/libcommon.a \
	$(OSMO_LIBS) \
	$(LIBOSMOABIS_LIBS) \
	$(LIBCARES_LIBS) \
	$(LIBCRYPTO_LIBS) \
	-lrt \
	-lgtp \
	-lm \
	$(NULL)
if BUILD_IU
osmo_sgsn_LDADD += \
	$(top_builddir)/src/libiu/libiu.a \
	$(LIBOSMOSIGTRAN_LIBS) \
	$(LIBOSMORANAP_LIBS) \
	$(LIBASN1C_LIBS) \
	$(NULL)
endif

osmo_gtphub_SOURCES = \
	gtphub_main.c \
	gtphub.c \
	gtphub_sock.c \
	gtphub_ares.c \
	gtphub_vty.c \
	sgsn_ares.c \
	gprs_utils.c \
	$(NULL)
osmo_gtphub_LDADD = \
	$(top_builddir)/src/libcommon/libcommon.a \
	$(LIBOSMOCORE_LIBS) \
	$(LIBOSMOGSM_LIBS) \
	$(LIBOSMOVTY_LIBS) \
	$(LIBCARES_LIBS) \
	$(LIBGTP_LIBS) \
	-lrt \
	$(NULL)

gsup_test_client_SOURCES = \
	gprs_gsup_client.c \
	gsup_test_client.c \
	$(NULL)
gsup_test_client_LDADD = \
	$(top_builddir)/src/libcommon/libcommon.a \
	$(LIBOSMOCORE_LIBS) \
	$(LIBOSMOGSM_LIBS) \
	$(LIBOSMOVTY_LIBS) \
	$(LIBOSMOABIS_LIBS) \
	-lrt \
	$(NULL)