From 86732af14c2361ed2b23a9f361e3bcae284ff770 Mon Sep 17 00:00:00 2001 From: Arlin Davis Date: Fri, 15 Mar 2013 12:20:31 -0700 Subject: [PATCH] build: update makefile to disable mpxyd builds --disable-mcm will now disable both mcm provider and mpxyd build to support non SCIF platforms Signed-off-by: Arlin Davis --- Makefile.am | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile.am b/Makefile.am index d285a75..aaf447f 100755 --- a/Makefile.am +++ b/Makefile.am @@ -746,20 +746,28 @@ EXTRA_DIST = dat/common/dat_dictionary.h \ test/dapltest/include/dapl_version.h \ test/dapltest/mdep/linux/dapl_mdep_user.h $(XHEADERS) $(XDAT) +if DEFINE_MCM sbin_PROGRAMS = svc/mpxyd svc_mpxyd_SOURCES = dapl/svc/mpxyd.c svc_mpxyd_CFLAGS = $(AM_CFLAGS) -lscif -libverbs -Idat/include/ install-exec-hook: install -D -m 755 mpxyd.init $(DESTDIR)$(sysconfdir)/init.d/mpxyd; +endif dist-hook: intel-mic-ofed-dapl.spec cp intel-mic-ofed-dapl.spec $(distdir)/ +if DEFINE_MCM rpmcheck: intel-mic-ofed-dapl.spec mpxyd.init dist mkdir -p rpmbuild/{SOURCES,BUILD,RPMS,SPECS,BUILDROOT} cp mpxyd.init rpmbuild/SOURCES cp $(distdir).tar.gz rpmbuild/SOURCES +else +rpmcheck: intel-mic-ofed-dapl.spec dist + mkdir -p rpmbuild/{SOURCES,BUILD,RPMS,SPECS,BUILDROOT} + cp $(distdir).tar.gz rpmbuild/SOURCES +endif srcrpms: rpmcheck rpmbuild -bs --define "_topdir ${PWD}/rpmbuild" intel-mic-ofed-dapl.spec -- 2.41.0