1# 2# Copyright (C) Mellanox Technologies Ltd. 2001-2014. ALL RIGHTS RESERVED. 3# Copyright (C) The University of Tennessee and the University of Tennessee Research Foundation. 2016. ALL RIGHTS RESERVED. 4# 5# See file LICENSE for terms. 6# 7 8if !EMBEDDED 9bin_PROGRAMS = ucx_info 10endif 11 12BUILT_SOURCES = build_config.h 13DISTCLEANFILES = build_config.h 14 15# 16# Produce a C header file which contains all defined variables from config.h 17# 18build_config.h: $(top_builddir)/config.h Makefile 19 $(SED) -nr 's:\s*#define\s+(\w+)(\s+(\w+)|\s+(".*")|\s*)$$:{"\1", UCS_PP_MAKE_STRING(\3\4)},:p' <$(top_builddir)/config.h >$@ 20 21ucx_info_CPPFLAGS = $(BASE_CPPFLAGS) 22ucx_info_CFLAGS = $(BASE_CFLAGS) 23if HAVE_IB 24ucx_info_CPPFLAGS += $(IBVERBS_CPPFLAGS) 25endif 26if HAVE_CRAY_UGNI 27ucx_info_CFLAGS += $(CRAY_UGNI_CFLAGS) 28endif 29 30ucx_info_SOURCES = \ 31 build_info.c \ 32 proto_info.c \ 33 sys_info.c \ 34 tl_info.c \ 35 type_info.c \ 36 ucx_info.c 37 38noinst_HEADERS = \ 39 ucx_info.h 40 41nodist_ucx_info_SOURCES = \ 42 build_config.h 43 44ucx_info_LDADD = \ 45 $(abs_top_builddir)/src/uct/libuct.la \ 46 $(abs_top_builddir)/src/ucp/libucp.la \ 47 $(abs_top_builddir)/src/ucs/libucs.la \ 48 $(abs_top_builddir)/src/ucm/libucm.la 49