#

AUTOMAKE_OPTIONS = foreign
CLEANFILES = core.*

INCLUDES = -I$(top_srcdir)

bin_PROGRAMS = sbatch

sbatch_SOURCES = sbatch.c mult_cluster.c mult_cluster.h opt.c opt.h

convenience_libs = $(top_builddir)/src/api/libslurm.o $(DL_LIBS)

sbatch_LDADD = $(convenience_libs)

sbatch_LDFLAGS = -export-dynamic $(CMD_LDFLAGS) \
	$(HWLOC_LDFLAGS) $(HWLOC_LIBS)

force:
$(convenience_libs) : force
	@cd `dirname $@` && $(MAKE) `basename $@`
