2019-09-25 12:48:00 -07:00
|
|
|
AUTOMAKE_OPTIONS = foreign
|
|
|
|
|
2020-11-28 12:24:23 -08:00
|
|
|
BUILT_SOURCES =#
|
|
|
|
CLEANFILES =#
|
|
|
|
|
2022-06-24 17:05:44 -07:00
|
|
|
DEFS += -DIRCD_UNIT
|
|
|
|
DEFS += -DIRCD_MATRIX_UNIT
|
2019-09-25 12:48:00 -07:00
|
|
|
|
2022-06-24 17:05:44 -07:00
|
|
|
AM_CPPFLAGS =#
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/include
|
2019-09-25 12:48:00 -07:00
|
|
|
|
2022-06-24 17:05:44 -07:00
|
|
|
AM_CXXFLAGS =#
|
2020-09-13 14:30:04 -07:00
|
|
|
|
2022-06-24 17:05:44 -07:00
|
|
|
AM_LDFLAGS =#
|
|
|
|
AM_LDFLAGS += -version-info 0:1:0
|
|
|
|
AM_LDFLAGS += -Wl,--sort-section=name
|
|
|
|
AM_LDFLAGS += -Wl,--no-undefined-version
|
|
|
|
AM_LDFLAGS += -Wl,--allow-shlib-undefined
|
|
|
|
AM_LDFLAGS += -Wl,--unresolved-symbols=ignore-in-shared-libs
|
2022-07-27 15:43:22 -07:00
|
|
|
AM_LDFLAGS += -Wl,-Bsymbolic
|
2022-06-24 17:05:44 -07:00
|
|
|
AM_LDFLAGS += -Wl,-z,lazy
|
|
|
|
AM_LDFLAGS += -L$(top_srcdir)/ircd
|
|
|
|
AM_LDFLAGS += $(PLATFORM_LDFLAGS)
|
2019-09-25 12:48:00 -07:00
|
|
|
|
2022-07-19 12:38:10 -07:00
|
|
|
if CLANG_PCH
|
|
|
|
AM_CPPFLAGS += -include-pch $(top_srcdir)/include/ircd/matrix.pic.h.gch
|
|
|
|
AM_CPPFLAGS += -include ircd/mods/mapi.h
|
|
|
|
else
|
|
|
|
AM_CPPFLAGS += -include ircd/matrix.pic.h
|
|
|
|
AM_CPPFLAGS += -include ircd/mods/mapi.h
|
|
|
|
endif
|
|
|
|
|
2020-04-17 21:19:28 -07:00
|
|
|
if GCC
|
|
|
|
AM_CXXFLAGS += -ftls-model=local-dynamic
|
|
|
|
endif
|
|
|
|
|
2020-04-17 21:21:28 -07:00
|
|
|
if LTO
|
2022-07-20 10:44:54 -07:00
|
|
|
if GCC
|
|
|
|
AM_CXXFLAGS += -flto=auto
|
|
|
|
endif
|
2020-04-17 21:21:28 -07:00
|
|
|
endif
|
|
|
|
|
2020-05-11 01:58:25 -07:00
|
|
|
if LTO
|
|
|
|
if CLANG
|
2022-07-20 10:44:54 -07:00
|
|
|
AM_CXXFLAGS += -flto=thin
|
2020-05-11 01:58:25 -07:00
|
|
|
AM_CXXFLAGS += -fstrict-vtable-pointers
|
|
|
|
AM_CXXFLAGS += -fwhole-program-vtables
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2022-06-24 17:05:44 -07:00
|
|
|
if GOLD
|
2022-06-29 19:07:43 -07:00
|
|
|
AM_LDFLAGS += -Wl,--no-gnu-unique
|
2022-06-24 17:05:44 -07:00
|
|
|
AM_LDFLAGS += -Wl,--no-text-reorder
|
|
|
|
AM_LDFLAGS += -Wl,--sort-common=descending
|
|
|
|
endif
|
|
|
|
|
2019-09-25 12:48:00 -07:00
|
|
|
if MINGW
|
2020-11-28 12:24:23 -08:00
|
|
|
AM_LDFLAGS += -Wl,--enable-runtime-pseudo-reloc
|
2019-09-25 12:48:00 -07:00
|
|
|
endif
|
|
|
|
|
2023-01-16 12:22:24 -08:00
|
|
|
CXXFLAGS += $(EXTRA_CXXFLAGS)
|
|
|
|
CPPFLAGS += $(EXTRA_CPPFLAGS)
|
|
|
|
LDFLAGS += $(EXTRA_LDFLAGS)
|
|
|
|
|
|
|
|
#
|
|
|
|
# libircd_matrix
|
|
|
|
#
|
2022-06-24 17:05:44 -07:00
|
|
|
|
2019-09-25 12:48:00 -07:00
|
|
|
libircd_matrixdir = @libdir@
|
2022-07-09 14:53:52 -07:00
|
|
|
libircd_matrix_LTLIBRARIES =#
|
|
|
|
libircd_matrix_LTLIBRARIES += libircd_matrix.la
|
2019-09-25 20:30:26 -07:00
|
|
|
|
2019-09-25 12:48:00 -07:00
|
|
|
libircd_matrix_la_SOURCES =#
|
|
|
|
libircd_matrix_la_SOURCES += name.cc
|
|
|
|
libircd_matrix_la_SOURCES += id.cc
|
|
|
|
libircd_matrix_la_SOURCES += dbs.cc
|
2020-03-25 11:06:29 -07:00
|
|
|
libircd_matrix_la_SOURCES += dbs_event_idx.cc
|
|
|
|
libircd_matrix_la_SOURCES += dbs_event_json.cc
|
|
|
|
libircd_matrix_la_SOURCES += dbs_event_column.cc
|
|
|
|
libircd_matrix_la_SOURCES += dbs_event_refs.cc
|
|
|
|
libircd_matrix_la_SOURCES += dbs_event_horizon.cc
|
|
|
|
libircd_matrix_la_SOURCES += dbs_event_sender.cc
|
|
|
|
libircd_matrix_la_SOURCES += dbs_event_type.cc
|
|
|
|
libircd_matrix_la_SOURCES += dbs_event_state.cc
|
|
|
|
libircd_matrix_la_SOURCES += dbs_room_events.cc
|
|
|
|
libircd_matrix_la_SOURCES += dbs_room_type.cc
|
|
|
|
libircd_matrix_la_SOURCES += dbs_room_state.cc
|
|
|
|
libircd_matrix_la_SOURCES += dbs_room_state_space.cc
|
|
|
|
libircd_matrix_la_SOURCES += dbs_room_joined.cc
|
|
|
|
libircd_matrix_la_SOURCES += dbs_room_head.cc
|
|
|
|
libircd_matrix_la_SOURCES += dbs_desc.cc
|
2022-08-06 00:55:55 -07:00
|
|
|
libircd_matrix_la_SOURCES += dbs_init.cc
|
2019-09-26 19:28:25 -07:00
|
|
|
libircd_matrix_la_SOURCES += hook.cc
|
2019-09-26 12:16:22 -07:00
|
|
|
libircd_matrix_la_SOURCES += event.cc
|
2019-09-26 18:36:03 -07:00
|
|
|
libircd_matrix_la_SOURCES += event_cached.cc
|
|
|
|
libircd_matrix_la_SOURCES += event_conforms.cc
|
|
|
|
libircd_matrix_la_SOURCES += event_fetch.cc
|
|
|
|
libircd_matrix_la_SOURCES += event_get.cc
|
|
|
|
libircd_matrix_la_SOURCES += event_id.cc
|
|
|
|
libircd_matrix_la_SOURCES += event_index.cc
|
|
|
|
libircd_matrix_la_SOURCES += event_prefetch.cc
|
2020-12-16 15:55:12 -08:00
|
|
|
libircd_matrix_la_SOURCES += event_auth.cc
|
2019-09-26 18:36:03 -07:00
|
|
|
libircd_matrix_la_SOURCES += event_prev.cc
|
|
|
|
libircd_matrix_la_SOURCES += event_refs.cc
|
2023-02-09 13:13:38 -08:00
|
|
|
libircd_matrix_la_SOURCES += event_purge.cc
|
2019-09-25 12:48:00 -07:00
|
|
|
libircd_matrix_la_SOURCES += room.cc
|
2019-09-26 18:36:03 -07:00
|
|
|
libircd_matrix_la_SOURCES += room_auth.cc
|
2019-09-26 19:00:19 -07:00
|
|
|
libircd_matrix_la_SOURCES += room_aliases.cc
|
2019-09-26 18:36:03 -07:00
|
|
|
libircd_matrix_la_SOURCES += room_bootstrap.cc
|
|
|
|
libircd_matrix_la_SOURCES += room_create.cc
|
|
|
|
libircd_matrix_la_SOURCES += room_events.cc
|
2023-02-17 15:24:23 -08:00
|
|
|
libircd_matrix_la_SOURCES += room_sounding.cc
|
|
|
|
libircd_matrix_la_SOURCES += room_missing.cc
|
|
|
|
libircd_matrix_la_SOURCES += room_horizon.cc
|
2019-09-26 18:36:03 -07:00
|
|
|
libircd_matrix_la_SOURCES += room_head.cc
|
2020-11-05 17:58:17 -08:00
|
|
|
libircd_matrix_la_SOURCES += room_head_fetch.cc
|
2023-02-21 19:47:25 -08:00
|
|
|
libircd_matrix_la_SOURCES += room_iterate.cc
|
2020-11-20 15:01:51 -08:00
|
|
|
libircd_matrix_la_SOURCES += room_state_fetch.cc
|
2019-09-26 19:00:19 -07:00
|
|
|
libircd_matrix_la_SOURCES += room_join.cc
|
|
|
|
libircd_matrix_la_SOURCES += room_leave.cc
|
|
|
|
libircd_matrix_la_SOURCES += room_visible.cc
|
|
|
|
libircd_matrix_la_SOURCES += room_members.cc
|
|
|
|
libircd_matrix_la_SOURCES += room_origins.cc
|
2020-03-24 12:50:28 -07:00
|
|
|
libircd_matrix_la_SOURCES += room_type.cc
|
2022-08-02 15:59:23 -07:00
|
|
|
libircd_matrix_la_SOURCES += room_message.cc
|
2022-08-13 20:06:18 -07:00
|
|
|
libircd_matrix_la_SOURCES += room_messages.cc
|
2019-09-26 19:00:19 -07:00
|
|
|
libircd_matrix_la_SOURCES += room_power.cc
|
2023-02-09 22:46:45 -08:00
|
|
|
libircd_matrix_la_SOURCES += room_purge.cc
|
2019-09-26 19:00:19 -07:00
|
|
|
libircd_matrix_la_SOURCES += room_state.cc
|
|
|
|
libircd_matrix_la_SOURCES += room_state_history.cc
|
|
|
|
libircd_matrix_la_SOURCES += room_state_space.cc
|
2019-09-26 19:28:25 -07:00
|
|
|
libircd_matrix_la_SOURCES += room_server_acl.cc
|
2019-09-26 19:00:19 -07:00
|
|
|
libircd_matrix_la_SOURCES += room_stats.cc
|
2019-09-26 12:16:22 -07:00
|
|
|
libircd_matrix_la_SOURCES += user.cc
|
2019-09-26 18:36:03 -07:00
|
|
|
libircd_matrix_la_SOURCES += user_account_data.cc
|
2020-04-01 18:30:02 -07:00
|
|
|
libircd_matrix_la_SOURCES += user_devices.cc
|
2019-09-26 18:36:03 -07:00
|
|
|
libircd_matrix_la_SOURCES += user_events.cc
|
|
|
|
libircd_matrix_la_SOURCES += user_filter.cc
|
2020-04-01 17:14:51 -07:00
|
|
|
libircd_matrix_la_SOURCES += user_ignores.cc
|
2019-09-26 18:36:03 -07:00
|
|
|
libircd_matrix_la_SOURCES += user_mitsein.cc
|
2020-03-23 13:46:26 -07:00
|
|
|
libircd_matrix_la_SOURCES += user_notifications.cc
|
2019-09-26 18:36:03 -07:00
|
|
|
libircd_matrix_la_SOURCES += user_profile.cc
|
2020-03-21 11:14:21 -07:00
|
|
|
libircd_matrix_la_SOURCES += user_pushers.cc
|
2020-03-17 21:57:44 -07:00
|
|
|
libircd_matrix_la_SOURCES += user_pushrules.cc
|
2019-09-26 18:36:03 -07:00
|
|
|
libircd_matrix_la_SOURCES += user_register.cc
|
|
|
|
libircd_matrix_la_SOURCES += user_room_account_data.cc
|
|
|
|
libircd_matrix_la_SOURCES += user_room_tags.cc
|
2020-04-01 18:30:02 -07:00
|
|
|
libircd_matrix_la_SOURCES += user_rooms.cc
|
2020-04-01 17:14:51 -07:00
|
|
|
libircd_matrix_la_SOURCES += user_tokens.cc
|
2020-04-24 12:05:39 -07:00
|
|
|
libircd_matrix_la_SOURCES += acquire.cc
|
2020-10-20 19:07:46 -07:00
|
|
|
libircd_matrix_la_SOURCES += app.cc
|
2020-04-09 17:24:50 -07:00
|
|
|
libircd_matrix_la_SOURCES += bridge.cc
|
2020-08-22 19:22:41 -07:00
|
|
|
libircd_matrix_la_SOURCES += breadcrumbs.cc
|
2020-04-23 03:50:03 -07:00
|
|
|
libircd_matrix_la_SOURCES += burst.cc
|
2019-09-26 12:16:22 -07:00
|
|
|
libircd_matrix_la_SOURCES += display_name.cc
|
|
|
|
libircd_matrix_la_SOURCES += event_append.cc
|
|
|
|
libircd_matrix_la_SOURCES += event_horizon.cc
|
|
|
|
libircd_matrix_la_SOURCES += events.cc
|
2019-09-25 12:48:00 -07:00
|
|
|
libircd_matrix_la_SOURCES += fed.cc
|
2020-06-08 11:19:29 -07:00
|
|
|
libircd_matrix_la_SOURCES += fed_well_known.cc
|
2019-09-26 12:16:22 -07:00
|
|
|
libircd_matrix_la_SOURCES += feds.cc
|
|
|
|
libircd_matrix_la_SOURCES += fetch.cc
|
2022-08-09 11:47:59 -07:00
|
|
|
libircd_matrix_la_SOURCES += fetch_check.cc
|
2020-04-23 02:04:07 -07:00
|
|
|
libircd_matrix_la_SOURCES += gossip.cc
|
2020-07-30 07:19:16 -07:00
|
|
|
libircd_matrix_la_SOURCES += groups.cc
|
2022-08-13 16:45:43 -07:00
|
|
|
libircd_matrix_la_SOURCES += relates.cc
|
2019-09-26 19:28:25 -07:00
|
|
|
libircd_matrix_la_SOURCES += request.cc
|
2019-09-26 12:16:22 -07:00
|
|
|
libircd_matrix_la_SOURCES += keys.cc
|
2020-08-20 18:56:14 -07:00
|
|
|
libircd_matrix_la_SOURCES += media.cc
|
2019-09-26 12:16:22 -07:00
|
|
|
libircd_matrix_la_SOURCES += node.cc
|
|
|
|
libircd_matrix_la_SOURCES += presence.cc
|
|
|
|
libircd_matrix_la_SOURCES += pretty.cc
|
|
|
|
libircd_matrix_la_SOURCES += receipt.cc
|
|
|
|
libircd_matrix_la_SOURCES += rooms.cc
|
2019-09-26 19:28:25 -07:00
|
|
|
libircd_matrix_la_SOURCES += membership.cc
|
2019-09-26 12:16:22 -07:00
|
|
|
libircd_matrix_la_SOURCES += rooms_summary.cc
|
2019-09-26 19:28:25 -07:00
|
|
|
libircd_matrix_la_SOURCES += sync.cc
|
2022-09-28 13:38:13 -07:00
|
|
|
libircd_matrix_la_SOURCES += trace.cc
|
2019-09-26 12:16:22 -07:00
|
|
|
libircd_matrix_la_SOURCES += typing.cc
|
|
|
|
libircd_matrix_la_SOURCES += users.cc
|
|
|
|
libircd_matrix_la_SOURCES += users_servers.cc
|
2019-09-26 19:28:25 -07:00
|
|
|
libircd_matrix_la_SOURCES += error.cc
|
2020-03-18 11:55:35 -07:00
|
|
|
libircd_matrix_la_SOURCES += push.cc
|
2019-09-26 19:28:25 -07:00
|
|
|
libircd_matrix_la_SOURCES += filter.cc
|
|
|
|
libircd_matrix_la_SOURCES += txn.cc
|
|
|
|
libircd_matrix_la_SOURCES += vm.cc
|
2023-02-05 12:26:30 -08:00
|
|
|
libircd_matrix_la_SOURCES += vm_seq.cc
|
2019-10-03 10:51:29 -07:00
|
|
|
libircd_matrix_la_SOURCES += vm_eval.cc
|
|
|
|
libircd_matrix_la_SOURCES += vm_inject.cc
|
|
|
|
libircd_matrix_la_SOURCES += vm_execute.cc
|
2020-09-15 18:56:31 -07:00
|
|
|
libircd_matrix_la_SOURCES += vm_fetch.cc
|
2022-08-09 12:04:29 -07:00
|
|
|
libircd_matrix_la_SOURCES += vm_conforms.cc
|
2023-02-05 13:42:46 -08:00
|
|
|
libircd_matrix_la_SOURCES += vm_notify.cc
|
2019-09-26 19:28:25 -07:00
|
|
|
libircd_matrix_la_SOURCES += init_backfill.cc
|
2019-09-30 20:50:58 -07:00
|
|
|
libircd_matrix_la_SOURCES += homeserver.cc
|
2020-08-24 04:06:16 -07:00
|
|
|
libircd_matrix_la_SOURCES += homeserver_bootstrap.cc
|
2019-09-28 14:17:54 -07:00
|
|
|
libircd_matrix_la_SOURCES += resource.cc
|
2019-09-26 19:28:25 -07:00
|
|
|
libircd_matrix_la_SOURCES += matrix.cc
|
2019-09-25 12:48:00 -07:00
|
|
|
|
2019-09-25 20:30:26 -07:00
|
|
|
#
|
|
|
|
# Unit configurations
|
|
|
|
#
|
2019-09-25 12:48:00 -07:00
|
|
|
|
2022-07-19 12:38:10 -07:00
|
|
|
if CLANG_PCH
|
|
|
|
SPIRIT_UNIT_CPPFLAGS += -include ircd/spirit.h
|
|
|
|
#SPIRIT_UNIT_CPPFLAGS += -include-pch $(top_srcdir)/include/ircd/spirit.h.gch
|
|
|
|
else
|
|
|
|
SPIRIT_UNIT_CPPFLAGS += -include ircd/spirit.h
|
|
|
|
endif
|
|
|
|
|
|
|
|
id.lo: AM_CPPFLAGS := ${AM_CPPFLAGS} ${SPIRIT_UNIT_CPPFLAGS}
|
|
|
|
id.lo: CXXFLAGS += ${AM_CXXFLAGS} ${SPIRIT_UNIT_CXXFLAGS}
|