-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
103 lines (77 loc) · 2.87 KB
/
Makefile.am
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
# Open-MX
# Copyright © inria 2007-2010 (see AUTHORS file)
#
# The development of this software has been funded by Myricom, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# See the GNU General Public License in COPYING.GPL for more details.
MAKE = make
RM_F = rm -f
MKDIR_P = mkdir -p
ACLOCAL_AMFLAGS = -I ./m4
SUBDIRS =
# Driver
if OMX_BUILD_DRIVER
SUBDIRS += driver/linux
endif
# Library
if OMX_BUILD_LIBRARY
SUBDIRS += libopen-mx tools tests tests/mx
endif
# Public and private API
include_HEADERS = common/open-mx.h
if OMX_MX_ABI_COMPAT
incinternaldir = $(includedir)/mx_internals
include_HEADERS += common/mx/mx_extensions.h common/mx/mx_raw.h common/mx/myriexpress.h \
common/mx/mx_io.h
incinternal_HEADERS = common/mx/mx_internals/mx__fops.h common/mx/mx_internals/mx__driver_interface.h
endif
noinst_HEADERS = common/omx_io.h common/omx_wire.h \
common/mx/translate/mx_extensions.h common/mx/translate/myriexpress.h
# Man pages and other documentations
dist_man1_MANS = doc/man/omx_counters.1 doc/man/omx_hostname.1 doc/man/omx_init_peers.1 \
doc/man/omx_prepare_binding.1 doc/man/omx_endpoint_info.1 \
doc/man/omx_info.1 doc/man/omx_perf.1
dist_pkgdata_DATA = doc/FAQ.html
EXTRA_DIST = AUTHORS ChangeLog COPYING COPYING.GPL COPYING.LGPL \
README README.devel REPORTING-BUGS TODO open-mx.spec \
autogen.sh dkms.conf
dist-hook:
@$(distdir)/autogen.sh
DISTCLEANFILES = configure-dkms
if OMX_BUILD_LIBRARY
if OMX_USE_FMA
all-local: fma
clean-local: fma-clean
distclean-local: fma-distclean
install-exec-local: fma-install
endif
endif
if OMX_LIB_COVERAGE
COV_DIR = coverage
cov-reset:
@$(RM_F) -r $(COV_DIR)
@lcov --directory . --zerocounters
cov:
@$(MKDIR_P) $(COV_DIR)
@lcov --compat-libtool --directory . --capture -o $(COV_DIR)/cov.info
@genhtml -o $(COV_DIR) $(COV_DIR)/cov.info
clean-local: cov-reset
endif
.PHONY: fma fma-clean fma-distclean
fma:
+$(MAKE) -C fma CC="$(CC)" MYRI_INC=-I$(abs_top_srcdir)/common/mx MYRI_LIB=$(abs_top_builddir)/libopen-mx/$(DEFAULT_LIBDIR)/.libs
fma-install:
+$(MAKE) -C fma CC="$(CC)" MYRI_INC=-I$(abs_top_srcdir)/common/mx MYRI_LIB=$(abs_top_builddir)/libopen-mx/$(DEFAULT_LIBDIR)/.libs install
fma-clean:
+$(MAKE) -C fma CC="$(CC)" MYRI_INC=-I$(abs_top_srcdir)/common/mx MYRI_LIB=$(abs_top_builddir)/libopen-mx/$(DEFAULT_LIBDIR)/.libs clean
fma-distclean:
+$(MAKE) -C fma CC="$(CC)" MYRI_INC=-I$(abs_top_srcdir)/common/mx MYRI_LIB=$(abs_top_builddir)/libopen-mx/$(DEFAULT_LIBDIR)/.libs distclean