annotate src/libsndfile-1.0.27/Octave/Makefile.am @ 40:1df64224f5ac

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