summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.lite6
-rw-r--r--src/flac/Makefile.lite4
-rw-r--r--src/flac/Makefile.lite.iffscan4
-rw-r--r--src/libFLAC++/Makefile.lite4
-rw-r--r--src/libFLAC/Makefile.lite4
-rw-r--r--src/metaflac/Makefile.lite4
-rw-r--r--src/plugin_xmms/Makefile.lite4
-rw-r--r--src/share/Makefile.lite4
-rw-r--r--src/share/getopt/Makefile.lite2
-rw-r--r--src/share/grabbag/Makefile.lite7
-rw-r--r--src/share/replaygain_analysis/Makefile.lite2
-rw-r--r--src/share/replaygain_synthesis/Makefile.lite2
-rw-r--r--src/share/utf8/Makefile.lite2
-rw-r--r--src/share/win_utf8_io/Makefile.lite15
-rw-r--r--src/test_grabbag/cuesheet/Makefile.lite4
-rw-r--r--src/test_grabbag/picture/Makefile.lite4
-rw-r--r--src/test_libFLAC++/Makefile.lite4
-rw-r--r--src/test_libFLAC/Makefile.lite5
-rw-r--r--src/test_libs_common/Makefile.lite4
-rw-r--r--src/test_seeking/Makefile.lite4
-rw-r--r--src/test_streams/Makefile.lite10
-rw-r--r--src/utils/flacdiff/Makefile.lite4
-rw-r--r--src/utils/flactimer/Makefile.lite4
23 files changed, 100 insertions, 7 deletions
diff --git a/src/Makefile.lite b/src/Makefile.lite
index 3027e6f9..72d35699 100644
--- a/src/Makefile.lite
+++ b/src/Makefile.lite
@@ -30,7 +30,11 @@ else
endif
endif
-.PHONY: all flac libFLAC libFLAC++ metaflac plugin_common plugin_xmms share test_grabbag test_libs_common test_libFLAC test_libFLAC++ test_seeking test_streams utils flacdiff flactimer
+ifeq ($(findstring MINGW,$(OS)),MINGW)
+ EXTRA_TARGETS += share/win_utf8_io
+endif
+
+.PHONY: all flac libFLAC libFLAC++ metaflac plugin_common plugin_xmms share/win_utf8_io share test_grabbag test_libs_common test_libFLAC test_libFLAC++ test_seeking test_streams utils flacdiff flactimer
all: flac libFLAC libFLAC++ metaflac plugin_common $(EXTRA_TARGETS) share test_grabbag test_libs_common test_libFLAC test_libFLAC++ test_seeking test_streams utils
DEFAULT_CONFIG = release
diff --git a/src/flac/Makefile.lite b/src/flac/Makefile.lite
index 5c8391ab..05b947fa 100644
--- a/src/flac/Makefile.lite
+++ b/src/flac/Makefile.lite
@@ -30,8 +30,12 @@ INCLUDES = -I./include -I$(topdir)/include $(OGG_INCLUDES)
ifeq ($(OS),Darwin)
EXPLICIT_LIBS = $(libdir)/libgrabbag.a $(libdir)/libFLAC.a $(libdir)/libreplaygain_analysis.a $(libdir)/libreplaygain_synthesis.a $(libdir)/libgetopt.a $(libdir)/libutf8.a $(OGG_EXPLICIT_LIBS) $(ICONV_LIBS) -lm
else
+ifeq ($(findstring Windows,$(OS)),Windows)
+ LIBS = -lgrabbag -lFLAC -lreplaygain_analysis -lreplaygain_synthesis -lgetopt -lutf8 -lgrabbag -lwin_utf8_io $(OGG_LIBS) -lm
+else
LIBS = -lgrabbag -lFLAC -lreplaygain_analysis -lreplaygain_synthesis -lgetopt -lutf8 -lgrabbag $(OGG_LIBS) -lm
endif
+endif
SRCS_C = \
analyze.c \
diff --git a/src/flac/Makefile.lite.iffscan b/src/flac/Makefile.lite.iffscan
index ab49e8ca..306a5c42 100644
--- a/src/flac/Makefile.lite.iffscan
+++ b/src/flac/Makefile.lite.iffscan
@@ -30,8 +30,12 @@ INCLUDES = -I./include -I$(topdir)/include $(OGG_INCLUDES)
ifeq ($(OS),Darwin)
EXPLICIT_LIBS = $(libdir)/libFLAC.a $(OGG_EXPLICIT_LIBS) $(ICONV_LIBS) -lm
else
+ifeq ($(findstring Windows,$(OS)),Windows)
+ LIBS = -lFLAC -lwin_utf8_io $(OGG_LIBS) -lm
+else
LIBS = -lFLAC $(OGG_LIBS) -lm
endif
+endif
SRCS_C = \
foreign_metadata.c \
diff --git a/src/libFLAC++/Makefile.lite b/src/libFLAC++/Makefile.lite
index 51498132..9418804e 100644
--- a/src/libFLAC++/Makefile.lite
+++ b/src/libFLAC++/Makefile.lite
@@ -39,8 +39,12 @@ libdir = $(topdir)/objs/$(BUILD)/lib
ifeq ($(OS),Darwin)
EXPLICIT_LIBS = $(libdir)/libFLAC.a $(OGG_EXPLICIT_LIBS) -lm -lstdc++
else
+ifeq ($(findstring Windows,$(OS)),Windows)
+ LIBS = -lFLAC -lwin_utf8_io $(OGG_LIBS) -lm -lsupc++
+else
LIBS = -lFLAC $(OGG_LIBS) -lm -lsupc++
endif
+endif
LIB_NAME = libFLAC++
INCLUDES = -I$(topdir)/include
diff --git a/src/libFLAC/Makefile.lite b/src/libFLAC/Makefile.lite
index 6127cf37..e50a6f82 100644
--- a/src/libFLAC/Makefile.lite
+++ b/src/libFLAC/Makefile.lite
@@ -38,8 +38,12 @@ topdir = ../..
ifeq ($(OS),Darwin)
EXPLICIT_LIBS = $(OGG_EXPLICIT_LIBS) -lm
else
+ifeq ($(findstring Windows,$(OS)),Windows)
+ LIBS = -lwin_utf8_io $(OGG_LIBS) -lm
+else
LIBS = $(OGG_LIBS) -lm
endif
+endif
LIB_NAME = libFLAC
ifeq ($(PROC),ppc)
diff --git a/src/metaflac/Makefile.lite b/src/metaflac/Makefile.lite
index 9192384b..70cf311b 100644
--- a/src/metaflac/Makefile.lite
+++ b/src/metaflac/Makefile.lite
@@ -30,8 +30,12 @@ INCLUDES = -I./include -I$(topdir)/include $(OGG_INCLUDES)
ifeq ($(OS),Darwin)
EXPLICIT_LIBS = $(libdir)/libgrabbag.a $(libdir)/libFLAC.a $(libdir)/libreplaygain_analysis.a $(libdir)/libgetopt.a $(libdir)/libutf8.a $(OGG_EXPLICIT_LIBS) $(ICONV_LIBS) -lm
else
+ifeq ($(findstring Windows,$(OS)),Windows)
+ LIBS = -lgrabbag -lFLAC -lreplaygain_analysis -lgetopt -lutf8 -lgrabbag -lwin_utf8_io $(OGG_LIBS) -lm
+else
LIBS = -lgrabbag -lFLAC -lreplaygain_analysis -lgetopt -lutf8 -lgrabbag $(OGG_LIBS) -lm
endif
+endif
SRCS_C = \
main.c \
diff --git a/src/plugin_xmms/Makefile.lite b/src/plugin_xmms/Makefile.lite
index 96b1ab1e..e98d8052 100644
--- a/src/plugin_xmms/Makefile.lite
+++ b/src/plugin_xmms/Makefile.lite
@@ -29,8 +29,12 @@ INCLUDES = -I./include -I$(topdir)/include -I.. $(shell xmms-config --cflags)
ifeq ($(OS),Darwin)
LIBS = $(libdir)/libFLAC.a $(libdir)/libplugin_common.a $(libdir)/libgrabbag.a $(libdir)/libreplaygain_analysis.a $(libdir)/libreplaygain_synthesis.a $(OGG_EXPLICIT_LIBS) $(ICONV_LIBS) -lm -lstdc++ -lz
else
+ifeq ($(findstring Windows,$(OS)),Windows)
+ LIBS = $(libdir)/libFLAC.a $(libdir)/libplugin_common.a $(libdir)/libgrabbag.a $(libdir)/libreplaygain_analysis.a $(libdir)/libreplaygain_synthesis.a $(libdir)/libwin_utf8_io.a $(OGG_LIBS) -lm -lsupc++ -lz
+else
LIBS = $(libdir)/libFLAC.a $(libdir)/libplugin_common.a $(libdir)/libgrabbag.a $(libdir)/libreplaygain_analysis.a $(libdir)/libreplaygain_synthesis.a $(OGG_LIBS) -lm -lsupc++ -lz
endif
+endif
SRCS_C = \
charset.c \
diff --git a/src/share/Makefile.lite b/src/share/Makefile.lite
index a9b56408..61367e99 100644
--- a/src/share/Makefile.lite
+++ b/src/share/Makefile.lite
@@ -46,9 +46,13 @@ replaygain_synthesis:
utf8:
(cd $@ ; $(MAKE) -f Makefile.lite $(CONFIG))
+win_utf8_io:
+ (cd $@ ; $(MAKE) -f Makefile.lite $(CONFIG))
+
clean:
-(cd getopt ; $(MAKE) -f Makefile.lite clean)
-(cd grabbag ; $(MAKE) -f Makefile.lite clean)
-(cd replaygain_analysis ; $(MAKE) -f Makefile.lite clean)
-(cd replaygain_synthesis ; $(MAKE) -f Makefile.lite clean)
-(cd utf8 ; $(MAKE) -f Makefile.lite clean)
+ -(cd win_utf8_io ; $(MAKE) -f Makefile.lite clean)
diff --git a/src/share/getopt/Makefile.lite b/src/share/getopt/Makefile.lite
index e36f341d..b4df6ec6 100644
--- a/src/share/getopt/Makefile.lite
+++ b/src/share/getopt/Makefile.lite
@@ -5,7 +5,7 @@
topdir = ../../..
LIB_NAME = libgetopt
-INCLUDES = -I$(topdir)/include -I$(topdir)/include/share
+INCLUDES = -I$(topdir)/include
SRCS_C = \
getopt.c \
diff --git a/src/share/grabbag/Makefile.lite b/src/share/grabbag/Makefile.lite
index 81f7d5c5..4eac54be 100644
--- a/src/share/grabbag/Makefile.lite
+++ b/src/share/grabbag/Makefile.lite
@@ -8,8 +8,12 @@ libdir = $(topdir)/objs/$(BUILD)/lib
ifeq ($(OS),Darwin)
EXPLICIT_LIBS = $(libdir)/libFLAC.a $(libdir)/libreplaygain_analysis.a $(OGG_EXPLICIT_LIBS) -lm
else
+ifeq ($(findstring Windows,$(OS)),Windows)
+ LIBS = -lFLAC -lreplaygain_analysis -lwin_utf8_io $(OGG_LIBS) -lm
+else
LIBS = -lFLAC -lreplaygain_analysis $(OGG_LIBS) -lm
endif
+endif
LIB_NAME = libgrabbag
INCLUDES = -I$(topdir)/include
@@ -20,7 +24,8 @@ SRCS_C = \
file.c \
picture.c \
replaygain.c \
- seektable.c
+ seektable.c \
+ snprintf.c
include $(topdir)/build/lib.mk
diff --git a/src/share/replaygain_analysis/Makefile.lite b/src/share/replaygain_analysis/Makefile.lite
index 8c4c6982..4fa2cc90 100644
--- a/src/share/replaygain_analysis/Makefile.lite
+++ b/src/share/replaygain_analysis/Makefile.lite
@@ -5,7 +5,7 @@
topdir = ../../..
LIB_NAME = libreplaygain_analysis
-INCLUDES = -I$(topdir)/include/share
+INCLUDES = -I$(topdir)/include
SRCS_C = \
replaygain_analysis.c
diff --git a/src/share/replaygain_synthesis/Makefile.lite b/src/share/replaygain_synthesis/Makefile.lite
index e58e7088..a944234a 100644
--- a/src/share/replaygain_synthesis/Makefile.lite
+++ b/src/share/replaygain_synthesis/Makefile.lite
@@ -5,7 +5,7 @@
topdir = ../../..
LIB_NAME = libreplaygain_synthesis
-INCLUDES = -I./include -I$(topdir)/include -I$(topdir)/include/share
+INCLUDES = -I./include -I$(topdir)/include
SRCS_C = \
replaygain_synthesis.c
diff --git a/src/share/utf8/Makefile.lite b/src/share/utf8/Makefile.lite
index 91417353..ad504921 100644
--- a/src/share/utf8/Makefile.lite
+++ b/src/share/utf8/Makefile.lite
@@ -13,7 +13,7 @@ else
LIBS = -lgrabbag $(ICONV_LIBS)
endif
-INCLUDES = -I$(topdir)/include -I$(topdir)/include/share
+INCLUDES = -I$(topdir)/include
SRCS_C = \
charset.c \
diff --git a/src/share/win_utf8_io/Makefile.lite b/src/share/win_utf8_io/Makefile.lite
new file mode 100644
index 00000000..b941b079
--- /dev/null
+++ b/src/share/win_utf8_io/Makefile.lite
@@ -0,0 +1,15 @@
+#
+# GNU makefile
+#
+
+topdir = ../../..
+
+LIB_NAME = libwin_utf8_io
+INCLUDES = -I$(topdir)/include
+
+SRCS_C = \
+ win_utf8_io.c
+
+include $(topdir)/build/lib.mk
+
+# DO NOT DELETE THIS LINE -- make depend depends on it.
diff --git a/src/test_grabbag/cuesheet/Makefile.lite b/src/test_grabbag/cuesheet/Makefile.lite
index df40536e..15b2487d 100644
--- a/src/test_grabbag/cuesheet/Makefile.lite
+++ b/src/test_grabbag/cuesheet/Makefile.lite
@@ -30,8 +30,12 @@ INCLUDES = -I./include -I$(topdir)/include
ifeq ($(OS),Darwin)
EXPLICIT_LIBS = $(libdir)/libgrabbag.a $(libdir)/libreplaygain_analysis.a $(libdir)/libFLAC.a $(OGG_EXPLICIT_LIBS) -lm
else
+ifeq ($(findstring Windows,$(OS)),Windows)
+ LIBS = -lgrabbag -lreplaygain_analysis -lFLAC -lwin_utf8_io $(OGG_LIBS) -lm
+else
LIBS = -lgrabbag -lreplaygain_analysis -lFLAC $(OGG_LIBS) -lm
endif
+endif
SRCS_C = \
main.c
diff --git a/src/test_grabbag/picture/Makefile.lite b/src/test_grabbag/picture/Makefile.lite
index a95fc530..e8d9ddfc 100644
--- a/src/test_grabbag/picture/Makefile.lite
+++ b/src/test_grabbag/picture/Makefile.lite
@@ -30,8 +30,12 @@ INCLUDES = -I./include -I$(topdir)/include
ifeq ($(OS),Darwin)
EXPLICIT_LIBS = $(libdir)/libgrabbag.a $(libdir)/libreplaygain_analysis.a $(libdir)/libFLAC.a $(OGG_EXPLICIT_LIBS) -lm
else
+ifeq ($(findstring Windows,$(OS)),Windows)
+ LIBS = -lgrabbag -lreplaygain_analysis -lFLAC -lwin_utf8_io $(OGG_LIBS) -lm
+else
LIBS = -lgrabbag -lreplaygain_analysis -lFLAC $(OGG_LIBS) -lm
endif
+endif
SRCS_C = \
main.c
diff --git a/src/test_libFLAC++/Makefile.lite b/src/test_libFLAC++/Makefile.lite
index b8ea0bee..a444f4a4 100644
--- a/src/test_libFLAC++/Makefile.lite
+++ b/src/test_libFLAC++/Makefile.lite
@@ -30,8 +30,12 @@ INCLUDES = -I$(topdir)/include
ifeq ($(OS),Darwin)
EXPLICIT_LIBS = $(libdir)/libgrabbag.a $(libdir)/libreplaygain_analysis.a $(libdir)/libtest_libs_common.a $(libdir)/libFLAC++.a $(libdir)/libFLAC.a $(OGG_EXPLICIT_LIBS) -lm
else
+ifeq ($(findstring Windows,$(OS)),Windows)
+ LIBS = -lgrabbag -lreplaygain_analysis -ltest_libs_common -lFLAC++ -lFLAC -lwin_utf8_io $(OGG_LIBS) -lm
+else
LIBS = -lgrabbag -lreplaygain_analysis -ltest_libs_common -lFLAC++ -lFLAC $(OGG_LIBS) -lm
endif
+endif
SRCS_CPP = \
decoders.cpp \
diff --git a/src/test_libFLAC/Makefile.lite b/src/test_libFLAC/Makefile.lite
index 42e9dce1..e7a7f29c 100644
--- a/src/test_libFLAC/Makefile.lite
+++ b/src/test_libFLAC/Makefile.lite
@@ -30,8 +30,12 @@ INCLUDES = -I../libFLAC/include -I$(topdir)/include
ifeq ($(OS),Darwin)
EXPLICIT_LIBS = $(libdir)/libgrabbag.a $(libdir)/libreplaygain_analysis.a $(libdir)/libtest_libs_common.a $(libdir)/libFLAC.a $(OGG_EXPLICIT_LIBS) -lm
else
+ifeq ($(findstring Windows,$(OS)),Windows)
+ LIBS = -lgrabbag -lreplaygain_analysis -ltest_libs_common -lFLAC -lwin_utf8_io $(OGG_LIBS) -lm
+else
LIBS = -lgrabbag -lreplaygain_analysis -ltest_libs_common -lFLAC $(OGG_LIBS) -lm
endif
+endif
SRCS_C = \
bitwriter.c \
@@ -39,6 +43,7 @@ SRCS_C = \
encoders.c \
format.c \
main.c \
+ md5.c \
metadata.c \
metadata_manip.c \
metadata_object.c
diff --git a/src/test_libs_common/Makefile.lite b/src/test_libs_common/Makefile.lite
index 45f932e1..5c06f1dd 100644
--- a/src/test_libs_common/Makefile.lite
+++ b/src/test_libs_common/Makefile.lite
@@ -28,8 +28,12 @@ LIB_NAME = libtest_libs_common
ifeq ($(OS),Darwin)
EXPLICIT_LIBS = $(libdir)/libFLAC.a $(OGG_EXPLICIT_LIBS) -lm
else
+ifeq ($(findstring Windows,$(OS)),Windows)
+ LIBS = -lFLAC -lwin_utf8_io $(OGG_LIBS) -lm
+else
LIBS = -lFLAC $(OGG_LIBS) -lm
endif
+endif
INCLUDES = -I$(topdir)/include
diff --git a/src/test_seeking/Makefile.lite b/src/test_seeking/Makefile.lite
index 85458637..597bedaa 100644
--- a/src/test_seeking/Makefile.lite
+++ b/src/test_seeking/Makefile.lite
@@ -30,8 +30,12 @@ INCLUDES = -I../libFLAC/include -I$(topdir)/include
ifeq ($(OS),Darwin)
EXPLICIT_LIBS = $(libdir)/libFLAC.a $(OGG_EXPLICIT_LIBS) -lm
else
+ifeq ($(findstring Windows,$(OS)),Windows)
+ LIBS = -lFLAC -lwin_utf8_io $(OGG_LIBS) -lm
+else
LIBS = -lFLAC $(OGG_LIBS) -lm
endif
+endif
SRCS_C = \
main.c
diff --git a/src/test_streams/Makefile.lite b/src/test_streams/Makefile.lite
index e9502d0a..f8234fed 100644
--- a/src/test_streams/Makefile.lite
+++ b/src/test_streams/Makefile.lite
@@ -27,7 +27,15 @@ PROGRAM_NAME = test_streams
INCLUDES = -I./include -I$(topdir)/include
-LIBS = -lm
+ifeq ($(OS),Darwin)
+ EXPLICIT_LIBS = $(libdir)/libgrabbag.a -lm
+else
+ifeq ($(findstring Windows,$(OS)),Windows)
+ LIBS = -lgrabbag -lwin_utf8_io -lm
+else
+ LIBS = -lgrabbag -lm
+endif
+endif
SRCS_C = \
main.c
diff --git a/src/utils/flacdiff/Makefile.lite b/src/utils/flacdiff/Makefile.lite
index 47a2141c..4917dc24 100644
--- a/src/utils/flacdiff/Makefile.lite
+++ b/src/utils/flacdiff/Makefile.lite
@@ -30,8 +30,12 @@ INCLUDES = -I$(topdir)/include
ifeq ($(OS),Darwin)
EXPLICIT_LIBS = $(libdir)/libFLAC++.a $(libdir)/libFLAC.a $(OGG_EXPLICIT_LIBS) -lm
else
+ifeq ($(findstring Windows,$(OS)),Windows)
+ LIBS = -lFLAC++ -lFLAC -lwin_utf8_io $(OGG_LIBS) -lm
+else
LIBS = -lFLAC++ -lFLAC $(OGG_LIBS) -lm
endif
+endif
SRCS_CPP = \
main.cpp
diff --git a/src/utils/flactimer/Makefile.lite b/src/utils/flactimer/Makefile.lite
index 42654373..aaa4b40d 100644
--- a/src/utils/flactimer/Makefile.lite
+++ b/src/utils/flactimer/Makefile.lite
@@ -30,8 +30,12 @@ INCLUDES = -I$(topdir)/include
ifeq ($(OS),Darwin)
EXPLICIT_LIBS = $(libdir)/libFLAC++.a $(libdir)/libFLAC.a $(OGG_EXPLICIT_LIBS) -lm
else
+ifeq ($(findstring Windows,$(OS)),Windows)
+ LIBS = -lFLAC++ -lFLAC -lwin_utf8_io $(OGG_LIBS) -lm
+else
LIBS = -lFLAC++ -lFLAC $(OGG_LIBS) -lm
endif
+endif
SRCS_CPP = \
main.cpp