Oliver Smith | 2bdcc8e | 2019-11-20 10:56:35 +0100 | [diff] [blame] | 1 | SUBDIRS = \ |
| 2 | gsupclient \ |
| 3 | mslookup \ |
| 4 | $(NULL) |
Harald Welte | ec6915a | 2018-07-23 14:25:33 +0200 | [diff] [blame] | 5 | |
Neels Hofmeyr | 40d8b01 | 2016-12-11 00:27:48 +0100 | [diff] [blame] | 6 | AM_CFLAGS = \ |
| 7 | -Wall \ |
| 8 | $(LIBOSMOCORE_CFLAGS) \ |
| 9 | $(LIBOSMOGSM_CFLAGS) \ |
| 10 | $(LIBOSMOVTY_CFLAGS) \ |
Max | 372868b | 2017-03-02 12:12:00 +0100 | [diff] [blame] | 11 | $(LIBOSMOCTRL_CFLAGS) \ |
Neels Hofmeyr | 40d8b01 | 2016-12-11 00:27:48 +0100 | [diff] [blame] | 12 | $(LIBOSMOABIS_CFLAGS) \ |
| 13 | $(SQLITE3_CFLAGS) \ |
| 14 | $(NULL) |
| 15 | |
Harald Welte | 7d29d59 | 2018-07-28 22:00:08 +0200 | [diff] [blame] | 16 | AM_CPPFLAGS = -I$(top_srcdir)/include \ |
Neels Hofmeyr | 2f75803 | 2019-11-20 00:37:07 +0100 | [diff] [blame] | 17 | -I$(top_builddir)/include \ |
Harald Welte | 7d29d59 | 2018-07-28 22:00:08 +0200 | [diff] [blame] | 18 | $(NULL) |
| 19 | |
Neels Hofmeyr | 40d8b01 | 2016-12-11 00:27:48 +0100 | [diff] [blame] | 20 | EXTRA_DIST = \ |
| 21 | populate_hlr_db.pl \ |
Neels Hofmeyr | 4655e6f | 2018-12-04 14:13:47 +0100 | [diff] [blame] | 22 | db_sql2c.sed \ |
Neels Hofmeyr | 40d8b01 | 2016-12-11 00:27:48 +0100 | [diff] [blame] | 23 | $(NULL) |
| 24 | |
Neels Hofmeyr | 7750d2c | 2017-10-24 23:26:27 +0200 | [diff] [blame] | 25 | BUILT_SOURCES = \ |
| 26 | db_bootstrap.h \ |
| 27 | $(NULL) |
| 28 | CLEANFILES = $(BUILT_SOURCES) |
| 29 | |
Neels Hofmeyr | 40d8b01 | 2016-12-11 00:27:48 +0100 | [diff] [blame] | 30 | noinst_HEADERS = \ |
Neels Hofmeyr | 7750d2c | 2017-10-24 23:26:27 +0200 | [diff] [blame] | 31 | db_bootstrap.h \ |
Neels Hofmeyr | 40d8b01 | 2016-12-11 00:27:48 +0100 | [diff] [blame] | 32 | $(NULL) |
| 33 | |
| 34 | bin_PROGRAMS = \ |
| 35 | osmo-hlr \ |
Neels Hofmeyr | 73d14af | 2017-10-24 23:26:53 +0200 | [diff] [blame] | 36 | osmo-hlr-db-tool \ |
Harald Welte | 7d29d59 | 2018-07-28 22:00:08 +0200 | [diff] [blame] | 37 | osmo-euse-demo \ |
Neels Hofmeyr | cb2a634 | 2016-12-12 17:34:25 +0100 | [diff] [blame] | 38 | $(NULL) |
| 39 | |
Neels Hofmeyr | 40d8b01 | 2016-12-11 00:27:48 +0100 | [diff] [blame] | 40 | osmo_hlr_SOURCES = \ |
| 41 | auc.c \ |
Max | 372868b | 2017-03-02 12:12:00 +0100 | [diff] [blame] | 42 | ctrl.c \ |
Neels Hofmeyr | 40d8b01 | 2016-12-11 00:27:48 +0100 | [diff] [blame] | 43 | db.c \ |
| 44 | db_auc.c \ |
| 45 | db_hlr.c \ |
| 46 | gsup_router.c \ |
| 47 | gsup_server.c \ |
| 48 | hlr.c \ |
| 49 | logging.c \ |
| 50 | rand_urandom.c \ |
Neels Hofmeyr | 7685a78 | 2017-01-30 23:30:26 +0100 | [diff] [blame] | 51 | hlr_vty.c \ |
Neels Hofmeyr | 183e700 | 2017-10-06 02:59:54 +0200 | [diff] [blame] | 52 | hlr_vty_subscr.c \ |
Neels Hofmeyr | 9d307ec | 2018-05-04 16:06:32 +0200 | [diff] [blame] | 53 | gsup_send.c \ |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 54 | hlr_ussd.c \ |
Neels Hofmeyr | f13a8bc | 2019-11-20 02:36:45 +0100 | [diff] [blame] | 55 | lu_fsm.c \ |
Neels Hofmeyr | 40d8b01 | 2016-12-11 00:27:48 +0100 | [diff] [blame] | 56 | $(NULL) |
| 57 | |
| 58 | osmo_hlr_LDADD = \ |
Neels Hofmeyr | f13a8bc | 2019-11-20 02:36:45 +0100 | [diff] [blame] | 59 | $(top_builddir)/src/gsupclient/libosmo-gsup-client.la \ |
Neels Hofmeyr | 40d8b01 | 2016-12-11 00:27:48 +0100 | [diff] [blame] | 60 | $(LIBOSMOCORE_LIBS) \ |
| 61 | $(LIBOSMOGSM_LIBS) \ |
| 62 | $(LIBOSMOVTY_LIBS) \ |
Max | 372868b | 2017-03-02 12:12:00 +0100 | [diff] [blame] | 63 | $(LIBOSMOCTRL_LIBS) \ |
Neels Hofmeyr | 40d8b01 | 2016-12-11 00:27:48 +0100 | [diff] [blame] | 64 | $(LIBOSMOABIS_LIBS) \ |
| 65 | $(SQLITE3_LIBS) \ |
| 66 | $(NULL) |
| 67 | |
Neels Hofmeyr | 73d14af | 2017-10-24 23:26:53 +0200 | [diff] [blame] | 68 | osmo_hlr_db_tool_SOURCES = \ |
| 69 | hlr_db_tool.c \ |
| 70 | db.c \ |
| 71 | db_hlr.c \ |
| 72 | logging.c \ |
| 73 | rand_urandom.c \ |
| 74 | dbd_decode_binary.c \ |
Neels Hofmeyr | 008ce4b | 2019-12-04 01:04:32 +0100 | [diff] [blame] | 75 | $(srcdir)/gsupclient/gsup_peer_id.c \ |
Neels Hofmeyr | 73d14af | 2017-10-24 23:26:53 +0200 | [diff] [blame] | 76 | $(NULL) |
| 77 | |
| 78 | osmo_hlr_db_tool_LDADD = \ |
| 79 | $(LIBOSMOCORE_LIBS) \ |
| 80 | $(LIBOSMOGSM_LIBS) \ |
| 81 | $(SQLITE3_LIBS) \ |
| 82 | $(NULL) |
| 83 | |
Harald Welte | 7d29d59 | 2018-07-28 22:00:08 +0200 | [diff] [blame] | 84 | osmo_euse_demo_SOURCES = \ |
| 85 | osmo-euse-demo.c \ |
| 86 | $(NULL) |
| 87 | |
| 88 | osmo_euse_demo_LDADD = \ |
| 89 | $(top_builddir)/src/gsupclient/libosmo-gsup-client.la \ |
| 90 | $(LIBOSMOCORE_LIBS) \ |
| 91 | $(LIBOSMOGSM_LIBS) \ |
| 92 | $(NULL) |
| 93 | |
Vadim Yanitskiy | fbd736e | 2018-07-31 22:40:30 +0700 | [diff] [blame] | 94 | if DB_SQLITE_DEBUG |
| 95 | osmo_hlr_SOURCES += db_debug.c |
| 96 | osmo_hlr_db_tool_SOURCES += db_debug.c |
| 97 | endif |
| 98 | |
Neels Hofmeyr | 7750d2c | 2017-10-24 23:26:27 +0200 | [diff] [blame] | 99 | BOOTSTRAP_SQL = $(top_srcdir)/sql/hlr.sql |
| 100 | |
Neels Hofmeyr | 4655e6f | 2018-12-04 14:13:47 +0100 | [diff] [blame] | 101 | db_bootstrap.h: $(BOOTSTRAP_SQL) $(srcdir)/db_sql2c.sed |
| 102 | echo "/* DO NOT EDIT THIS FILE. It is generated from files in osmo-hlr.git/sql/ */" > "$@" |
Neels Hofmeyr | 7750d2c | 2017-10-24 23:26:27 +0200 | [diff] [blame] | 103 | echo "#pragma once" >> "$@" |
| 104 | echo "static const char *stmt_bootstrap_sql[] = {" >> "$@" |
| 105 | cat "$(BOOTSTRAP_SQL)" \ |
Neels Hofmeyr | 4655e6f | 2018-12-04 14:13:47 +0100 | [diff] [blame] | 106 | | sed -f "$(srcdir)/db_sql2c.sed" \ |
Neels Hofmeyr | 7750d2c | 2017-10-24 23:26:27 +0200 | [diff] [blame] | 107 | >> "$@" |
| 108 | echo "};" >> "$@" |