Commit graph

103 commits

Author SHA1 Message Date
Sven Eckelmann
80c094b421 Allow to add a postfix for each build
The POSTFIX make option is useful for distributions to compile different
versions of the plugin in parallel. The object files will be stored in a
directory with the postfix appended and the linker result will also have this
postfix appended.
2012-12-13 14:47:15 +01:00
Sven Eckelmann
3050189433 Fix order of Makefile targets to print help by default 2012-12-13 14:07:56 +01:00
Sven Eckelmann
be8738e197 Add CROSS_COMPILE make option
The CROSS_COMPILE make option can be used to automatically prepend the prefix
to all build relevant tools to seamlessly allow cross compilation without
setting each tool name separately.

Cross compiling for MinGW32 would can be done using
$ make -C projects/unix/ CROSS_COMPILE=i686-pc-mingw32- HOST_CPU=i686 UNAME=MINGW
2012-12-13 12:25:23 +01:00
Sven Eckelmann
95db8eec0e Allow to change names of *-config tools for cross compiles 2012-12-13 11:33:49 +01:00
Sven Eckelmann
af8974e1ee Synchronize usage of environmental variables for UNAME with HOST_CPU 2012-12-13 10:52:49 +01:00
Sven Eckelmann
79e1e8e7ab Remove duplicated definition of MKDIR and CC for MinGW 2012-12-13 10:45:53 +01:00
veganaize
2c44ba6612 Add support for MingW32 2012-12-04 21:17:52 +01:00
Anthony J. Bentley
f9ad621686 Allow manually disabling OSS.
The previous check is inadequate, because OpenBSD has /dev/mixer but does
not use OSS.
2012-11-14 21:42:12 -07:00
Anthony J. Bentley
d6c1dafc14 Detect OpenBSD PowerPC platforms macppc and socppc. 2012-11-12 18:01:33 -07:00
Sven Eckelmann
7126a3ecf4 Add configuration for semi-supported architecture armel 2012-11-04 01:25:07 +01:00
Sven Eckelmann
9b27463cfa Add support for speexdsp resampler 2012-10-10 07:59:24 +02:00
Sven Eckelmann
95b879dba1 Rename NO_RESAMP compile option to NO_SRC 2012-10-10 07:59:24 +02:00
casualjames casualjames
135d83c346 From the changelog:
- Bugfix: Don't assume OSS is installed in all linux systems.
 - Bugfix: Some combinations of VolumeSetLevel and VolumeMute caused VolumeGetString to return Mute when not muted
 - Make SDL volume handling the default, since OSS is no longer included in the kernel.
 - Minor refactoring of volume handling code.

