|
1 | | -# |
2 | | -# Copyright (c) 2013 Mellanox Technologies, Inc. |
3 | | -# All rights reserved. |
4 | | -# Copyright (c) 2013-2014 Cisco Systems, Inc. All rights reserved. |
5 | | -# Copyright (c) 2014 Intel, Inc. All rights reserved. |
6 | | -# $COPYRIGHT$ |
7 | | -# |
8 | | -# Additional copyrights may follow |
9 | | -# |
10 | | -# $HEADER$ |
11 | | -# |
12 | | - |
13 | | -# Do we have profiling? |
14 | | -if OSHMEM_PROFILING |
15 | | -c_pshmem_lib = shmem/c/profile/liboshmem_c_pshmem.la |
16 | | -else |
17 | | -c_pshmem_lib = |
18 | | -endif |
19 | | - |
20 | | -# Do we have the Fortran bindings? |
21 | | -if OSHMEM_BUILD_FORTRAN_BINDINGS |
22 | | -fortran_oshmem_lib = shmem/fortran/liboshmem_fortran.la |
23 | | - |
24 | | -if OSHMEM_PROFILING |
25 | | -fortran_pshmem_lib = shmem/fortran/profile/liboshmem_fortran_pshmem.la |
26 | | -endif |
27 | | - |
28 | | -else |
29 | | -fortran_oshmem_lib = |
30 | | -fortran_pshmem_lib = |
31 | | -endif |
32 | | - |
33 | | -SUBDIRS = \ |
34 | | - include \ |
35 | | - shmem/c \ |
36 | | - shmem/fortran |
37 | | - |
38 | | -if PROJECT_OSHMEM |
39 | | -# Only traverse these dirs if we're building oshmem |
40 | | -SUBDIRS += \ |
41 | | - $(MCA_oshmem_FRAMEWORKS_SUBDIRS) \ |
42 | | - $(MCA_oshmem_FRAMEWORK_COMPONENT_STATIC_SUBDIRS) \ |
43 | | - . \ |
44 | | - $(MCA_oshmem_FRAMEWORK_COMPONENT_DSO_SUBDIRS) |
45 | | -endif |
46 | | - |
47 | | -DIST_SUBDIRS = \ |
48 | | - include \ |
49 | | - shmem/c \ |
50 | | - shmem/fortran \ |
51 | | - $(MCA_oshmem_FRAMEWORKS_SUBDIRS) \ |
52 | | - $(MCA_oshmem_FRAMEWORK_COMPONENT_ALL_SUBDIRS) |
53 | | - |
54 | | -# Build The main OSHMEM library, but only if we're building OSHMEM |
55 | | -lib_LTLIBRARIES = |
56 | | -if PROJECT_OSHMEM |
57 | | -lib_LTLIBRARIES += liboshmem.la |
58 | | -endif |
59 | | - |
60 | | -liboshmem_la_SOURCES = |
61 | | -liboshmem_la_LIBADD = \ |
62 | | - shmem/c/liboshmem_c.la \ |
63 | | - $(c_pshmem_lib) \ |
64 | | - $(fortran_oshmem_lib) \ |
65 | | - $(fortran_pshmem_lib) \ |
66 | | - $(MCA_oshmem_FRAMEWORK_LIBS) \ |
67 | | - $(top_ompi_builddir)/ompi/libmpi.la |
68 | | -liboshmem_la_DEPENDENCIES = $(liboshmem_la_LIBADD) |
69 | | -liboshmem_la_LDFLAGS = \ |
70 | | - -version-info $(liboshmem_so_version) \ |
71 | | - $(OSHMEM_LIBSHMEM_EXTRA_LDFLAGS) |
72 | | - |
73 | | -# included subdirectory Makefile.am's and appended-to variables |
74 | | -headers = |
75 | | -noinst_LTLIBRARIES = |
76 | | -include_HEADERS = |
77 | | -dist_ompidata_DATA = |
78 | | -liboshmem_la_SOURCES += $(headers) |
79 | | -nodist_man_MANS = |
80 | | - |
81 | | -# Conditionally install the header files |
82 | | - |
83 | | -if WANT_INSTALL_HEADERS |
84 | | -oshmemdir = $(ompiincludedir)/$(subdir) |
85 | | -nobase_oshmem_HEADERS = $(headers) |
86 | | -endif |
87 | | - |
88 | | -include op/Makefile.am |
89 | | -include proc/Makefile.am |
90 | | -include request/Makefile.am |
91 | | -include runtime/Makefile.am |
92 | | -include shmem/Makefile.am |
93 | | -include tools/Makefile.am |
94 | | -include util/Makefile.am |
| 1 | +# |
| 2 | +# Copyright (c) 2013-2015 Mellanox Technologies, Inc. |
| 3 | +# All rights reserved. |
| 4 | +# Copyright (c) 2013-2014 Cisco Systems, Inc. All rights reserved. |
| 5 | +# Copyright (c) 2014 Intel, Inc. All rights reserved. |
| 6 | +# $COPYRIGHT$ |
| 7 | +# |
| 8 | +# Additional copyrights may follow |
| 9 | +# |
| 10 | +# $HEADER$ |
| 11 | +# |
| 12 | + |
| 13 | +# Do we have profiling? |
| 14 | +if OSHMEM_PROFILING |
| 15 | +c_pshmem_lib = shmem/c/profile/liboshmem_c_pshmem.la |
| 16 | +else |
| 17 | +c_pshmem_lib = |
| 18 | +endif |
| 19 | + |
| 20 | +# Do we have the Fortran bindings? |
| 21 | +if OSHMEM_BUILD_FORTRAN_BINDINGS |
| 22 | +fortran_oshmem_lib = shmem/fortran/liboshmem_fortran.la |
| 23 | + |
| 24 | +if OSHMEM_PROFILING |
| 25 | +fortran_pshmem_lib = shmem/fortran/profile/liboshmem_fortran_pshmem.la |
| 26 | +endif |
| 27 | + |
| 28 | +else |
| 29 | +fortran_oshmem_lib = |
| 30 | +fortran_pshmem_lib = |
| 31 | +endif |
| 32 | + |
| 33 | +SUBDIRS = \ |
| 34 | + include \ |
| 35 | + shmem/c \ |
| 36 | + shmem/fortran |
| 37 | + |
| 38 | +if PROJECT_OSHMEM |
| 39 | +# Only traverse these dirs if we're building oshmem |
| 40 | +SUBDIRS += \ |
| 41 | + $(MCA_oshmem_FRAMEWORKS_SUBDIRS) \ |
| 42 | + $(MCA_oshmem_FRAMEWORK_COMPONENT_STATIC_SUBDIRS) \ |
| 43 | + . \ |
| 44 | + $(MCA_oshmem_FRAMEWORK_COMPONENT_DSO_SUBDIRS) |
| 45 | +endif |
| 46 | + |
| 47 | +DIST_SUBDIRS = \ |
| 48 | + include \ |
| 49 | + shmem/c \ |
| 50 | + shmem/fortran \ |
| 51 | + $(MCA_oshmem_FRAMEWORKS_SUBDIRS) \ |
| 52 | + $(MCA_oshmem_FRAMEWORK_COMPONENT_ALL_SUBDIRS) |
| 53 | + |
| 54 | +# Build The main OSHMEM library, but only if we're building OSHMEM |
| 55 | +lib_LTLIBRARIES = |
| 56 | +if PROJECT_OSHMEM |
| 57 | +lib_LTLIBRARIES += liboshmem.la |
| 58 | +endif |
| 59 | + |
| 60 | +liboshmem_la_SOURCES = |
| 61 | +liboshmem_la_LIBADD = \ |
| 62 | + shmem/c/liboshmem_c.la \ |
| 63 | + $(c_pshmem_lib) \ |
| 64 | + $(fortran_oshmem_lib) \ |
| 65 | + $(fortran_pshmem_lib) \ |
| 66 | + $(MCA_oshmem_FRAMEWORK_LIBS) \ |
| 67 | + $(top_ompi_builddir)/ompi/libmpi.la |
| 68 | +liboshmem_la_DEPENDENCIES = $(liboshmem_la_LIBADD) |
| 69 | +liboshmem_la_LDFLAGS = \ |
| 70 | + -version-info $(liboshmem_so_version) \ |
| 71 | + $(OSHMEM_LIBSHMEM_EXTRA_LDFLAGS) |
| 72 | + |
| 73 | +# included subdirectory Makefile.am's and appended-to variables |
| 74 | +headers = |
| 75 | +noinst_LTLIBRARIES = |
| 76 | +include_HEADERS = |
| 77 | +dist_ompidata_DATA = |
| 78 | +liboshmem_la_SOURCES += $(headers) |
| 79 | +nodist_man_MANS = |
| 80 | + |
| 81 | +# Conditionally install the header files |
| 82 | + |
| 83 | +if WANT_INSTALL_HEADERS |
| 84 | +oshmemdir = $(ompiincludedir)/$(subdir) |
| 85 | +nobase_oshmem_HEADERS = $(headers) |
| 86 | +endif |
| 87 | + |
| 88 | +include op/Makefile.am |
| 89 | +include proc/Makefile.am |
| 90 | +include request/Makefile.am |
| 91 | +include runtime/Makefile.am |
| 92 | +include shmem/Makefile.am |
| 93 | +include shmem/man/man3/Makefile.extra |
| 94 | +include tools/Makefile.am |
| 95 | +include util/Makefile.am |
| 96 | + |
| 97 | +# Ensure that the man page directory exists before we try to make man |
| 98 | +# page files (because ompi/mpi/man/man3 has no config.status-generated |
| 99 | +# Makefile) |
| 100 | +dir_stamp = $(top_builddir)/$(subdir)/shmem/man/man3/.dir-stamp |
| 101 | + |
| 102 | +# Also ensure that the man pages are rebuilt if the opal_config.h file |
| 103 | +# changes (e.g., configure was run again, meaning that the release |
| 104 | +# date or version may have changed) |
| 105 | +$(nodist_man_MANS): $(dir_stamp) $(top_builddir)/opal/include/opal_config.h |
| 106 | + |
| 107 | +$(dir_stamp): |
| 108 | + $(MKDIR_P) `dirname $@` |
| 109 | + touch "$@" |
| 110 | + |
| 111 | +# Remove the generated man pages |
| 112 | +distclean-local: |
| 113 | + rm -f $(nodist_man_MANS) $(dir_stamp) |
| 114 | + |
0 commit comments