Blob Blame History Raw
#
# Copyright (C) Mellanox Technologies Ltd. 2001-2014.  ALL RIGHTS RESERVED.
# Copyright (C) UT-Battelle, LLC. 2014-2017. ALL RIGHTS RESERVED.
# Copyright (C) ARM Ltd. 2016-2017.  ALL RIGHTS RESERVED.
# See file LICENSE for terms.
#

AUTOMAKE_OPTIONS    = nostdinc # avoid collision with built-in debug.h
lib_LTLIBRARIES     = libucs.la
bin_PROGRAMS        =

libucs_la_CPPFLAGS = $(BASE_CPPFLAGS) -DUCX_MODULE_DIR=\"$(moduledir)\"
libucs_la_CFLAGS   = $(BASE_CFLAGS)
libucs_la_LDFLAGS  = -ldl $(NUMA_LIBS) -version-info $(SOVERSION)
libucs_ladir       = $(includedir)/ucs
libucs_la_LIBADD   = $(LIBM) $(top_builddir)/src/ucm/libucm.la

nobase_dist_libucs_la_HEADERS = \
	algorithm/crc.h \
	algorithm/qsort_r.h \
	async/async_fwd.h \
	config/global_opts.h \
	config/parser.h \
	config/types.h \
	datastruct/callbackq.h \
	datastruct/khash.h \
	datastruct/linear_func.h \
	datastruct/list_types.h \
	datastruct/list.h \
	datastruct/mpool.h \
	datastruct/pgtable.h \
	datastruct/queue_types.h \
	datastruct/strided_alloc.h \
	datastruct/string_buffer.h \
	datastruct/string_set.h \
	memory/rcache.h \
	memory/memory_type.h \
	memory/memtype_cache.h \
	profile/profile_defs.h \
	profile/profile_off.h \
	profile/profile_on.h \
	stats/stats_fwd.h \
	stats/libstats.h \
	sys/event_set.h \
	sys/compiler_def.h\
	sys/math.h \
	sys/preprocessor.h \
	sys/string.h \
	sys/sock.h \
	sys/stubs.h \
	time/time_def.h \
	type/class.h \
	type/init_once.h \
	type/spinlock.h \
	type/status.h \
	type/thread_mode.h \
	type/cpu_set.h \
	arch/x86_64/global_opts.h \
	arch/aarch64/global_opts.h \
	arch/ppc64/global_opts.h \
	arch/global_opts.h

noinst_HEADERS = \
	arch/aarch64/bitops.h \
	arch/aarch64/cpu.h \
	arch/generic/atomic.h \
	arch/generic/cpu.h \
	arch/ppc64/bitops.h \
	arch/ppc64/cpu.h \
	arch/x86_64/atomic.h \
	arch/x86_64/bitops.h \
	arch/x86_64/cpu.h \
	arch/atomic.h \
	arch/bitops.h \
	arch/cpu.h \
	datastruct/arbiter.h \
	datastruct/frag_list.h \
	datastruct/mpmc.h \
	datastruct/mpool.inl \
	datastruct/ptr_array.h \
	datastruct/queue.h \
	datastruct/sglib.h \
	datastruct/sglib_wrapper.h \
	debug/assert.h \
	debug/debug.h \
	debug/log.h \
	debug/memtrack.h \
	memory/numa.h \
	memory/rcache_int.h \
	profile/profile.h \
	stats/stats.h \
	sys/checker.h \
	sys/compiler.h \
	sys/module.h \
	sys/sys.h \
	sys/iovec.h \
	time/time.h \
	time/timerq.h \
	time/timer_wheel.h \
	async/async.h \
	async/pipe.h \
	async/signal.h \
	async/thread.h \
	async/async_int.h

libucs_la_SOURCES = \
	algorithm/crc.c \
	algorithm/qsort_r.c \
	arch/aarch64/cpu.c \
	arch/aarch64/global_opts.c \
	arch/ppc64/timebase.c \
	arch/ppc64/global_opts.c \
	arch/x86_64/cpu.c \
	arch/x86_64/global_opts.c \
	arch/cpu.c \
	async/async.c \
	async/signal.c \
	async/pipe.c \
	async/thread.c \
	config/global_opts.c \
	config/ucm_opts.c \
	config/parser.c \
	datastruct/arbiter.c \
	datastruct/callbackq.c \
	datastruct/frag_list.c \
	datastruct/mpmc.c \
	datastruct/mpool.c \
	datastruct/pgtable.c \
	datastruct/ptr_array.c \
	datastruct/strided_alloc.c \
	datastruct/string_buffer.c \
	datastruct/string_set.c \
	debug/assert.c \
	debug/debug.c \
	debug/log.c \
	debug/memtrack.c \
	memory/memory_type.c \
	memory/memtype_cache.c \
	memory/numa.c \
	memory/rcache.c \
	profile/profile.c \
	stats/stats.c \
	sys/event_set.c \
	sys/init.c \
	sys/math.c \
	sys/module.c \
	sys/string.c \
	sys/sys.c \
	sys/iovec.c \
	sys/sock.c \
	sys/stubs.c \
	time/time.c \
	time/timer_wheel.c \
	time/timerq.c \
	type/class.c \
	type/status.c \
	type/init_once.c

if HAVE_STATS
libucs_la_SOURCES += \
	stats/client_server.c \
	stats/serialization.c \
	stats/libstats.c

bin_PROGRAMS            += ucs_stats_parser
ucs_stats_parser_CPPFLAGS = $(BASE_CPPFLAGS)
ucs_stats_parser_LDADD   = libucs.la
ucs_stats_parser_SOURCES = stats/stats_parser.c
endif

all-local: $(objdir)/$(modulesubdir)

$(objdir)/$(modulesubdir): $(lib_LTLIBRARIES)
	$(AM_V_at)$(LN_RS) -fn $(localmoduledir) $(objdir)/$(modulesubdir)

#TODO	stats/stats_dump.c
#TODO	stats/stats_reader.c