1219820Sjeff 2219820Sjeff# note that order matters: make the libs first then use them 3219820SjeffSUBDIRS = complib libvendor opensm osmtest include $(DEFAULT_EVENT_PLUGIN) 4219820SjeffDIST_SUBDIRS = complib libvendor opensm osmtest include osmeventplugin 5219820Sjeff 6219820SjeffACLOCAL_AMFLAGS = -I config 7219820Sjeff 8219820Sjeff# we should provide a hint for other apps about the build mode of this project 9219820Sjeffinstall-exec-hook: 10219820Sjeff mkdir -p $(DESTDIR)/$(includedir) 11219820Sjeffif DEBUG 12219820Sjeff echo "define osm_build_type \"debug\"" > $(DESTDIR)/$(includedir)/infiniband/opensm/osm_build_id.h 13219820Sjeffelse 14219820Sjeff echo "define osm_build_type \"free\"" > $(DESTDIR)/$(includedir)/infiniband/opensm/osm_build_id.h 15219820Sjeffendif 16219820Sjeff $(top_srcdir)/config/install-sh -m 755 -d $(DESTDIR)/$(sysconfdir)/init.d 17219820Sjeff cp $(top_builddir)/scripts/opensm.init $(DESTDIR)/$(sysconfdir)/init.d/opensmd 18219820Sjeff chmod 755 $(DESTDIR)/$(sysconfdir)/init.d/opensmd 19219820Sjeff 20219820Sjeff 21219820Sjeffman_MANS = man/opensm.8 man/osmtest.8 22219820Sjeff 23219820Sjeffvarious_scripts = $(wildcard scripts/*) 24219820Sjeffdocs = doc/performance-manager-HOWTO.txt doc/QoS_management_in_OpenSM.txt \ 25219820Sjeff doc/opensm_release_notes-3.2.txt 26219820Sjeff 27219820SjeffEXTRA_DIST = autogen.sh opensm.spec $(various_scripts) $(man_MANS) $(docs) 28219820Sjeff 29219820Sjeffdist-hook: $(EXTRA_DIST) 30219820Sjeff if [ -x $(top_srcdir)/../gen_chlog.sh ] ; then \ 31219820Sjeff cd $(top_srcdir)/.. ; ./gen_chlog.sh $(PACKAGE) > $(distdir)/ChangeLog ; cd - ; \ 32219820Sjeff fi 33