Commit Graph

18 Commits

Author SHA1 Message Date
Hendricks266
96d081c1c9 Fix building with MSYS and MinGW(-w64); Improve Makefile.lite build system
This is a patch to allow building of the project using MSYS, MinGW, and MinGW-w64 with the following invocation:

make -f Makefile.lite libFLAC libFLAC++ flac metaflac test_libs_common test_libFLAC test_libFLAC++ test_grabbag test_seeking test_streams utils examples

This patch addresses eight points:
1. `uname -p` in MSYS returns "unknown" so we must use `gcc -dumpmachine` to gain information about the target, 32-bit or 64-bit.
2. MinGW-w64 does not ship with a working iconv.h, so we must disable it under this specific compiler.
3. The code requires <inttypes.h> in a handful of C files, but config.mk did not contain -DHAVE_INTTYPES_H, which under the full build process (I assume) is added by autoconf.
4. The compiler complained when lround() in lpc.c was static, so it is no longer static.
5. Additional scattered linking directives (and reordering) (particularly FLAC, grabbag, and replaygain_analysis) were necessary to build some of the components.
6. The Makefile.lite build system benefited from some cleanup, particularly by rigorously defining all entries, factoring redundancy, and establishing dependencies. (Some typos were fixed too.)
7. Shared objects on Windows use .dll, not .so. (Added *.dll, *.dylib, and *.exe to .gitignore.)
8. To allow more freedom using Makefile.lite without configure, I added the variables USE_OGG and USE_ICONV which can toggle these two components in the build process.
ex: make -f Makefile.lite examples USE_OGG=0 USE_ICONV=0

These improvements make use of some use-time Makefile variable expansion.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-01-02 21:35:47 +11:00
Josh Coalson
dea0f5a044 add 2009 copyright 2009-01-07 07:31:28 +00:00
Josh Coalson
82b128050e update copyright for 2008 2008-02-28 05:34:21 +00:00
Josh Coalson
e74bd9516c add 2007 copyright 2007-02-02 06:58:19 +00:00
Josh Coalson
0395dac13f add 2206 to copyright notice 2006-04-25 06:59:33 +00:00
Josh Coalson
a78fac662c add 2005 to copyright notices 2005-01-25 04:17:55 +00:00
Josh Coalson
9564390fb9 update copyright to 2004 2004-01-17 04:14:43 +00:00
Josh Coalson
9c650a561a add undocumented option --apply-replaygain-which-is-not-lossless to flac; required a lot of reorganization; gain_analysis lib renamed to replaygain_analyis; replaygain_synthesis moved out of plugin_common into its own library in share/ 2003-12-17 04:51:06 +00:00
Josh Coalson
e8a7601a4b change license verbiage 2003-02-07 00:14:32 +00:00
Josh Coalson
afae69f0e3 Add 2003 to copyright notice 2003-01-02 07:03:16 +00:00
Josh Coalson
15d9eba1ce add "all" to phony targets 2002-12-28 07:07:13 +00:00
Josh Coalson
34c1ea8ca2 instrument for valgrind 2002-12-04 04:57:33 +00:00
Josh Coalson
d5f612c1d0 initial import 2002-11-19 06:09:07 +00:00
Josh Coalson
ca8660193b reorg share directory, split each lib into its own dir 2002-10-23 22:24:33 +00:00
Josh Coalson
cd0e322d2d add notion of topdir to Makefile.lite build system 2002-10-23 22:08:13 +00:00
Josh Coalson
0aaf496f27 add support for building utf8 library 2002-08-14 00:52:00 +00:00
Josh Coalson
d2417ef9f0 fix include paths 2002-07-03 22:23:15 +00:00
Josh Coalson
fda98fb7e4 initial import 2002-05-17 06:33:39 +00:00