1b815c7f3Sopenharmony_ci## Process this file with automake to produce Makefile.in 2b815c7f3Sopenharmony_ci 3b815c7f3Sopenharmony_ci# Prevent any extension. 4b815c7f3Sopenharmony_ciEXEEXT = 5b815c7f3Sopenharmony_ci 6b815c7f3Sopenharmony_ciCXXLD = $(CXX) 7b815c7f3Sopenharmony_ciCXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ 8b815c7f3Sopenharmony_ci $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ 9b815c7f3Sopenharmony_ci 10b815c7f3Sopenharmony_ciEXTRA_DIST = sndfile_load.m sndfile_save.m sndfile_play.m \ 11b815c7f3Sopenharmony_ci octave_test.m octave_test.sh $(oct_module_srcs) PKG_ADD 12b815c7f3Sopenharmony_ci 13b815c7f3Sopenharmony_cioctconfigdir = $(exec_prefix)/share/octave/site/m 14b815c7f3Sopenharmony_cioctconfig_DATA = sndfile_load.m sndfile_save.m sndfile_play.m 15b815c7f3Sopenharmony_ci 16b815c7f3Sopenharmony_ciOCTAVE_DEST_MDIR = @OCTAVE_DEST_MDIR@ 17b815c7f3Sopenharmony_ciOCTAVE_DEST_ODIR = @OCTAVE_DEST_ODIR@/sndfile 18b815c7f3Sopenharmony_ci 19b815c7f3Sopenharmony_ciOCT_CXXFLAGS = @OCT_CXXFLAGS@ 20b815c7f3Sopenharmony_ciOCT_LIB_DIR = @OCT_LIB_DIR@ 21b815c7f3Sopenharmony_ciOCT_LIBS = @OCT_LIBS@ 22b815c7f3Sopenharmony_ci 23b815c7f3Sopenharmony_ciSNDFILEDIR = $(top_builddir)/src 24b815c7f3Sopenharmony_ciAM_CPPFLAGS = -I$(SNDFILEDIR) 25b815c7f3Sopenharmony_ci 26b815c7f3Sopenharmony_cioct_module_srcs = sndfile.cc 27b815c7f3Sopenharmony_cioct_module_files = sndfile.oct PKG_ADD 28b815c7f3Sopenharmony_ci 29b815c7f3Sopenharmony_ci# Make these noinst so they can be installed manually. 30b815c7f3Sopenharmony_cinoinst_DATA = $(oct_module_files) 31b815c7f3Sopenharmony_ci 32b815c7f3Sopenharmony_ci 33b815c7f3Sopenharmony_ci# Used by shave which cleans up automake generated Makefile output. 34b815c7f3Sopenharmony_ciV = @ 35b815c7f3Sopenharmony_ciQ = $(V:1=) 36b815c7f3Sopenharmony_ciQUIET_GEN = $(Q:@=@echo ' GEN '$@;) 37b815c7f3Sopenharmony_ci 38b815c7f3Sopenharmony_ci 39b815c7f3Sopenharmony_ci# Use Octave's mkoctfile to do all the heavy lifting. Unfortunately, its 40b815c7f3Sopenharmony_ci# a little dumb so we need to guide it carefully. 41b815c7f3Sopenharmony_cisndfile.oct : sndfile.o 42b815c7f3Sopenharmony_ci $(QUIET_GEN) $(MKOCTFILE) -v $(INCLUDES) $(top_builddir)/Octave/$+ -L$(SNDFILEDIR)/.libs -L$(SNDFILEDIR) -lsndfile -o $(top_builddir)/Octave/$@ > /dev/null 43b815c7f3Sopenharmony_ci 44b815c7f3Sopenharmony_cisndfile.o : sndfile.cc 45b815c7f3Sopenharmony_ci $(QUIET_GEN) $(MKOCTFILE) -v $(INCLUDES) -c $+ -o $(top_builddir)/Octave/$@ > /dev/null 46b815c7f3Sopenharmony_ci 47b815c7f3Sopenharmony_ci# Allow for the test being run in the build dir, but the test script 48b815c7f3Sopenharmony_ci# being located in the source dir. 49b815c7f3Sopenharmony_cicheck : 50b815c7f3Sopenharmony_ci octave_src_dir=$(srcdir) $(srcdir)/octave_test.sh 51b815c7f3Sopenharmony_ci 52b815c7f3Sopenharmony_ci 53b815c7f3Sopenharmony_ci# Since the octave modules are installed in a special location, a custom install 54b815c7f3Sopenharmony_ci# and uninstall routine must be specified. 55b815c7f3Sopenharmony_ciinstall-exec-local : $(oct_module_files) 56b815c7f3Sopenharmony_ci @$(NORMAL_INSTALL) 57b815c7f3Sopenharmony_ci test -z "$(OCTAVE_DEST_ODIR)" || $(mkdir_p) "$(DESTDIR)$(OCTAVE_DEST_ODIR)" 58b815c7f3Sopenharmony_ci @list='$(oct_module_files)'; for p in $$list; do \ 59b815c7f3Sopenharmony_ci p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ 60b815c7f3Sopenharmony_ci if test -f $$p \ 61b815c7f3Sopenharmony_ci || test -f $$p1 \ 62b815c7f3Sopenharmony_ci ; then \ 63b815c7f3Sopenharmony_ci f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ 64b815c7f3Sopenharmony_ci echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL) '$$p' '$(DESTDIR)$(OCTAVE_DEST_ODIR)/$$f'"; \ 65b815c7f3Sopenharmony_ci $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL) "$$p" "$(DESTDIR)$(OCTAVE_DEST_ODIR)/$$f" || exit 1; \ 66b815c7f3Sopenharmony_ci else :; fi; \ 67b815c7f3Sopenharmony_ci done 68b815c7f3Sopenharmony_ci 69b815c7f3Sopenharmony_ciuninstall-local : 70b815c7f3Sopenharmony_ci @$(NORMAL_UNINSTALL) 71b815c7f3Sopenharmony_ci @list='$(oct_module_files)'; for p in $$list; do \ 72b815c7f3Sopenharmony_ci f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ 73b815c7f3Sopenharmony_ci echo " rm -f '$(DESTDIR)$(OCTAVE_DEST_ODIR)/$$f'"; \ 74b815c7f3Sopenharmony_ci rm -f "$(DESTDIR)$(OCTAVE_DEST_ODIR)/$$f"; \ 75b815c7f3Sopenharmony_ci done 76b815c7f3Sopenharmony_ci 77b815c7f3Sopenharmony_ciclean-local : 78b815c7f3Sopenharmony_ci rm -f sndfile.o sndfile.oct 79b815c7f3Sopenharmony_ci @if test $(abs_builddir) != $(abs_srcdir) ; then rm -f PKG_ADD ; fi 80