Project_Dep_Name flac_ren\r
End Project Dependency\r
Begin Project Dependency\r
+ Project_Dep_Name file_utils\r
+ End Project Dependency\r
+ Begin Project Dependency\r
Project_Dep_Name gain_analysis\r
End Project Dependency\r
Begin Project Dependency\r
\r
Package=<4>\r
{{{\r
+ Begin Project Dependency\r
+ Project_Dep_Name file_utils\r
+ End Project Dependency\r
Begin Project Dependency\r
Project_Dep_Name gain_analysis\r
End Project Dependency\r
\r
###############################################################################\r
\r
+Project: "file_utils"=.\src\share\file_utils\file_utils.dsp - Package Owner=<4>\r
+\r
+Package=<5>\r
+{{{\r
+}}}\r
+\r
+Package=<4>\r
+{{{\r
+}}}\r
+\r
+###############################################################################\r
+\r
Project: "gain_analysis"=.\src\share\gain_analysis\gain_analysis.dsp - Package Owner=<4>\r
\r
Package=<5>\r
(cd src/$@ ; $(MAKE) -f Makefile.lite $(CONFIG))
share:
+ (cd src/$@/file_utils ; $(MAKE) -f Makefile.lite $(CONFIG))
(cd src/$@/gain_analysis ; $(MAKE) -f Makefile.lite $(CONFIG))
(cd src/$@/getopt ; $(MAKE) -f Makefile.lite $(CONFIG))
(cd src/$@/replaygain ; $(MAKE) -f Makefile.lite $(CONFIG))
-(cd src/libFLAC++ ; $(MAKE) -f Makefile.lite clean)
-(cd src/libOggFLAC ; $(MAKE) -f Makefile.lite clean)
-(cd src/libOggFLAC++ ; $(MAKE) -f Makefile.lite clean)
+ -(cd src/share/file_utils ; $(MAKE) -f Makefile.lite clean)
-(cd src/share/gain_analysis ; $(MAKE) -f Makefile.lite clean)
-(cd src/share/getopt ; $(MAKE) -f Makefile.lite clean)
-(cd src/share/replaygain ; $(MAKE) -f Makefile.lite clean)
AM_PATH_XMMS(0.9.5.1, , AC_MSG_WARN([*** XMMS >= 0.9.5.1 not installed - xmms support will not be built]))
AM_CONDITIONAL(FLaC__HAS_XMMS, test x$XMMS_INPUT_PLUGIN_DIR != x)
-SHARE_LIBS='$(top_builddir)/src/share/libreplaygain.a $(top_builddir)/src/share/libgain_analysis.a $(top_builddir)/src/share/libgetopt.a $(top_builddir)/src/share/libutf8.a'
+SHARE_LIBS='$(top_builddir)/src/share/libreplaygain.a $(top_builddir)/src/share/libgain_analysis.a $(top_builddir)/src/share/libgetopt.a $(top_builddir)/src/share/libutf8.a $(top_builddir)/src/share/libfile_utils.a'
dnl check for i18n(internationalization); these are from libiconv/gettext
AM_ICONV
src/plugin_winamp3/Makefile \
src/plugin_xmms/Makefile \
src/share/Makefile \
+ src/share/file_utils/Makefile \
src/share/gain_analysis/Makefile \
src/share/getopt/Makefile \
src/share/replaygain/Makefile \
AUTOMAKE_OPTIONS = foreign
EXTRA_DIST = \
+ file_utils.h \
gain_analysis.h \
getopt.h \
utf8.h
PROGRAM_NAME = flac
ifeq ($(DARWIN_BUILD),yes)
INCLUDES = -I./include -I$(topdir)/include
-LIBS = -lreplaygain -lFLAC -lgain_analysis -lgetopt -lutf8 -lc -lm
+LIBS = -lreplaygain -lFLAC -lgain_analysis -lgetopt -lutf8 -lfile_utils -lc -lm
else
#@@@ TODO: conditionalize ogg includes, defines, and -logg
ifeq ($(SOLARIS_BUILD),yes)
INCLUDES = -I./include -I$(topdir)/include -I$(HOME)/local/include -DFLAC__HAS_OGG
-LIBS = -lreplaygain -lOggFLAC -lFLAC -lgain_analysis -lgetopt -lutf8 -lm -L$(HOME)/local/lib -logg
+LIBS = -lreplaygain -lOggFLAC -lFLAC -lgain_analysis -lgetopt -lutf8 -lfile_utils -lm -L$(HOME)/local/lib -logg
else
#@@@ TODO: conditionalize ogg includes, defines, and -logg
INCLUDES = -I./include -I$(topdir)/include -I$(HOME)/local/include -DFLAC__HAS_OGG
-LIBS = -lreplaygain -lOggFLAC -lFLAC -lgain_analysis -lgetopt -lutf8 -lm -L$(HOME)/local/lib -logg
+LIBS = -lreplaygain -lOggFLAC -lFLAC -lgain_analysis -lgetopt -lutf8 -lfile_utils -lm -L$(HOME)/local/lib -logg
endif
endif
analyze.o \
decode.o \
encode.o \
- file.o \
main.o \
vorbiscomment.o
analyze.c \\r
decode.c \\r
encode.c \\r
- file.c \\r
main.c \\r
vorbiscomment.c\r
\r
all: flac.exe\r
\r
flac.exe: $(OBJS)\r
- link.exe /libpath:"..\..\obj\lib" -out:../../obj/bin/$*.exe $(OBJS) replaygain.lib libOggFLAC.lib libFLAC.lib ogg_static.lib gain_analysis.lib getopt.lib utf8.lib\r
+ link.exe /libpath:"..\..\obj\lib" -out:../../obj/bin/$*.exe $(OBJS) replaygain.lib libOggFLAC.lib libFLAC.lib ogg_static.lib gain_analysis.lib getopt.lib utf8.lib file_utils.lib\r
\r
clean:\r
-del *.obj *.pch\r
#include <stdio.h> /* for FILE et al. */
#include <string.h> /* for strcmp() */
#include "FLAC/all.h"
+#include "share/file_utils.h"
#include "decode.h"
-#include "file.h"
#ifdef FLAC__HAS_OGG
#include "OggFLAC/stream_decoder.h"
d->aopts = aopts;
d->skip = skip;
- d->inbasefilename = flac__file_get_basename(infilename);
+ d->inbasefilename = FLAC__file_utils_get_basename(infilename);
d->outfilename = outfilename;
d->samples_processed = 0;
if(!d->test_only) {
if(0 == strcmp(outfilename, "-")) {
- d->fout = file__get_binary_stdout();
+ d->fout = FLAC__file_utils_get_binary_stdout();
}
else {
if(0 == (d->fout = fopen(outfilename, "wb"))) {
#ifdef FLAC__HAS_OGG
if(d->is_ogg) {
if (0 == strcmp(infilename, "-")) {
- d->fin = file__get_binary_stdin();
+ d->fin = FLAC__file_utils_get_binary_stdin();
} else {
if (0 == (d->fin = fopen(infilename, "rb"))) {
fprintf(stderr, "%s: ERROR: can't open input file %s\n", d->inbasefilename, infilename);
PROGRAM_NAME = metaflac
INCLUDES = -I./include -I$(topdir)/include
-LIBS = -lreplaygain -lFLAC -lgain_analysis -lgetopt -lutf8 -lm
+LIBS = -lreplaygain -lFLAC -lgain_analysis -lgetopt -lutf8 -lfile_utils -lm
OBJS = \
main.o
all: metaflac.exe\r
\r
metaflac.exe: $(OBJS)\r
- link.exe /libpath:"..\..\obj\lib" -out:../../obj/bin/$*.exe $(OBJS) replaygain.lib libFLAC.lib gain_analysis.lib getopt.lib utf8.lib\r
+ link.exe /libpath:"..\..\obj\lib" -out:../../obj/bin/$*.exe $(OBJS) replaygain.lib libFLAC.lib gain_analysis.lib getopt.lib utf8.lib file_utils.lib\r
\r
clean:\r
-del *.obj *.pch\r
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-SUBDIRS = gain_analysis getopt replaygain utf8
+SUBDIRS = file_utils gain_analysis getopt replaygain utf8
EXTRA_DIST = \
Makefile.vc \
# It's less hassle to spell it all out that to figure out how to do it right with nmake:\r
\r
all:\r
+ cd file_utils\r
+ nmake /f Makefile.vc\r
+ cd ..\r
cd gain_analysis\r
nmake /f Makefile.vc\r
cd ..\r
cd ..\r
\r
clean:\r
+ cd file_utils\r
+ nmake /f Makefile.vc clean\r
+ cd ..\r
cd gain_analysis\r
nmake /f Makefile.vc clean\r
cd ..\r