PageRenderTime 13ms CodeModel.GetById 1ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 1ms

/src/modules/Makefile.am

https://code.google.com/
Makefile | 219 lines | 177 code | 37 blank | 5 comment | 22 complexity | 08da07e52fcd89e4eebbb447ea4b9330 MD5 | raw file
  1##*****************************************************************************
  2## $Id$
  3##*****************************************************************************
  4## Process this file with automake to produce Makefile.in.
  5##*****************************************************************************
  6
  7include $(top_srcdir)/config/Make-inc.mk
  8
  9AUTOMAKE_OPTIONS = foreign
 10
 11INCLUDES =         -I$(top_srcdir)
 12
 13
 14if WITH_SSH
 15SSH_MODULE = sshcmd.la
 16endif
 17
 18if WITH_QSHELL
 19QSHELL_MODULE = qcmd.la
 20endif
 21
 22if WITH_LIBGENDERS
 23GENDERS_MODULE = genders.la
 24endif
 25
 26if WITH_NODEATTR
 27NODEATTR_MODULE = nodeattr.la
 28endif
 29
 30if WITH_NODEUPDOWN
 31NODEUPDOWN_MODULE = nodeupdown.la
 32endif
 33
 34if WITH_RMS
 35RMS_MODULE = rms.la
 36endif
 37
 38if WITH_MACHINES
 39MACHINES_MODULE = machines.la
 40endif
 41
 42if WITH_SDR
 43SDR_MODULE = sdr.la
 44endif
 45
 46if WITH_MRSH
 47MRSH_MODULE = mcmd.la
 48endif
 49
 50if WITH_MQSHELL
 51MQSHELL_MODULE = mqcmd.la
 52endif
 53
 54if WITH_KRB4
 55KRB4_MODULE = k4cmd.la
 56endif
 57
 58if WITH_RSH
 59RSH_MODULE = xrcmd.la
 60endif
 61
 62if WITH_XCPU
 63XCPU_MODULE = xcpucmd.la
 64endif
 65
 66if WITH_SLURM
 67SLURM_MODULE = slurm.la
 68endif
 69
 70if WITH_TORQUE
 71TORQUE_MODULE = torque.la
 72endif
 73
 74if WITH_DSHGROUP
 75DSHGROUP_MODULE = dshgroup.la
 76endif
 77
 78if WITH_NETGROUP
 79NETGROUP_MODULE = netgroup.la
 80endif
 81
 82if WITH_EXEC
 83EXEC_MODULE = execcmd.la
 84endif
 85
 86if WITH_GNU_LD
 87VERSION_SCRIPT = \
 88	version.map
 89OTHER_FLAGS = \
 90	-Wl,--version-script=$(VERSION_SCRIPT)
 91endif
 92
 93if WITH_STATIC_MODULES
 94noinst_LTLIBRARIES = \
 95	libmods.la
 96
 97libmods_la_LIBADD = \
 98	$(LIBMODS_OBJS)
 99
