Commit graph

93 commits

Author SHA1 Message Date
Conchúr Navid
5f3e98f6e1 Fix executable bits of files 2015-03-21 10:53:38 +01:00
Riley Labrecque
c0e69b2665 Remove unused stdbool.h 2015-03-13 05:12:51 -06:00
Richard Goedeken
3d905a3c93 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
666f51b2bf unix: Add a Makefile configuration for MIPS 2015-01-26 10:07:17 +00:00
Gillou68310
6ca9446ab4 Added project file for MSVC2010 2015-01-07 15:11:10 +01:00
Bobby Smiles
9f2b928503 Add stdbool support for msvc compilers. 2014-04-05 12:04:47 +02:00
Bobby Smiles
71c4f22bf8 Rename alist_internal.h into alist.h 2014-03-19 19:15:18 +01:00
Bobby Smiles
76ca3b014c Regroup all ucode headers into a single header. 2014-03-19 19:14:10 +01:00
Bobby Smiles
67339fdcee Move MP3 prototype into its own header. 2014-03-19 09:41:45 +01:00
Bobby Smiles
7d0ba23f11 Fix unused parameter warning. 2014-03-10 21:55:54 +01:00
Bobby Smiles
0be1e551c3 Rename main to hle. 2014-03-06 21:49:30 +01:00
Bobby Smiles
d6718933db Rename plugin.h to hle_external.h 2014-03-06 21:36:51 +01:00
Bobby Smiles
4a3943a9fd Move hle_t definition inside a private header. 2014-03-06 20:41:43 +01:00
Bobby Smiles
54f817a86d Put hle_execute proto into a proper header file. 2014-02-19 09:04:51 +01:00
Bobby Smiles
0a9e243204 Make unknown task dumping optional at compile time.
This functionality is not needed by the normal user and can introduce unwanted dependencies on
files. It can be enabled at compile time using -DENABLE_TASK_DUMP or Makefile var DUMP=1.
2014-02-19 05:32:33 +01:00
Bobby Smiles
ed81030162 Rename ucode*.c files 2014-02-17 08:44:47 +01:00
Bobby Smiles
24de686fb1 Move clamp_s16 to arithmetics.h 2014-02-17 02:27:50 +01:00
Bobby Smiles
0923af8d68 Isolate memory access code. 2014-02-17 02:06:49 +01:00
Bobby Smiles
df010f161b Isolate plugin specific code. 2014-02-17 01:14:31 +01:00
Bobby Smiles
1b713d92a1 Share RESAMPLE_LUT between alist based ucodes and musyx ucodes.
I also corrected the size of RESAMPLE_LUT which was bigger than needed.
2014-01-18 15:04:00 +01:00
Sven Eckelmann
646ec921ec Compile ucode*.cpp as C source code
The ucodes are basically only C code and don't use C++ features. It is
therefore not necessary to build it with a C++ compiler.
2013-12-30 17:33:34 +01:00
Bobby Smiles
d31b8ea3ff Add initial support for MusyX 2013-12-30 14:43:47 +01:00
Sven Eckelmann
2032870995 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:07 +01:00
Sven Eckelmann
ff2ab7f9ea 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:44 +02:00
richard42
a1edae31a9 simplify OSX platform detection in makefile using xcode-select. based on patch from John Pender 2013-07-08 07:35:00 -07:00
richard42
d679f50109 Update msvc11 project file to visual studio 2012 (msvc11) 2013-06-01 07:57:15 -07:00
Riley Labrecque
239d1a8d8e Fixed compiling with MSVC 2013-05-30 09:33:20 +00:00
Sven Eckelmann
5704d656ae 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:53 +02:00
Sven Eckelmann
ba75d3506f Add CXXFLAGS 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
CXXFLAGS and added to LINK.o to fix the behavior.

Option which need this are for example -fPIC/-fPIE or -flto.
2013-05-11 10:56:08 +02:00
Richard Goedeken
f510b07e1d add msvc11 project file from mudlord 2013-03-20 22:26:27 -07:00
Sven Eckelmann
ea771b3880 Revert "Enable link time garbage collection when link time optimization is enabled"
Some linker on different platforms don't handle the garbage collection
correctly and create extreme bloated binaries. Therefore, leave it to the user
to enable this feature or not.
2013-03-14 08:01:55 +01:00
Bobby Smiles
d501c4e38e Rewrite cicx105_ucode to allow better optimisation. Move it outside of main.
Note: During the rewriting I changed the number of line to write from 0xfc to 0x18 because that's
what I saw in the ipl3 disassembly.
2013-03-10 02:45:53 +01:00
Bobby Smiles
852505046d Move alist logic into its own module. Corrected ABI1 and ABI3 sizes. 2013-03-09 23:35:08 +01:00
Sven Eckelmann
485a064c5e Enable link time garbage collection when link time optimization is enabled 2013-02-08 00:31:52 +01:00
Bobby Smiles
027c4cc2d8 Refactor jpeg module. 2013-01-27 17:19:58 +01:00
richard42
7ef526534d OSX build fix 2013-02-02 22:23:17 -08:00
Sven Eckelmann
1b238c5176 Introduce WARNFLAGS for default (removable) compiler warning flags 2013-01-02 16:13:45 +01:00
Sven Eckelmann
2ff7710657 Disable PIC on MinGW to reduce warnings 2013-01-01 00:30:34 +01:00
n pepinpe
a640dd3ac3 Fix path to OSX SDK with XCode >=4.3 2012-12-31 10:43:00 +01:00
Sven Eckelmann
9a922cdc78 Use $(OBJDIR) in clean target instead of hardcoded path 2012-12-13 14:53:05 +01:00
Sven Eckelmann
ea51d4457d 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:30 +01:00
Sven Eckelmann
61708f6588 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:33 +01:00
Sven Eckelmann
8c7c887323 Synchronize usage of environmental variables for UNAME with HOST_CPU 2012-12-13 10:52:49 +01:00
Sven Eckelmann
de60447518 Remove duplicated definition of CC for MinGW 2012-12-13 10:46:17 +01:00
veganaize
06d5023d96 Add support for MingW32 2012-12-04 21:17:52 +01:00
Anthony J. Bentley
3a7a5b435a Detect OpenBSD PowerPC platforms macppc and socppc. 2012-11-12 18:03:16 -07:00
Sven Eckelmann
e080396a73 Add configuration for semi-supported architecture armel 2012-11-04 01:26:09 +01:00
Sven Eckelmann
524369cf8c Enable experimental support for link-time optimization 2012-06-09 00:56:33 +02:00
Richard Goedeken
3427083f87 makefile change from Auria: add new linker flag in 32-bit build under OSX 2012-03-11 14:23:06 -07:00
richard42
b03da51141 1. Added idct.c to MSVC8 project file
2. Removed inline attributes which throw errors in MSVC8.  This is needed for modern compilers; they know when to inline
3. Fixed errors caused by MSVC8's incompatibility with C99 local variable declarations
2012-03-06 20:39:00 -08:00