summaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs/Makefile.am
blob: 02c8878721589d3e54987941b975f3376f29c888 (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
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) \
	$(LIBOSMOGSM_LIBS) \
	$(LIBOSMOVTY_LIBS) \
	$(LIBOSMOCTRL_LIBS) \
	$(LIBOSMOGB_LIBS) \
	$(NULL)

bin_PROGRAMS = \
	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_vty.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 \
	oap.c \
	oap_messages.c \
	gprs_llc_xid.c \
	$(NULL)
osmo_sgsn_LDADD = \
	$(top_builddir)/src/libcommon/libcommon.a \
	$(OSMO_LIBS) \
	$(LIBOSMOABIS_LIBS) \
	$(LIBCARES_LIBS) \
	$(LIBCRYPTO_LIBS) \
	-lrt \
	-lgtp \
	$(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) \
	-lrt \
	-lgtp \
	$(NULL)