100libmods_la_DEPENDENCIES = \
101	$(LIBMODS_OBJS) 
102else
103pkglib_LTLIBRARIES = \
104	$(RSH_MODULE) \
105	$(XCPU_MODULE) \
106	$(SSH_MODULE) \
107	$(MRSH_MODULE) \
108	$(MQSHELL_MODULE) \
109	$(QSHELL_MODULE) \
110	$(GENDERS_MODULE) \
111	$(NODEATTR_MODULE) \
112	$(NODEUPDOWN_MODULE) \
113	$(RMS_MODULE) \
114	$(MACHINES_MODULE) \
115	$(SDR_MODULE) \
116	$(KRB4_MODULE) \
117	$(SLURM_MODULE) \
118	$(TORQUE_MODULE) \
119	$(DSHGROUP_MODULE) \
120	$(NETGROUP_MODULE) \
121	$(EXEC_MODULE)
122
123BUILT_SOURCES = \
124	$(VERSION_SCRIPT)
125
126MODULE_FLAGS = \
127	-module -avoid-version $(OTHER_FLAGS)
128endif
129
130nodist_libmods_la_SOURCES = \
131	$(top_builddir)/static_modules.h
132
133EXTRA_libmods_la_SOURCES = \
134	xrcmd.c \
135	sshcmd.c \
136	mcmd.c  \
137	mqcmd.c \
138	qcmd.c  \
139	genders.c \
140	nodeattr.c \
141	nodeupdown.c \
142	rms.c \
143	machines.c \
144	sdr.c \
145	k4cmd.c \
146	slurm.c \
147	dshgroup.c \
148	netgroup.c \
149	xcpucmd.c \
150	execcmd.c 
151
152if WITH_QSW
153QSNET_LIBS = \
154	$(top_builddir)/src/qsnet/libqsw.la 
155endif
156	
157libmods_la_LDFLAGS = \
158	$(QSNET_LIBS) \
159	$(MRSH_LIBS) \
160	$(NODEUPDOWN_LIBS) \
161	$(KRB_LIBS) \
162	$(GENDERS_LIBS) \
163	$(SLURM_LIBS) \
164	$(TORQUE_LIBS)
165
166
167xrcmd_la_SOURCES =        xrcmd.c 
168xrcmd_la_LDFLAGS =        $(MODULE_FLAGS)
169xcpucmd_la_SOURCES =      xcpucmd.c 
170xcpucmd_la_LDFLAGS =      $(MODULE_FLAGS)
171sshcmd_la_SOURCES =       sshcmd.c
172sshcmd_la_LDFLAGS =       $(MODULE_FLAGS)
173qcmd_la_SOURCES =         qcmd.c 
174qcmd_la_LDFLAGS =         $(MODULE_FLAGS) 
175qcmd_la_LIBADD =          $(top_builddir)/src/qsnet/libqsw.la
176mcmd_la_SOURCES =         mcmd.c 
177mcmd_la_LDFLAGS =         $(MODULE_FLAGS) $(MRSH_LIBS)
178mqcmd_la_SOURCES =        mqcmd.c
179mqcmd_la_LDFLAGS =        $(MODULE_FLAGS) $(MRSH_LIBS) 
180mqcmd_la_LIBADD =         $(top_builddir)/src/qsnet/libqsw.la
181k4cmd_la_SOURCES =        k4cmd.c 
182k4cmd_la_LDFLAGS =        $(MODULE_FLAGS) $(KRB_LIBS)
183execcmd_la_SOURCES =      execcmd.c
184execcmd_la_LDFLAGS =      $(MODULE_FLAGS)
185
186machines_la_SOURCES =     machines.c 
187machines_la_LDFLAGS =     $(MODULE_FLAGS)
188genders_la_SOURCES =      genders.c 
189genders_la_LDFLAGS =      $(MODULE_FLAGS) $(GENDERS_LIBS)
190if WITH_SDR
191genders_la_CPPFLAGS =     -DGENDERS_G_ONLY
192endif
193nodeattr_la_SOURCES =     nodeattr.c 
194nodeattr_la_LDFLAGS =     $(MODULE_FLAGS)
195nodeupdown_la_SOURCES =   nodeupdown.c 
196nodeupdown_la_LDFLAGS =   $(MODULE_FLAGS) $(NODEUPDOWN_LIBS)
197rms_la_SOURCES =          rms.c 
198rms_la_LDFLAGS =          $(MODULE_FLAGS)
199sdr_la_SOURCES =          sdr.c 
200sdr_la_LDFLAGS =          $(MODULE_FLAGS)
201slurm_la_SOURCES =        slurm.c 
202slurm_la_LDFLAGS =        $(MODULE_FLAGS) $(SLURM_LIBS)
203torque_la_SOURCES =       torque.c
204torque_la_LDFLAGS =       $(MODULE_FLAGS) $(TORQUE_LIBS)
205torque_la_CPPFLAGS =      $(TORQUE_CPPFLAGS)
206dshgroup_la_SOURCES =     dshgroup.c 
207dshgroup_la_LDFLAGS =     $(MODULE_FLAGS) 
208netgroup_la_SOURCES =     netgroup.c 
209netgroup_la_LDFLAGS =     $(MODULE_FLAGS) 
210
211$(VERSION_SCRIPT) : 
212	(echo  "{ global:";                \
213	 echo "    pdsh_module_info;";     \
214	 echo "    pdsh_module_priority;"; \
215	 echo "  local: *;";               \
216	 echo "};") > $(VERSION_SCRIPT)
217
218DISTCLEANFILES = \
219	$(VERSION_SCRIPT)