Personally, I would drop OSS support altogether, since it's deprecated (and some 'user-friendly' distros don't have it enabled by default, e.g. Ubuntu), and it changes the master volume level and 'remembers' it when muted (what if two programs did this?).
2012-08-27 22:46:18 +02:00
Sven Eckelmann
0976cef7c3 Enable experimental support for link-time optimization 2012-06-09 00:23:55 +02:00
Richard Goedeken
5540679e0a makefile change from Auria: add new linker flag in 32-bit build under OSX 2012-03-11 14:21:07 -07:00
Sven Eckelmann
0f811f5f6c Remove additional -O3 on MacOSX 2011-10-14 19:58:41 +02:00
Sven Eckelmann
519a72b8b4 Explicitly disable PIC in case of PIC=0 2011-10-13 00:01:01 +02:00
Sven Eckelmann
f466b4ca39 Add help text about NO_RESAMP 2011-10-09 13:57:53 +02:00
Sven Eckelmann
ca4091ff91 Enable ppc(64) as experimental target
nogagplz tested mupen64plus on 32-bit ppc and didn't detect any big show
stoppers with interpreter cores and the mupen64plus example rom. This makes the
PowerPC an interesting target for further tests and may reveal other endianness
problems.
2011-08-05 10:46:14 +02:00
Sven Eckelmann
3f5f0701ab Enable PIC depending on architecture instead of bits only
nogagplz noticed on ppc32 that PIC is necessary to compile everything as shared
object. Therefore, it seems to be a better idea to have architecture specific
PIC default settings instead of checking only whether it is a 32 or 64 bit
architecture.
2011-08-05 10:32:06 +02:00
Sven Eckelmann
8fb2f67d95 Enable big endian mode on ppc and ppc64 2011-08-05 10:19:20 +02:00
Sven Eckelmann
c32b33f003 Strip binaries during install 2011-07-23 21:22:51 +02:00
Sven Eckelmann
d02aa488fd Allow to force PIC to remove text relocations 2011-07-10 13:37:54 +02:00
Sven Eckelmann
d04813c64d Fix linker search for libstdc++.so 2011-07-08 08:23:53 +00:00
Sven Eckelmann
20994566d3 Inform user about the possibility to make the build verbose 2011-07-03 18:04:47 +02:00
Sven Eckelmann
f5b0b6a010 Set changeable default compiler optimization option 2011-07-03 18:03:15 +02:00
Sven Eckelmann
4196b2cfbe Synchronize build rules with standard gnu make rules 2011-06-27 13:00:03 +02:00
Sven Eckelmann
a2aafcd22c Add OpenBSD as half-supported OS with FreeBSD userspace tools 2011-06-26 18:37:19 +02:00
Sven Eckelmann
8e6a5f3142 Remove -v parameter of install which is not available everywhere 2011-06-26 18:29:24 +02:00
Sven Eckelmann
2820b47b2f Split LIBDIR in LIBDIR and PLUGINDIR for consistency between modules 2011-06-26 02:05:06 +02:00
Sven Eckelmann
22974ae7ad Fix compilation with BITS=32 when using gcc-4.6 2011-06-25 21:29:58 +02:00
Sven Eckelmann
363dd98d26 Remove unneccessary define PIC 2011-06-25 15:09:32 +02:00
Sven Eckelmann
c98444e1e4 Don't override optimisations set by linux build environment 2011-06-25 13:46:01 +02:00
Sven Eckelmann
3d943a2214 Add GNU/Hurd as operating system with "linux" userland
---
2010-07-13 21:30:20 +02:00
Richard Goedeken
bc846549d4 FreeBSD makefile patches from David Demelier 2010-05-16 12:31:02 -04:00
Sven Eckelmann
5c7f94ec13 Build kfreebsd and GNU/kFreeBSD like Linux 2010-03-19 12:16:37 +01:00
Richard Goedeken
045f4c2ec8 merged the useful changes from Lazhur's fork 2010-03-19 00:22:12 -04:00
Sven Eckelmann
3c12b3eda7 Add automatically dependency tracking for C/C++ files
Every time a header is changed, the user had to cleanup the whole project and
then rebuild it. It is quite easy to fix and should help a lot when working on
the project. The dependency files will be created at the first run (when
dependency tracking isn't useful anyway) and should create nearly no overhead.
2010-03-04 22:45:16 +01:00
Richard Goedeken
0b4c0e9a42 makefile updates: use CFLAGS+= instead of CFLAGS=, rmdir _obj 2010-02-20 10:36:03 -05:00
Richard Goedeken
34bb46efe6 bugfix #257: added to makefile OS type GNU/kFreeBSD 2010-01-20 21:56:26 -05:00
Richard Goedeken
40f162e9bd plugin must be linked with CC instead of LD because 'sdl-config --libs' can give an output with a -Wl,-rpath option, which only works with gcc not ld 2010-01-09 00:14:31 -05:00
GoedekenR
4448f4b15a Added MSVC8 project file for audio-sdl plugin 2010-01-07 22:40:30 -05:00
Richard Goedeken
b86dbdd2e3 Makefile improvements: throw error if OS/CPU not supported, use DESTDIR in install/uninstall paths, per Lazhur request. Allow user-specified CC/CXX/LD paths, per Auria request 2009-12-19 19:22:40 -05:00
Richard Goedeken
f43ce75dab changed makefile install to use 'install' instead of mkdir 2009-12-13 14:02:44 -05:00
Richard Goedeken
b848ed3c04 added install/uninstall/rebuild to makefile 2009-12-11 23:30:41 -05:00
Richard Goedeken
f58ab3c1d2 modified Makefile for OSX compatibility patch from Auria and refactored for simplicity 2009-11-23 19:54:27 -05:00
Richard Goedeken
9311cf36ac added OSX-specific CFLAGS and LDFLAGS for SDL 2009-11-13 23:59:06 -05:00
Richard Goedeken
5a3c9803d9 use TARGET variable instead of writing out long output library name 3 times 2009-11-13 23:42:56 -05:00
Richard Goedeken
b3600ddaa9 imported patch OSX_build 2009-11-13 23:40:27 -05:00
Richard Goedeken
506ec41949 added function pointers for core configuration functions 2009-10-24 01:55:25 -04:00