Commit Graph

35 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
44937a7652 add new top level examples/ directory with one example for now (example_c_decode_file) 2007-09-12 02:42:05 +00:00
Josh Coalson
e74bd9516c add 2007 copyright 2007-02-02 06:58:19 +00:00
Josh Coalson
8da98c897b merge libOggFLAC into libFLAC and libOggFLAC++ into FLAC++; documentation still needs work 2006-10-15 04:24:05 +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
94b5499726 add targets/files for new test_seeking tester 2004-09-21 05:41:23 +00:00
Josh Coalson
9564390fb9 update copyright to 2004 2004-01-17 04:14:43 +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
21cd7b828a add "src" target 2002-12-28 07:03:01 +00:00
Josh Coalson
34c1ea8ca2 instrument for valgrind 2002-12-04 04:57:33 +00:00
Josh Coalson
14cb719117 fix test_grabbag dependencies 2002-11-27 04:45:48 +00:00
Josh Coalson
dfdc818a50 new grabbag testers 2002-11-22 06:25:16 +00:00
Josh Coalson
1565cb6c16 minor re-org 2002-11-19 06:21:42 +00:00
Josh Coalson
b8f8a07684 updates to work with new grabbag lib 2002-11-07 05:07:30 +00:00
Josh Coalson
99602a28bf add support for new file_utils convenience library 2002-10-30 06:24:01 +00:00
Josh Coalson
3c043fd730 add hooks for new replaygain wrapper lib 2002-10-25 04:57:05 +00:00
Josh Coalson
ddadef6f97 add new gain_analysis convenience library 2002-10-24 05:44:42 +00:00
Josh Coalson
cd0e322d2d add notion of topdir to Makefile.lite build system 2002-10-23 22:08:13 +00:00
Josh Coalson
ca6737137f fix dependencies for flac target 2002-09-05 05:39:47 +00:00
Josh Coalson
1f99eac2bb fixes based on a pass over everything with autoconf/automake 2002-08-23 06:45:23 +00:00
Josh Coalson
a86f8709b4 add tests for libOggFLAC and libOggFLAC++ 2002-08-20 04:03:24 +00:00
Josh Coalson
c49380d638 add OggFLAC dirs 2002-08-07 17:38:08 +00:00
Josh Coalson
ef5c2f8d7b add doc target 2002-07-24 06:13:41 +00:00
Josh Coalson
a6a773b3ae add plugin_xmms 2002-06-10 18:27:23 +00:00
Josh Coalson
57ba6f4eb7 massive glob of checkins: improved tests, more tests, bugfixes 2002-06-07 05:27:37 +00:00
Josh Coalson
aae225a7cc add "share" library 2002-05-17 06:07:26 +00:00
Josh Coalson
1152f9fe26 update copyright date to include 2002 2002-01-26 18:05:12 +00:00
Josh Coalson
6b05bc51f7 add/update copyright and license notices 2001-06-08 00:13:21 +00:00
Josh Coalson
7476692bba add metaflac targets 2001-02-23 23:15:00 +00:00
Josh Coalson
0cf199fb5c add -f Makefile.lite to make invocation 2001-01-19 22:34:26 +00:00
Josh Coalson
e60acb9fa0 renamed Makefile to Makefile.lite 2001-01-19 22:30:43 +00:00