Commit graph

102 commits

Author SHA1 Message Date
Sven Eckelmann
a0880f0aa3 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:17 +01:00
Sven Eckelmann
06e28dc991 Fix order of Makefile targets to print help by default 2012-12-13 14:07:56 +01:00
Sven Eckelmann
7e92b3d81c 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:30 +01:00
Sven Eckelmann
ae5b17fed0 Allow to change names of *-config tools for cross compiles 2012-12-13 11:33:49 +01:00
Sven Eckelmann
9538dad8c3 Synchronize usage of environmental variables for UNAME with HOST_CPU 2012-12-13 10:52:49 +01:00
Sven Eckelmann
e7e9f8e42c Remove duplicated definition of CC for MinGW 2012-12-13 10:46:17 +01:00
veganaize
781f99ec5a Add support for MingW32 2012-12-04 21:17:52 +01:00
Anthony J. Bentley
26417f4242 Detect OpenBSD PowerPC platforms macppc and socppc. 2012-11-12 18:02:40 -07:00
Sven Eckelmann
3e14a9b78e Add configuration for semi-supported architecture armel 2012-11-04 01:25:37 +01:00
Sven Eckelmann
02d65fa1d1 Enable experimental support for link-time optimization 2012-06-09 00:54:13 +02:00
Richard Goedeken
90ddf209f6 makefile change from Auria: add new linker flag in 32-bit build under OSX 2012-03-11 14:22:05 -07:00
Sven Eckelmann
b077150cb0 Explicitly disable PIC in case of PIC=0 2011-10-13 00:01:01 +02:00
Sven Eckelmann
9e2275902c 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:15 +02:00
Sven Eckelmann
9ed0b82cec 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
bb10548da8 Enable big endian mode on ppc and ppc64 2011-08-05 10:19:20 +02:00
Sven Eckelmann
b0db1daa3b Strip binaries during install 2011-07-23 21:22:52 +02:00
Sven Eckelmann
2ee3bff55d Allow to force PIC to remove text relocations 2011-07-10 13:37:54 +02:00
Sven Eckelmann
d22d202310 Fix linker search for libstdc++.so 2011-07-08 08:24:34 +00:00
Sven Eckelmann
782ca67cbe Inform user about the possibility to make the build verbose 2011-07-03 18:04:47 +02:00
Sven Eckelmann
eac88a4f93 Set changeable default compiler optimization option 2011-07-03 18:03:15 +02:00
Sven Eckelmann
c22525b54f Remove InputAutoCfg.ini in uninstall target 2011-06-27 13:18:23 +02:00
Sven Eckelmann
f236efb3a3 Synchronize build rules with standard gnu make rules 2011-06-27 13:00:03 +02:00
Sven Eckelmann
e473a02b5e Add OpenBSD as half-supported OS with FreeBSD userspace tools 2011-06-26 18:37:19 +02:00
Sven Eckelmann
cfe2fea208 Remove -v parameter of install which is not available everywhere 2011-06-26 18:29:25 +02:00
Sven Eckelmann
621da91cb0 Split LIBDIR in LIBDIR and PLUGINDIR for consistency between modules 2011-06-26 02:05:06 +02:00
Sven Eckelmann
f868300684 Fix compilation with BITS=32 when using gcc-4.6 2011-06-25 21:29:58 +02:00
Sven Eckelmann
913392855c Remove unneccessary define PIC 2011-06-25 15:09:32 +02:00
Sven Eckelmann
f349d1eeab Don't override optimisations set by linux build environment 2011-06-25 14:20:15 +02:00
Sven Eckelmann
eaeb4b83d1 Add GNU/Hurd as operating system with "linux" userland
---
2010-07-13 21:31:53 +02:00
Richard Goedeken
48cf5259d1 FreeBSD makefile patches from David Demelier 2010-05-16 12:42:55 -04:00
Sven Eckelmann
5ea0d100a7 Build kfreebsd and GNU/kFreeBSD like Linux 2010-03-19 12:16:37 +01:00
Richard Goedeken
fc16558e0c merged the useful changes from Lazhur's fork 2010-03-19 00:17:37 -04:00
Sven Eckelmann
2cff1b907d 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:48:50 +01:00
Richard Goedeken
9d704f219a makefile updates: use CFLAGS+= instead of CFLAGS=, rmdir _obj 2010-02-20 11:05:49 -05:00
Richard Goedeken
f070a07776 bugfix #257: added to makefile OS type GNU/kFreeBSD 2010-01-20 21:57:12 -05:00
Richard Goedeken
d1e26f7bd9 refactored auto-configuration feature so that it uses an .ini file now instead of hard-coding the controllers in the source code. 2010-01-18 21:02:18 -05:00
Richard Goedeken
e41e4b1320 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:13:09 -05:00
GoedekenR
fa1aaf7e31 fix up release build in MSVC8 project 2010-01-02 16:33:04 -05:00
GoedekenR
fcabf9eea7 Changed default keys for A and B buttons to Ctrl/Shift instead of Alt/Meta because Windows cant handle Alt/Meta
minor code refactoring for MSVC compiler; can't handle C99 data definitions in the middle of {} blocks
Added MSVC8 project file
2010-01-02 16:25:25 -05:00
Richard Goedeken
edc11ab2e6 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:53:30 -05:00
Richard Goedeken
e400eca663 changed makefile install to use 'install' instead of mkdir 2009-12-13 14:04:00 -05:00
Richard Goedeken
4b58d9244f added install/uninstall/rebuild to makefile 2009-12-11 23:43:04 -05:00
Richard Goedeken
2a07cb6b60 re-arranged the makefile a bit so that the system stuff is together and at the top of the makefile 2009-11-23 08:02:03 -05:00
Richard Goedeken
5b81602620 update Makefile for OSX patch from Auria 2009-11-23 07:59:09 -05:00
Richard Goedeken
11ec99d26d merged makefile changes with autoconfig change 2009-11-15 20:51:56 -05:00
Richard Goedeken
9800db3960 moved auto-configuration stuff into its own source file 2009-11-15 20:48:46 -05:00
Richard Goedeken
87d7d2a485 use TARGET variable instead of writing out long output library name 3 times 2009-11-14 00:05:43 -05:00
Richard Goedeken
93ab07eb30 fixed makefile ifeq logic error 2009-11-14 00:04:18 -05:00
Richard Goedeken
f216df1423 imported patch OSX_build 2009-11-14 00:02:01 -05:00
Richard Goedeken
b28198fb48 Completely re-wrote configuration save/load code to use Core Config API. Added feature to detect attached joystick and auto-configure settings. Added deadzone/scaling parameters to configuration 2009-11-02 00:01:52 -05:00