summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2016-02-05 11:02:44 +1100
committerErik de Castro Lopo <erikd@mega-nerd.com>2016-02-08 22:04:12 +1100
commitd40a6bc695984ba0d35b795874f387f73cfadada (patch)
tree5f28325bddf9272de4c4f85bc521e060845a4c0c /src
parenta5c8e8e14de182c4e8c5a8cd0b6be7c75ab6f021 (diff)
downloadflac-d40a6bc695984ba0d35b795874f387f73cfadada.tar.gz
libFLAC: Remove win_utf8_io dependency
Path-from: lvqcl <lvqcl.mail@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am2
-rw-r--r--src/flac/Makefile.am5
-rw-r--r--src/libFLAC++/Makefile.lite4
-rw-r--r--src/libFLAC++/libFLAC++_dynamic.vcxproj4
-rw-r--r--src/libFLAC++/libFLAC++_static.vcxproj4
-rw-r--r--src/libFLAC/Makefile.am11
-rw-r--r--src/libFLAC/Makefile.lite7
-rw-r--r--src/libFLAC/libFLAC_dynamic.vcproj40
-rw-r--r--src/libFLAC/libFLAC_dynamic.vcxproj14
-rw-r--r--src/libFLAC/libFLAC_dynamic.vcxproj.filters24
-rw-r--r--src/libFLAC/libFLAC_static.vcproj40
-rw-r--r--src/libFLAC/libFLAC_static.vcxproj13
-rw-r--r--src/libFLAC/libFLAC_static.vcxproj.filters24
-rw-r--r--src/metaflac/Makefile.am5
-rw-r--r--src/plugin_common/Makefile.lite4
-rw-r--r--src/plugin_xmms/Makefile.lite4
-rw-r--r--src/share/Makefile.am2
-rw-r--r--src/share/grabbag/Makefile.lite6
-rw-r--r--src/share/grabbag/grabbag_static.vcxproj4
-rw-r--r--src/share/win_utf8_io/Makefile.lite6
-rw-r--r--src/share/win_utf8_io/win_utf8_io.c141
-rw-r--r--src/test_grabbag/cuesheet/Makefile.lite4
-rw-r--r--src/test_grabbag/cuesheet/test_cuesheet.vcxproj4
-rw-r--r--src/test_grabbag/picture/Makefile.am1
-rw-r--r--src/test_grabbag/picture/Makefile.lite4
-rw-r--r--src/test_grabbag/picture/test_picture.vcxproj4
-rw-r--r--src/test_libFLAC++/Makefile.lite4
-rw-r--r--src/test_libFLAC++/test_libFLAC++.vcxproj4
-rw-r--r--src/test_libFLAC/Makefile.am8
-rw-r--r--src/test_libFLAC/Makefile.lite4
-rw-r--r--src/test_libFLAC/test_libFLAC.vcxproj4
-rw-r--r--src/test_libs_common/Makefile.am2
-rw-r--r--src/test_libs_common/Makefile.lite4
-rw-r--r--src/test_libs_common/test_libs_common_static.vcxproj4
-rw-r--r--src/test_seeking/Makefile.lite4
-rw-r--r--src/test_seeking/test_seeking.vcxproj4
-rw-r--r--src/utils/flactimer/Makefile.lite8
37 files changed, 174 insertions, 257 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 5941738c..42ec50c0 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -25,8 +25,8 @@ CPPLIBS_DIRS = libFLAC++ test_libFLAC++
endif
SUBDIRS = \
- share \
libFLAC \
+ share \
flac \
metaflac \
$(XMMS_DIRS) \
diff --git a/src/flac/Makefile.am b/src/flac/Makefile.am
index 7103d9d7..117b9134 100644
--- a/src/flac/Makefile.am
+++ b/src/flac/Makefile.am
@@ -48,6 +48,10 @@ flac_SOURCES = \
utils.h \
vorbiscomment.h
+if OS_IS_WINDOWS
+win_utf8_lib = $(top_builddir)/src/share/win_utf8_io/libwin_utf8_io.la
+endif
+
flac_LDADD = \
$(top_builddir)/src/share/utf8/libutf8.la \
$(top_builddir)/src/share/grabbag/libgrabbag.la \
@@ -55,6 +59,7 @@ flac_LDADD = \
$(top_builddir)/src/share/replaygain_analysis/libreplaygain_analysis.la \
$(top_builddir)/src/share/replaygain_synthesis/libreplaygain_synthesis.la \
$(top_builddir)/src/libFLAC/libFLAC.la \
+ $(win_utf8_lib) \
@LIBICONV@ \
-lm
diff --git a/src/libFLAC++/Makefile.lite b/src/libFLAC++/Makefile.lite
index 800d3e7b..6ddd9411 100644
--- a/src/libFLAC++/Makefile.lite
+++ b/src/libFLAC++/Makefile.lite
@@ -43,16 +43,12 @@ endif
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
ifeq ($(OS),FreeBSD)
LIBS = -lFLAC $(OGG_LIBS) -lm -lstdc++
else
LIBS = -lFLAC $(OGG_LIBS) -lm -lsupc++
endif
endif
-endif
LIB_NAME = libFLAC++
INCLUDES = -I$(topdir)/include
diff --git a/src/libFLAC++/libFLAC++_dynamic.vcxproj b/src/libFLAC++/libFLAC++_dynamic.vcxproj
index e79e2dcc..12b4fb0c 100644
--- a/src/libFLAC++/libFLAC++_dynamic.vcxproj
+++ b/src/libFLAC++/libFLAC++_dynamic.vcxproj
@@ -173,10 +173,6 @@
<Project>{4cefbc83-c215-11db-8314-0800200c9a66}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
- <ProjectReference Include="..\share\win_utf8_io\win_utf8_io_static.vcxproj">
- <Project>{4cefbe02-c215-11db-8314-0800200c9a66}</Project>
- <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
- </ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/src/libFLAC++/libFLAC++_static.vcxproj b/src/libFLAC++/libFLAC++_static.vcxproj
index d45f1ee3..21994bd4 100644
--- a/src/libFLAC++/libFLAC++_static.vcxproj
+++ b/src/libFLAC++/libFLAC++_static.vcxproj
@@ -141,10 +141,6 @@
<Project>{4cefbc84-c215-11db-8314-0800200c9a66}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
- <ProjectReference Include="..\share\win_utf8_io\win_utf8_io_static.vcxproj">
- <Project>{4cefbe02-c215-11db-8314-0800200c9a66}</Project>
- <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
- </ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/src/libFLAC/Makefile.am b/src/libFLAC/Makefile.am
index 276e3344..004e1495 100644
--- a/src/libFLAC/Makefile.am
+++ b/src/libFLAC/Makefile.am
@@ -61,11 +61,7 @@ endif
endif
endif
-if OS_IS_WINDOWS
-win_utf8_lib = $(top_builddir)/src/share/win_utf8_io/libwin_utf8_io.la
-endif
-
-libFLAC_la_LIBADD = $(win_utf8_lib) $(LOCAL_EXTRA_LIBADD) @OGG_LIBS@ -lm
+libFLAC_la_LIBADD = $(LOCAL_EXTRA_LIBADD) @OGG_LIBS@ -lm
SUBDIRS = $(ARCH_SUBDIRS) include .
@@ -86,6 +82,10 @@ EXTRA_DIST = \
libFLAC_static.vcxproj.filters \
libFLAC.m4
+if OS_IS_WINDOWS
+windows_unicode_compat = windows_unicode_filenames.c
+endif
+
if FLaC__HAS_OGG
extra_ogg_sources = \
ogg_decoder_aspect.c \
@@ -124,6 +124,7 @@ libFLAC_sources = \
stream_encoder_intrin_avx2.c \
stream_encoder_framing.c \
window.c \
+ $(windows_unicode_compat) \
$(extra_ogg_sources)
libFLAC_la_SOURCES = $(libFLAC_sources)
diff --git a/src/libFLAC/Makefile.lite b/src/libFLAC/Makefile.lite
index 722acfba..9fc22451 100644
--- a/src/libFLAC/Makefile.lite
+++ b/src/libFLAC/Makefile.lite
@@ -38,11 +38,11 @@ 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
+
+ifeq ($(findstring Windows,$(OS)),Windows)
+ WIN_UNICODE_COMPAT = windows_unicode_filenames.c
endif
LIB_NAME = libFLAC
@@ -102,6 +102,7 @@ SRCS_C = \
stream_encoder_intrin_avx2.c \
stream_encoder_framing.c \
window.c \
+ $(WIN_UNICODE_COMPAT) \
$(OGG_SRCS)
include $(topdir)/build/lib.mk
diff --git a/src/libFLAC/libFLAC_dynamic.vcproj b/src/libFLAC/libFLAC_dynamic.vcproj
index debbb733..cd32deee 100644
--- a/src/libFLAC/libFLAC_dynamic.vcproj
+++ b/src/libFLAC/libFLAC_dynamic.vcproj
@@ -186,11 +186,11 @@
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
- RelativePath=".\include\private\all.h"
+ RelativePath=".\include\protected\all.h"
>
</File>
<File
- RelativePath=".\include\protected\all.h"
+ RelativePath=".\include\private\all.h"
>
</File>
<File
@@ -266,11 +266,11 @@
>
</File>
<File
- RelativePath=".\include\protected\stream_encoder.h"
+ RelativePath=".\include\private\stream_encoder.h"
>
</File>
<File
- RelativePath=".\include\private\stream_encoder.h"
+ RelativePath=".\include\protected\stream_encoder.h"
>
</File>
<File
@@ -399,6 +399,10 @@
RelativePath=".\window.c"
>
</File>
+ <File
+ RelativePath=".\windows_unicode_filenames.c"
+ >
+ </File>
</Filter>
<Filter
Name="Public Header Files"
@@ -408,6 +412,10 @@
>
</File>
<File
+ RelativePath="..\..\include\share\alloc.h"
+ >
+ </File>
+ <File
RelativePath="..\..\include\FLAC\assert.h"
>
</File>
@@ -416,6 +424,14 @@
>
</File>
<File
+ RelativePath="..\..\include\share\compat.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\include\share\endswap.h"
+ >
+ </File>
+ <File
RelativePath="..\..\include\FLAC\export.h"
>
</File>
@@ -424,6 +440,10 @@
>
</File>
<File
+ RelativePath="..\..\include\share\macros.h"
+ >
+ </File>
+ <File
RelativePath="..\..\include\FLAC\metadata.h"
>
</File>
@@ -432,6 +452,14 @@
>
</File>
<File
+ RelativePath="..\..\include\share\private.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\include\share\safe_str.h"
+ >
+ </File>
+ <File
RelativePath="..\..\include\FLAC\stream_decoder.h"
>
</File>
@@ -439,6 +467,10 @@
RelativePath="..\..\include\FLAC\stream_encoder.h"
>
</File>
+ <File
+ RelativePath="..\..\include\share\windows_unicode_filenames.h"
+ >
+ </File>
</Filter>
<File
RelativePath=".\ia32\cpu_asm.nasm"
diff --git a/src/libFLAC/libFLAC_dynamic.vcxproj b/src/libFLAC/libFLAC_dynamic.vcxproj
index 89f24e2a..6dab4b45 100644
--- a/src/libFLAC/libFLAC_dynamic.vcxproj
+++ b/src/libFLAC/libFLAC_dynamic.vcxproj
@@ -184,6 +184,13 @@
<ClInclude Include="..\..\include\FLAC\ordinals.h" />
<ClInclude Include="..\..\include\FLAC\stream_decoder.h" />
<ClInclude Include="..\..\include\FLAC\stream_encoder.h" />
+ <ClInclude Include="..\..\include\share\alloc.h" />
+ <ClInclude Include="..\..\include\share\compat.h" />
+ <ClInclude Include="..\..\include\share\endswap.h" />
+ <ClInclude Include="..\..\include\share\macros.h" />
+ <ClInclude Include="..\..\include\share\private.h" />
+ <ClInclude Include="..\..\include\share\safe_str.h" />
+ <ClInclude Include="..\..\include\share\windows_unicode_filenames.h" />
<ClInclude Include="ia32\nasm.h" />
<ClInclude Include="include\private\all.h" />
<ClInclude Include="include\private\bitmath.h" />
@@ -250,6 +257,7 @@
<ClCompile Include="stream_encoder_intrin_sse2.c" />
<ClCompile Include="stream_encoder_intrin_ssse3.c" />
<ClCompile Include="window.c" />
+ <ClCompile Include="windows_unicode_filenames.c" />
</ItemGroup>
<ItemGroup>
<CustomBuild Include="ia32\cpu_asm.nasm">
@@ -313,12 +321,6 @@
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
</CustomBuild>
</ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\share\win_utf8_io\win_utf8_io_static.vcxproj">
- <Project>{4cefbe02-c215-11db-8314-0800200c9a66}</Project>
- <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
- </ProjectReference>
- </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
diff --git a/src/libFLAC/libFLAC_dynamic.vcxproj.filters b/src/libFLAC/libFLAC_dynamic.vcxproj.filters
index fa79a8dc..875c0216 100644
--- a/src/libFLAC/libFLAC_dynamic.vcxproj.filters
+++ b/src/libFLAC/libFLAC_dynamic.vcxproj.filters
@@ -113,6 +113,27 @@
<ClInclude Include="..\..\include\FLAC\stream_encoder.h">
<Filter>Public Header Files</Filter>
</ClInclude>
+ <ClInclude Include="..\..\include\share\alloc.h">
+ <Filter>Public Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\include\share\compat.h">
+ <Filter>Public Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\include\share\endswap.h">
+ <Filter>Public Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\include\share\macros.h">
+ <Filter>Public Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\include\share\private.h">
+ <Filter>Public Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\include\share\safe_str.h">
+ <Filter>Public Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\include\share\windows_unicode_filenames.h">
+ <Filter>Public Header Files</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="bitmath.c">
@@ -205,6 +226,9 @@
<ClCompile Include="window.c">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="windows_unicode_filenames.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<CustomBuild Include="ia32\cpu_asm.nasm" />
diff --git a/src/libFLAC/libFLAC_static.vcproj b/src/libFLAC/libFLAC_static.vcproj
index 32c80a78..42213b03 100644
--- a/src/libFLAC/libFLAC_static.vcproj
+++ b/src/libFLAC/libFLAC_static.vcproj
@@ -159,11 +159,11 @@
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
- RelativePath=".\include\protected\all.h"
+ RelativePath=".\include\private\all.h"
>
</File>
<File
- RelativePath=".\include\private\all.h"
+ RelativePath=".\include\protected\all.h"
>
</File>
<File
@@ -239,11 +239,11 @@
>
</File>
<File
- RelativePath=".\include\protected\stream_encoder.h"
+ RelativePath=".\include\private\stream_encoder.h"
>
</File>
<File
- RelativePath=".\include\private\stream_encoder.h"
+ RelativePath=".\include\protected\stream_encoder.h"
>
</File>
<File
@@ -263,6 +263,10 @@
>
</File>
<File
+ RelativePath="..\..\include\share\alloc.h"
+ >
+ </File>
+ <File
RelativePath="..\..\include\FLAC\assert.h"
>
</File>
@@ -271,6 +275,14 @@
>
</File>
<File
+ RelativePath="..\..\include\share\compat.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\include\share\endswap.h"
+ >
+ </File>
+ <File
RelativePath="..\..\include\FLAC\export.h"
>
</File>
@@ -279,6 +291,10 @@
>
</File>
<File
+ RelativePath="..\..\include\share\macros.h"
+ >
+ </File>
+ <File
RelativePath="..\..\include\FLAC\metadata.h"
>
</File>
@@ -287,6 +303,14 @@
>
</File>
<File
+ RelativePath="..\..\include\share\private.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\include\share\safe_str.h"
+ >
+ </File>
+ <File
RelativePath="..\..\include\FLAC\stream_decoder.h"
>
</File>
@@ -294,6 +318,10 @@
RelativePath="..\..\include\FLAC\stream_encoder.h"
>
</File>
+ <File
+ RelativePath="..\..\include\share\windows_unicode_filenames.h"
+ >
+ </File>
</Filter>
<Filter
Name="Source Files"
@@ -412,6 +440,10 @@
RelativePath=".\window.c"
>
</File>
+ <File
+ RelativePath=".\windows_unicode_filenames.c"
+ >
+ </File>
</Filter>
<File
RelativePath=".\ia32\cpu_asm.nasm"
diff --git a/src/libFLAC/libFLAC_static.vcxproj b/src/libFLAC/libFLAC_static.vcxproj
index 8cc19021..78c03e69 100644
--- a/src/libFLAC/libFLAC_static.vcxproj
+++ b/src/libFLAC/libFLAC_static.vcxproj
@@ -144,6 +144,13 @@
<ClInclude Include="..\..\include\FLAC\ordinals.h" />
<ClInclude Include="..\..\include\FLAC\stream_decoder.h" />
<ClInclude Include="..\..\include\FLAC\stream_encoder.h" />
+ <ClInclude Include="..\..\include\share\alloc.h" />
+ <ClInclude Include="..\..\include\share\compat.h" />
+ <ClInclude Include="..\..\include\share\endswap.h" />
+ <ClInclude Include="..\..\include\share\macros.h" />
+ <ClInclude Include="..\..\include\share\private.h" />
+ <ClInclude Include="..\..\include\share\safe_str.h" />
+ <ClInclude Include="..\..\include\share\windows_unicode_filenames.h" />
<ClInclude Include="ia32\nasm.h" />
<ClInclude Include="include\private\all.h" />
<ClInclude Include="include\private\bitmath.h" />
@@ -210,6 +217,7 @@
<ClCompile Include="stream_encoder_intrin_sse2.c" />
<ClCompile Include="stream_encoder_intrin_ssse3.c" />
<ClCompile Include="window.c" />
+ <ClCompile Include="windows_unicode_filenames.c" />
</ItemGroup>
<ItemGroup>
<CustomBuild Include="ia32\cpu_asm.nasm">
@@ -273,11 +281,6 @@
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
</CustomBuild>
</ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\share\win_utf8_io\win_utf8_io_static.vcxproj">
- <Project>{4cefbe02-c215-11db-8314-0800200c9a66}</Project>
- </ProjectReference>
- </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
diff --git a/src/libFLAC/libFLAC_static.vcxproj.filters b/src/libFLAC/libFLAC_static.vcxproj.filters
index bc99bf3b..a600678a 100644
--- a/src/libFLAC/libFLAC_static.vcxproj.filters
+++ b/src/libFLAC/libFLAC_static.vcxproj.filters
@@ -113,6 +113,27 @@
<ClInclude Include="..\..\include\FLAC\stream_encoder.h">
<Filter>Public Header Files</Filter>
</ClInclude>
+ <ClInclude Include="..\..\include\share\alloc.h">
+ <Filter>Public Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\include\share\compat.h">
+ <Filter>Public Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\include\share\endswap.h">
+ <Filter>Public Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\include\share\macros.h">
+ <Filter>Public Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\include\share\private.h">
+ <Filter>Public Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\include\share\safe_str.h">
+ <Filter>Public Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\..\include\share\windows_unicode_filenames.h">
+ <Filter>Public Header Files</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="bitmath.c">
@@ -205,6 +226,9 @@
<ClCompile Include="window.c">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="windows_unicode_filenames.c">
+ <Filter>Source Files</Filter>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<CustomBuild Include="ia32\cpu_asm.nasm" />
diff --git a/src/metaflac/Makefile.am b/src/metaflac/Makefile.am
index e3355ce8..5dba9b84 100644
--- a/src/metaflac/Makefile.am
+++ b/src/metaflac/Makefile.am
@@ -44,12 +44,17 @@ metaflac_SOURCES = \
utils.h
metaflac_LDFLAGS = $(AM_LDFLAGS)
+if OS_IS_WINDOWS
+win_utf8_lib = $(top_builddir)/src/share/win_utf8_io/libwin_utf8_io.la
+endif
+
metaflac_LDADD = \
$(top_builddir)/src/share/grabbag/libgrabbag.la \
$(top_builddir)/src/share/replaygain_analysis/libreplaygain_analysis.la \
$(top_builddir)/src/share/getopt/libgetopt.la \
$(top_builddir)/src/share/utf8/libutf8.la \
$(top_builddir)/src/libFLAC/libFLAC.la \
+ $(win_utf8_lib) \
@LIBICONV@
CLEANFILES = metaflac.exe
diff --git a/src/plugin_common/Makefile.lite b/src/plugin_common/Makefile.lite
index 7d9683ad..673f1db5 100644
--- a/src/plugin_common/Makefile.lite
+++ b/src/plugin_common/Makefile.lite
@@ -28,12 +28,8 @@ INCLUDES = -I$(topdir)/include -I$(HOME)/local/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 = \
charset.c \
diff --git a/src/plugin_xmms/Makefile.lite b/src/plugin_xmms/Makefile.lite
index ec101a3d..b713f6df 100644
--- a/src/plugin_xmms/Makefile.lite
+++ b/src/plugin_xmms/Makefile.lite
@@ -29,12 +29,8 @@ 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.am b/src/share/Makefile.am
index 93628238..cd44ed3d 100644
--- a/src/share/Makefile.am
+++ b/src/share/Makefile.am
@@ -63,12 +63,12 @@ noinst_LTLIBRARIES = \
if OS_IS_WINDOWS
win_utf8_io_libwin_utf8_io_la_SOURCES = win_utf8_io/win_utf8_io.c
libwin_utf8_io = win_utf8_io/libwin_utf8_io.la
+win_utf8_io_libwin_utf8_io_la_LIBADD = $(top_builddir)/src/libFLAC/libFLAC.la -lm
else
win_utf8_io_libwin_utf8_io_la_SOURCES =
libwin_utf8_io =
endif
-
getopt_libgetopt_la_SOURCES = getopt/getopt.c getopt/getopt1.c
grabbag_libgrabbag_la_SOURCES = \
diff --git a/src/share/grabbag/Makefile.lite b/src/share/grabbag/Makefile.lite
index 4eac54be..6c8ff6c7 100644
--- a/src/share/grabbag/Makefile.lite
+++ b/src/share/grabbag/Makefile.lite
@@ -1,3 +1,5 @@
+# grabbag - Convenience lib for various routines common to several tools
+
#
# GNU makefile
#
@@ -8,12 +10,8 @@ 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
diff --git a/src/share/grabbag/grabbag_static.vcxproj b/src/share/grabbag/grabbag_static.vcxproj
index 8ae6a28f..8e7b6fde 100644
--- a/src/share/grabbag/grabbag_static.vcxproj
+++ b/src/share/grabbag/grabbag_static.vcxproj
@@ -154,10 +154,6 @@
<Project>{4cefbc89-c215-11db-8314-0800200c9a66}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
- <ProjectReference Include="..\win_utf8_io\win_utf8_io_static.vcxproj">
- <Project>{4cefbe02-c215-11db-8314-0800200c9a66}</Project>
- <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
- </ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/src/share/win_utf8_io/Makefile.lite b/src/share/win_utf8_io/Makefile.lite
index b941b079..15492669 100644
--- a/src/share/win_utf8_io/Makefile.lite
+++ b/src/share/win_utf8_io/Makefile.lite
@@ -4,6 +4,12 @@
topdir = ../../..
+ifeq ($(OS),Darwin)
+ EXPLICIT_LIBS = $(libdir)/libFLAC.a $(OGG_EXPLICIT_LIBS) -lm
+else
+ LIBS = -lFLAC $(OGG_LIBS) -lm
+endif
+
LIB_NAME = libwin_utf8_io
INCLUDES = -I$(topdir)/include
diff --git a/src/share/win_utf8_io/win_utf8_io.c b/src/share/win_utf8_io/win_utf8_io.c
index 6b5c56c3..6cb40332 100644
--- a/src/share/win_utf8_io/win_utf8_io.c
+++ b/src/share/win_utf8_io/win_utf8_io.c
@@ -103,8 +103,6 @@ static wchar_t *wchar_from_utf8(const char *str)
return widestr;
}
-static void set_filename_utf8(int b);
-
/* retrieve WCHAR commandline, expand wildcards and convert everything to UTF-8 */
int get_utf8_argv(int *argc, char ***argv)
{
@@ -144,7 +142,7 @@ int get_utf8_argv(int *argc, char ***argv)
FreeLibrary(handle); /* do not free it when wargv or wenv are still in use */
if (ret == 0) {
- set_filename_utf8(1);
+ flac_set_utf8_filenames(true);
*argc = wargc;
*argv = utf8argv;
} else {
@@ -258,140 +256,3 @@ int vfprintf_utf8(FILE *stream, const char *format, va_list argptr)
return ret;
}
-
-/* file functions */
-
-static int utf8_filename = 0;
-
-static void set_filename_utf8(int b)
-{
- utf8_filename = b ? 1: 0;
-}
-
-FILE *fopen_utf8(const char *filename, const char *mode)
-{
- if (0 == utf8_filename) {
- return fopen(filename, mode);
- } else {
- wchar_t *wname = NULL;
- wchar_t *wmode = NULL;
- FILE *f = NULL;
-
- do {
- if (!(wname = wchar_from_utf8(filename))) break;
- if (!(wmode = wchar_from_utf8(mode))) break;
- f = _wfopen(wname, wmode);
- } while(0);
-
- free(wname);
- free(wmode);
-
- return f;
- }
-}
-
-int _stat64_utf8(const char *path, struct __stat64 *buffer)
-{
- if (0 == utf8_filename) {
- return _stat64(path, buffer);
- } else {
- wchar_t *wpath;
- int ret;
-
- if (!(wpath = wchar_from_utf8(path))) return -1;
- ret = _wstat64(wpath, buffer);
- free(wpath);
-
- return ret;
- }
-}
-
-int chmod_utf8(const char *filename, int pmode)
-{
- if (0 == utf8_filename) {
- return _chmod(filename, pmode);
- } else {
- wchar_t *wname;
- int ret;
-
- if (!(wname = wchar_from_utf8(filename))) return -1;
- ret = _wchmod(wname, pmode);
- free(wname);
-
- return ret;
- }
-}
-
-int utime_utf8(const char *filename, struct utimbuf *times)
-{
- if (0 == utf8_filename) {
- return utime(filename, times);
- } else {
- wchar_t *wname;
- struct __utimbuf64 ut;
- int ret;
-
- if (!(wname = wchar_from_utf8(filename))) return -1;
- ut.actime = times->actime;
- ut.modtime = times->modtime;
- ret = _wutime64(wname, &ut);
- free(wname);
-
- return ret;
- }
-}
-
-int unlink_utf8(const char *filename)
-{
- if (0 == utf8_filename) {
- return _unlink(filename);
- } else {
- wchar_t *wname;
- int ret;
-
- if (!(wname = wchar_from_utf8(filename))) return -1;
- ret = _wunlink(wname);
- free(wname);
-
- return ret;
- }
-}
-
-int rename_utf8(const char *oldname, const char *newname)
-{
- if (0 == utf8_filename) {
- return rename(oldname, newname);
- } else {
- wchar_t *wold = NULL;
- wchar_t *wnew = NULL;
- int ret = -1;
-
- do {
- if (!(wold = wchar_from_utf8(oldname))) break;
- if (!(wnew = wchar_from_utf8(newname))) break;
- ret = _wrename(wold, wnew);
- } while(0);
-
- free(wold);
- free(wnew);
-
- return ret;
- }
-}
-
-HANDLE WINAPI CreateFile_utf8(const char *lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile)
-{
- if (0 == utf8_filename) {
- return CreateFileA(lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile);
- } else {
- wchar_t *wname;
- HANDLE handle = INVALID_HANDLE_VALUE;
-
- if ((wname = wchar_from_utf8(lpFileName)) != NULL) {
- handle = CreateFileW(wname, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile);
- free(wname);
- }
-
- return handle;
- }
-}
diff --git a/src/test_grabbag/cuesheet/Makefile.lite b/src/test_grabbag/cuesheet/Makefile.lite
index 9fe694da..5e77fea5 100644
--- a/src/test_grabbag/cuesheet/Makefile.lite
+++ b/src/test_grabbag/cuesheet/Makefile.lite
@@ -32,12 +32,8 @@ 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/cuesheet/test_cuesheet.vcxproj b/src/test_grabbag/cuesheet/test_cuesheet.vcxproj
index eef87539..301fa154 100644
--- a/src/test_grabbag/cuesheet/test_cuesheet.vcxproj
+++ b/src/test_grabbag/cuesheet/test_cuesheet.vcxproj
@@ -171,10 +171,6 @@
<Project>{4cefbc81-c215-11db-8314-0800200c9a66}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
- <ProjectReference Include="..\..\share\win_utf8_io\win_utf8_io_static.vcxproj">
- <Project>{4cefbe02-c215-11db-8314-0800200c9a66}</Project>
- <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
- </ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/src/test_grabbag/picture/Makefile.am b/src/test_grabbag/picture/Makefile.am
index 135a3361..fca16197 100644
--- a/src/test_grabbag/picture/Makefile.am
+++ b/src/test_grabbag/picture/Makefile.am
@@ -29,6 +29,7 @@ test_picture_SOURCES = \
test_picture_LDADD = \
$(top_builddir)/src/share/grabbag/libgrabbag.la \
+ $(top_builddir)/src/share/replaygain_analysis/libreplaygain_analysis.la \
$(top_builddir)/src/libFLAC/libFLAC.la
CLEANFILES = test_picture.exe
diff --git a/src/test_grabbag/picture/Makefile.lite b/src/test_grabbag/picture/Makefile.lite
index 10ebfe07..fe57b4c3 100644
--- a/src/test_grabbag/picture/Makefile.lite
+++ b/src/test_grabbag/picture/Makefile.lite
@@ -32,12 +32,8 @@ 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/test_picture.vcxproj b/src/test_grabbag/picture/test_picture.vcxproj
index 3a6da466..588c19e6 100644
--- a/src/test_grabbag/picture/test_picture.vcxproj
+++ b/src/test_grabbag/picture/test_picture.vcxproj
@@ -171,10 +171,6 @@
<Project>{4cefbc81-c215-11db-8314-0800200c9a66}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
- <ProjectReference Include="..\..\share\win_utf8_io\win_utf8_io_static.vcxproj">
- <Project>{4cefbe02-c215-11db-8314-0800200c9a66}</Project>
- <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
- </ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/src/test_libFLAC++/Makefile.lite b/src/test_libFLAC++/Makefile.lite
index 69d1a84c..f520a6e7 100644
--- a/src/test_libFLAC++/Makefile.lite
+++ b/src/test_libFLAC++/Makefile.lite
@@ -32,12 +32,8 @@ 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++/test_libFLAC++.vcxproj b/src/test_libFLAC++/test_libFLAC++.vcxproj
index dfa7e81e..c356e626 100644
--- a/src/test_libFLAC++/test_libFLAC++.vcxproj
+++ b/src/test_libFLAC++/test_libFLAC++.vcxproj
@@ -185,10 +185,6 @@
<Project>{4cefbc81-c215-11db-8314-0800200c9a66}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
- <ProjectReference Include="..\share\win_utf8_io\win_utf8_io_static.vcxproj">
- <Project>{4cefbe02-c215-11db-8314-0800200c9a66}</Project>
- <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
- </ProjectReference>
<ProjectReference Include="..\test_libs_common\test_libs_common_static.vcxproj">
<Project>{4cefbc8e-c215-11db-8314-0800200c9a66}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
diff --git a/src/test_libFLAC/Makefile.am b/src/test_libFLAC/Makefile.am
index b1bab029..152b8cbe 100644
--- a/src/test_libFLAC/Makefile.am
+++ b/src/test_libFLAC/Makefile.am
@@ -26,16 +26,12 @@ AM_CPPFLAGS = -I$(top_builddir) -I$(srcdir)/include -I$(top_srcdir)/include -I$(
noinst_PROGRAMS = test_libFLAC
-if OS_IS_WINDOWS
-win_utf8_lib = $(top_builddir)/src/share/win_utf8_io/libwin_utf8_io.la
-endif
-
test_libFLAC_LDADD = \
$(top_builddir)/src/share/grabbag/libgrabbag.la \
$(top_builddir)/src/share/replaygain_analysis/libreplaygain_analysis.la \
$(top_builddir)/src/test_libs_common/libtest_libs_common.la \
- $(top_builddir)/src/libFLAC/libFLAC-static.la \
- $(win_utf8_lib) @OGG_LIBS@ \
+ $(top_builddir)/src/libFLAC/libFLAC.la \
+ @OGG_LIBS@ \
-lm
test_libFLAC_SOURCES = \
diff --git a/src/test_libFLAC/Makefile.lite b/src/test_libFLAC/Makefile.lite
index e95beb3b..2e1f816c 100644
--- a/src/test_libFLAC/Makefile.lite
+++ b/src/test_libFLAC/Makefile.lite
@@ -32,12 +32,8 @@ 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 \
diff --git a/src/test_libFLAC/test_libFLAC.vcxproj b/src/test_libFLAC/test_libFLAC.vcxproj
index 31517695..052c9d99 100644
--- a/src/test_libFLAC/test_libFLAC.vcxproj
+++ b/src/test_libFLAC/test_libFLAC.vcxproj
@@ -194,10 +194,6 @@
<Project>{4cefbc81-c215-11db-8314-0800200c9a66}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
- <ProjectReference Include="..\share\win_utf8_io\win_utf8_io_static.vcxproj">
- <Project>{4cefbe02-c215-11db-8314-0800200c9a66}</Project>
- <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
- </ProjectReference>
<ProjectReference Include="..\test_libs_common\test_libs_common_static.vcxproj">
<Project>{4cefbc8e-c215-11db-8314-0800200c9a66}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
diff --git a/src/test_libs_common/Makefile.am b/src/test_libs_common/Makefile.am
index 0b77388c..e585e1a9 100644
--- a/src/test_libs_common/Makefile.am
+++ b/src/test_libs_common/Makefile.am
@@ -24,6 +24,8 @@ libtest_libs_common_la_SOURCES = \
file_utils_flac.c \
metadata_utils.c
+libtest_libs_common_LDADD = $(top_builddir)/src/libFLAC/libFLAC.la
+
EXTRA_DIST = \
Makefile.lite \
README \
diff --git a/src/test_libs_common/Makefile.lite b/src/test_libs_common/Makefile.lite
index abf2f1e9..cb970a6e 100644
--- a/src/test_libs_common/Makefile.lite
+++ b/src/test_libs_common/Makefile.lite
@@ -28,12 +28,8 @@ 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_libs_common/test_libs_common_static.vcxproj b/src/test_libs_common/test_libs_common_static.vcxproj
index 1e41c7b2..812c8c38 100644
--- a/src/test_libs_common/test_libs_common_static.vcxproj
+++ b/src/test_libs_common/test_libs_common_static.vcxproj
@@ -137,10 +137,6 @@
<Project>{4cefbc84-c215-11db-8314-0800200c9a66}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
- <ProjectReference Include="..\share\win_utf8_io\win_utf8_io_static.vcxproj">
- <Project>{4cefbe02-c215-11db-8314-0800200c9a66}</Project>
- <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
- </ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/src/test_seeking/Makefile.lite b/src/test_seeking/Makefile.lite
index 5ada17d6..b5fdc727 100644
--- a/src/test_seeking/Makefile.lite
+++ b/src/test_seeking/Makefile.lite
@@ -32,12 +32,8 @@ 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_seeking/test_seeking.vcxproj b/src/test_seeking/test_seeking.vcxproj
index 71c3cff7..cc20367e 100644
--- a/src/test_seeking/test_seeking.vcxproj
+++ b/src/test_seeking/test_seeking.vcxproj
@@ -172,10 +172,6 @@
<Project>{4cefbc84-c215-11db-8314-0800200c9a66}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
- <ProjectReference Include="..\share\win_utf8_io\win_utf8_io_static.vcxproj">
- <Project>{4cefbe02-c215-11db-8314-0800200c9a66}</Project>
- <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
- </ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/src/utils/flactimer/Makefile.lite b/src/utils/flactimer/Makefile.lite
index 1eb0759a..106e7b29 100644
--- a/src/utils/flactimer/Makefile.lite
+++ b/src/utils/flactimer/Makefile.lite
@@ -28,13 +28,9 @@ PROGRAM_NAME = flactimer
INCLUDES = -I$(topdir)/include
ifeq ($(OS),Darwin)
- EXPLICIT_LIBS = $(libdir)/libFLAC++.a $(libdir)/libFLAC.a $(OGG_EXPLICIT_LIBS) -lm
+ 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
+ LIBS = -lm
endif
SRCS_CPP = \