Fix 'make distcheck'.

This commit is contained in:
Erik de Castro Lopo 2007-08-25 17:12:35 +10:00
parent 86a91c5b3f
commit eb670d1cab
2 changed files with 23 additions and 13 deletions

View File

@ -1,6 +1,6 @@
## Process this file with automake to produce Makefile.in
SUBDIRS = M4 man doc Win32 Octave src examples regtest tests
SUBDIRS = M4 man doc Win32 src Octave examples regtest tests
DIST_SUBDIRS = $(SUBDIRS)
EXTRA_DIST = reconfigure.mk libsndfile.spec.in sndfile.pc.in \
Mingw-make-dist.sh

View File

@ -1,24 +1,34 @@
## Process this file with automake to produce Makefile.in
INCLUDES = -I../src
# Prevent any extension.
EXEEXT =
EXTRA_DIST = sndfile_load.m sndfile_save.m sndfile_play.m
octconfigdir = $(exec_prefix)/share/octave/site/m
octconfig_DATA = sndfile_load.m sndfile_save.m sndfile_play.m
all : sfread.oct sfwrite.oct
OCT_CXXFLAGS = $(shell $(MKOCTFILE) -p ALL_CXXFLAGS)
sfread.oct : format.o sfread.cc
$(MKOCTFILE) $+ -lsndfile -o $@
# OCT_LIB_DIR = $(shell $(MKOCTFILE) -p LFLAGS)
# OCT_LIBS = $(shell $(MKOCTFILE) -p OCTAVE_LIBS)
sfwrite.oct : format.o sfwrite.cc
$(MKOCTFILE) $(INCLUDES) $+ -lsndfile -o $@
OCT_LIB_DIR = -L/usr/lib/octave-2.9.9
OCT_LIBS = -loctinterp -loctave -lcruft
format.o : format.cc
$(MKOCTFILE) $(INCLUDES) -c $<
SNDFILEDIR = ../src
INCLUDES = -I$(srcdir)/$(SNDFILEDIR)
bin_PROGRAMS = sfread.oct
noinst_HEADERS = format.h
sfread_oct_SOURCES = format.cc sfread.cc
sfread_oct_CXXFLAGS = $(OCT_CXXFLAGS) $(INCLUDES)
sfread_oct_LDADD = $(OCT_LIB_DIR) $(OCT_LIBS) $(SNDFILEDIR)/libsndfile.la
sfwrite_oct_SOURCES = format.cc sfwrite.cc
sfwrite_oct_CXXFLAGS = $(OCT_CXXFLAGS) $(INCLUDES)
sfwrite_oct_LDADD = $(OCT_LIB_DIR) $(OCT_LIBS) $(SNDFILEDIR)/libsndfile.la
%.o: %.c ; $(MKOCTFILE) -c $<
%.o: %.f ; $(MKOCTFILE) -c $<
%.o: %.cc ; $(MKOCTFILE) -c $<
%.oct: %.cc ; $(MKOCTFILE) $<