Commit graph

87 commits

Author SHA1 Message Date
Richard Goedeken
c50780cfa1 remove backup file 2018-09-22 07:43:13 -07:00
Brigham Henry Keys
7000ee130a Moved CMake project files to the projects/ directory 2018-09-21 02:36:52 -05:00
Anthony J. Bentley
52fd15b4c0 Update homepage. 2018-01-01 17:46:33 +01:00
Anthony J. Bentley
318497be41 Update link to bug tracker. 2018-01-01 17:46:33 +01:00
Logan
4855a9ba29
If DEBUG not set, set NDEBUG 2017-11-30 10:57:49 -07:00
Richard Goedeken
35fdd23231 update Makefile method for finding OSX_SDK_PATH 2017-11-14 16:21:00 -08:00
Bobby Smiles
7d8eea23d8 Revert "Allow using compiler other than gcc"
This reverts commit 2766667e73.
2017-06-24 13:34:37 -06:00
Logan McNaughton
2766667e73 Allow using compiler other than gcc 2017-06-20 21:16:50 -06:00
Brent Woodruff
74202c7cec bump macosx-version-min to 10.6 for SDL2.0.5 2017-03-16 22:50:34 -04:00
Richard Goedeken
0056f904b9 libm is required for some linux distributions, possibly others. Hopefully this wont break the build on any architectures; it's also like this in the core makefile 2016-10-18 20:41:56 -07:00
Richard Goedeken
164472117d change VS2013 project files to build with the XP-compatible vc120 toolset, so the resulting binaries will run on pre-vista machines 2016-07-13 20:04:06 -07:00
Gillou68310
58a56c38b2 Added x64 configuration to VisualStudio2013 project file 2015-08-28 16:26:24 +02:00
Anthony J. Bentley
1580b6819d Remove unnecessary OpenBSD warning. 2015-06-08 01:45:45 -06:00
Conchúr Navid
40124bf0ae Fix executable bits of files 2015-03-21 10:58:11 +01:00
Richard Goedeken
ef4d344062 added project/solution file for Visual Studio 2013. removed older MSVS project files. fix code compatilibity problems with MSVC 2015-02-22 07:13:34 -08:00
Nebuleon Fumika
630e4c7c2f Unix Makefile: Discard unnecessary architecture checks
Unlike the Mupen64Plus Core, which is sensitive to the architecture
it's compiled for due to its just-in-time compilers, this project does
not require architecture-specific glue code, only operating system
checks to load dynamic libraries and the presence of a well-behaving
port of SDL on the platform.

M64P_BIG_ENDIAN is not used for any decisions in this plugin, either.
Delete the big-endian processor checks.
2015-01-26 10:01:34 +00:00
Gillou68310
9d82d61ed3 Added project file for MSVC2010 2015-01-07 15:10:27 +01:00
Richard Goedeken
add0e60ece SDL 1.2 is not deprecated for us, and we shouldnt frighten the user with 6 lines of exclamation points 2014-05-04 11:29:27 -07:00
Ursula Abendroth
0d3e0c3b8f Switch by default to SDL2 for Mupen64Plus 2.1
The current version of SDL is 2.0.3. All new releases of distributions contain
this library already. Current Linux distributions and OpenBSD even backporting
patches from Mupen64Plus 2.1 repo to use SDL 2. Android and other mobile
platform don't have support for legacy SDL 1.2.

People like Anthony J. Bentley and Riley Labrecque already requested
a new release of Mupen64Plus 2.1 with SDL2
2014-04-23 19:32:46 +02:00
Sven Eckelmann
4af586cec6 Force line ending type for specific files
Different operation systems (Unix vs. Windows) use different line ending types.
It can easily happen that users from different systems edit files and replace
all line endings of a file with the system specific version. This screws up
diffs and makes merges harder.

Git can normalize line endings for specific files and avoid this problem.
Binary files should be marked to avoid accidentally normalization.
2013-12-19 14:19:06 +01:00
Sven Eckelmann
917ed484dd Don't fail rebuild when header is removed
The *.d depends files for make just list the files used when building an
object file. Removing a file listed in such a dependency file causes make to
search for a way to recreate it. This usually cannot work because these files
aren't autogenerated.

The gcc option -MP can be used to generate empty rule for these files. Removing
a file in a dependency list will then execute this empty rule and continue with
the execution of the creation of the object file. This compilation process will
then automatically correct the dependency file.
2013-09-20 10:31:41 +02:00
richard42
951e990d00 simplify OSX platform detection in makefile using xcode-select. based on patch from John Pender 2013-07-08 07:24:07 -07:00
Richard Goedeken
03050e918b merged heads 2013-07-04 18:01:41 -07:00
Sven Eckelmann
14ecfc61bd Add CFLAGS -D_GNU_SOURCE to allow usage of strcasestr 2013-06-23 10:35:25 +02:00
Sven Eckelmann
7f379fe044 Use SDL1.2 keysym in the config when using SDL2
It is easier for a user to keep the old SDL1.2 values for the keys in the
config instead of converting them by hand. This is extreme important when the
default (automatic) config is used.
2013-06-22 14:40:18 +02:00
richard42
10cb4e4c04 Update msvc11 project file to visual studio 2012 (msvc11) 2013-06-01 07:56:09 -07:00
Sven Eckelmann
d230fdd1a5 Allow to statically set SDL_(CFLAGS|LIBS) without sdl-config
n.pepinpe requested in #540 to allow overwriting the automatically searched
CFLAGS and LIBS for used libraries. This should allow distributors to set the
build configuration without patching the makefile. This is important for
systems were pkg-config or sdl-config aren't normally used.
2013-05-11 12:26:14 +02:00
Sven Eckelmann
ced3b9cdb6 Enable Link-time optimization by default
The GCC introduced Link-time optimization in GCC 4.5 (2010-04-14). This should
be long enough available that interested users have upgraded to a compiler
supporting it.

The MSVC project already enabled WholeProgramOptimization since a long time.
Enabling it by default in GCC seems to be equally valid.
2013-05-11 11:25:50 +02:00
Sven Eckelmann
6f0c173c68 Add CFLAGS to the linker step
The GCC manual states for different parameters that the options for compilation
must also be used when linking. The options for compilation are stored in
CFLAGS and added to LINK.o to fix the behavior.

Option which need this are for example -fPIC/-fPIE or -flto.
2013-05-11 10:58:16 +02:00
Richard Goedeken
67f2d3b316 add msvc11 project file from mudlord 2013-03-20 22:25:49 -07:00
richard42
47c9b2dd4c OSX build fix 2013-02-02 22:22:22 -08:00
Sven Eckelmann
113a45e0b3 Introduce WARNFLAGS for default (removable) compiler warning flags 2013-01-02 16:13:45 +01:00
Sven Eckelmann
007e65fc66 Disable PIC on MinGW to reduce warnings 2013-01-01 00:30:34 +01:00
n pepinpe
cbe6282ca0 Fix path to OSX SDK with XCode >=4.3 2012-12-31 10:43:00 +01:00
Sven Eckelmann
3a797083e1 Use $(OBJDIR) in clean target instead of hardcoded path 2012-12-13 14:53:05 +01:00
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