1#
2# Makefile for cray tools
3#
4
5AUTOMAKE_OPTIONS = foreign
6
7AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/src/common $(JSON_CPPFLAGS)
8
9sbin_PROGRAMS = slurmsmwd
10slurmsmwd_SOURCES	= main.c read_config.c
11slurmsmwd_LDADD = 					\
12	$(top_builddir)/src/common/libdaemonize.la \
13	$(LIB_SLURM) $(DL_LIBS)
14slurmsmwd_LDFLAGS = -export-dynamic $(CMD_LDFLAGS)
15
16
17ETC_FILES = slurmsmwd.service
18
19CLEANFILES = $(ETC_FILES)
20
21edit = sed \
22        -e 's|@bindir[@]|$(bindir)|g' \
23        -e 's|@libdir[@]|$(libdir)|g' \
24        -e 's|@sbindir[@]|$(sbindir)|g' \
25        -e 's|@sysconfdir[@]|$(sysconfdir)|g'
26
27noinst_DATA = $(ETC_FILES)
28
29slurmsmwd.service: Makefile $(srcdir)/slurmsmwd.service.in
30	$(edit) $(srcdir)/slurmsmwd.service.in > slurmsmwd.service
31
32force:
33$(slurmsmwd_LDADD) : force
34	@cd `dirname $@` && $(MAKE) `basename $@`
35