lets-eat-gary Posted February 25, 2005 Report Share Posted February 25, 2005 Hi people. Up until now I have been using the xmame packages from the PLF. But I want the latest version now (0.92) instead of the one in the PLF (0.90). Also I wanted to learn a bit more regarding compiling in general. I have an athlon-XP 3000 and want to compile a version optimised for my CPU I looked through the makefile and noticed there is a commented line which refers to athlon-xp. Can anyone give me any ideas where to edit the CFlags options and what I should put (an examples would be helpful Or is it a good idea to just use the makefile as it is (i.e does it somehow auto optimise for an Athlon-XP)? Any advice will be greatful. Cheers [moved from Software by spinynorman] Quote Link to comment Share on other sites More sharing options...
papaschtroumpf Posted February 25, 2005 Report Share Posted February 25, 2005 I compile the windows version under MinGW, and I assume that XMame is based on the same source. In the windows version makefile there is a section with a series of if-then statements for different architectures. I usually add the following to the makefile ... ifdef ATHLON-XP NAME = $(PREFIX)$(TARGET)$(SUFFIX)atxp ARCH = -march=athlon-xp else ... then I build "make ATHLON-XP=1" I don't know if the mamefile is similar for XMame but basically you should be able to use the -march=athlon-xp and gcc will automagically select the proper CFlags. Quote Link to comment Share on other sites More sharing options...
devries Posted February 25, 2005 Report Share Posted February 25, 2005 You need to edit the makefile.unix file. Just follow the defaults and read the explenations. I never bother installing xmame (I just run it from the build directory) so I skip all that in the makefile. And I use arts_smotek because it sounds better. If you're done editing type make -f makefile.unix and watch it being build. Quote Link to comment Share on other sites More sharing options...
lets-eat-gary Posted February 27, 2005 Author Report Share Posted February 27, 2005 Thanks for the responses, I notice in the makefile.unix there are lines that have CFLAGS = Do i put all the optimisations in one line? , ie:- CFLAGS = -pipe -march=athlon-xp -msse (..etc) or can i put them on seperate lines, ie :- CFLAGS += -msse CFLAGS += -pipe CFLAGS += (.....etc) or does it not matter? Cheers for any advice. Quote Link to comment Share on other sites More sharing options...
devries Posted February 27, 2005 Report Share Posted February 27, 2005 No just put # in front of a line or remove it. That's it. To run xmame I use http://kaf.sourceforge.net/. Just point it to the mame.x11 binary in and it runs. No need to install xmame. http://www.mandrakeusers.org/index.php?showtopic=13793 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.