File: Makefile.am

package info (click to toggle)
dmtcp 2.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,496 kB
  • sloc: cpp: 33,592; ansic: 28,099; sh: 6,735; makefile: 1,950; perl: 1,690; python: 1,241; asm: 138; java: 13
file content (131 lines) | stat: -rw-r--r-- 4,956 bytes parent folder | download
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# We should disable AM_MAINTAINER_MODE since otherwise a re-build by the
#  end-user may require local tools, which may be missing or whose version is
#  incompatible with these tools (e.g. autoheader).  Instead, we run NMI and
#  openSUSE build services to test compatibility with end-user machines.
#  The developers should run autoconf, automake, etc., as needed, but
#  not propagate to the svn-generated tools that may be incompatible
#  with the user's local tools.  - Gene
# See http://www.gnu.org/s/hello/manual/automake/CVS.html#CVS
# AM_MAINTAINER_MDE([disable])

# not a GNU package. You can remove this line, if
# have all needed files, that a GNU package needs
AUTOMAKE_OPTIONS = foreign

PICFLAGS=-fPIC
AM_CFLAGS = $(PICFLAGS)
AM_CXXFLAGS = $(PICFLAGS)
AM_LDFLAGS = $(PICFLAGS)

if CONFIG_M32
d_libdir = $(top_builddir)/lib/$(PACKAGE)/32/lib/$(PACKAGE)
d_bindir = $(top_builddir)/lib/$(PACKAGE)/32/bin
else
d_libdir = $(top_builddir)/lib/$(PACKAGE)
d_bindir = $(top_builddir)/bin
endif

#HEADERS
#set the include path found by configure
AM_CPPFLAGS  = -I$(top_srcdir)/include
AM_CPPFLAGS += -I$(top_srcdir)/jalib

dmtcp_ldflags = -shared -Xlinker -znow -Wl,--unresolved-symbols=ignore-all
LDADD = -ldl -lpthread

libdmtcpdir = $(pkglibdir)

bin_PROGRAMS =
libdmtcp_PROGRAMS =
dist_bin_SCRIPTS =
bin_SCRIPTS =
CLEANFILES =

#
# Batch queue plugin
#
libdmtcp_PROGRAMS += $(d_libdir)/libdmtcp_batch-queue.so
__d_libdir__libdmtcp_batch_queue_so_SOURCES =                          \
	batch-queue/rm_main.cpp                                        \
	batch-queue/rm_main.h                                          \
	batch-queue/rm_torque.cpp                                      \
	batch-queue/rm_torque.h                                        \
	batch-queue/rm_slurm.cpp                                       \
	batch-queue/rm_slurm.h                                         \
	batch-queue/rm_utils.cpp                                       \
	batch-queue/rm_utils.h                                         \
	batch-queue/rm_pmi.cpp                                         \
	batch-queue/rm_pmi.h                                           \
	batch-queue/slurm_helper.cpp
__d_libdir__libdmtcp_batch_queue_so_LDFLAGS = $(dmtcp_ldflags)
__d_libdir__libdmtcp_batch_queue_so_LDADD = $(LDADD)

bin_PROGRAMS += $(d_bindir)/dmtcp_discover_rm
__d_bindir__dmtcp_discover_rm_SOURCES =                                \
	batch-queue/discover_dmtcpinput.cpp                            \
	batch-queue/discover_resources.cpp                             \
	batch-queue/discover_slurm.cpp                                 \
	batch-queue/discover_torque.cpp                                \
	batch-queue/dmtcp_discover_rm.cpp

bin_PROGRAMS += $(d_bindir)/dmtcp_srun_helper
__d_bindir__dmtcp_srun_helper_SOURCES =                                \
	batch-queue/rm_main.h                                          \
	batch-queue/rm_slurm.h                                         \
	batch-queue/slurm_helper.cpp                                   \
	batch-queue/slurm_helper.h                                     \
	batch-queue/dmtcp_srun_helper.cpp

dist_bin_SCRIPTS += batch-queue/dmtcp_rm_loclaunch

#
# Modify env plugin
#
libdmtcp_PROGRAMS += $(d_libdir)/libdmtcp_modify-env.so
__d_libdir__libdmtcp_modify_env_so_SOURCES =                           \
	modify-env/modify-env.c modify-env/warning.cpp
__d_libdir__libdmtcp_modify_env_so_LDFLAGS = $(dmtcp_ldflags)
__d_libdir__libdmtcp_modify_env_so_LDADD = $(LDADD)

# TODO(kapil): Re-enable Ptrace plugin after reworking the logic for new plugin
# API.
#
# # Ptrace plugin
# #
# 
# # FIXME:  ptrace plugin not yet working for aarch64
# if !AARCH64_HOST
# libdmtcp_PROGRAMS += $(d_libdir)/libdmtcp_ptrace.so
# __d_libdir__libdmtcp_ptrace_so_SOURCES =                               \
# 	ptrace/ptrace.cpp                                              \
# 	ptrace/ptrace.h                                                \
# 	ptrace/ptraceinfo.cpp                                          \
# 	ptrace/ptraceinfo.h                                            \
# 	ptrace/ptracewrappers.cpp
# __d_libdir__libdmtcp_ptrace_so_LDFLAGS = $(dmtcp_ldflags)
# __d_libdir__libdmtcp_ptrace_so_LDADD = $(LDADD)
# endif

#
# Unique ckpt plugin
#
libdmtcp_PROGRAMS += $(d_libdir)/libdmtcp_unique-ckpt.so
__d_libdir__libdmtcp_unique_ckpt_so_SOURCES =                          \
	unique-ckpt/unique-ckpt.cpp
__d_libdir__libdmtcp_unique_ckpt_so_LDFLAGS = $(dmtcp_ldflags)
__d_libdir__libdmtcp_unique_ckpt_so_LDADD = $(LDADD)

#
# Path virtualization plugin
#
libdmtcp_PROGRAMS += $(d_libdir)/libdmtcp_pathvirt.so
__d_libdir__libdmtcp_pathvirt_so_SOURCES =                             \
	pathvirt/pathvirt.cpp
__d_libdir__libdmtcp_pathvirt_so_LDFLAGS = $(dmtcp_ldflags)
__d_libdir__libdmtcp_pathvirt_so_LDADD = $(LDADD)

install-libs: install-libdmtcpPROGRAMS

uninstall-libs: uninstall-libdmtcpPROGRAMS

.PHONY: install-libs uninstall-libs