LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 02-25-2005, 07:51 AM   #1
lets-eat-gary
Member
 
Registered: Jul 2003
Distribution: mandrake 9.1
Posts: 62

Rep: Reputation: 15
Lightbulb Compiling Xmame - which CFlags in makefile?


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
 
Old 02-27-2005, 08:21 AM   #2
lets-eat-gary
Member
 
Registered: Jul 2003
Distribution: mandrake 9.1
Posts: 62

Original Poster
Rep: Reputation: 15
re : xame compile

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.
 
Old 03-12-2005, 05:15 AM   #3
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,116

Rep: Reputation: 85
here's some lines from my 0.92's makefile.unix:

CC = gcc
HOST_CC = gcc
CFLAGS = -O2 -Wall -Wno-unused -mcpu=athlon-tbird
CFLAGS += -O2
CFLAGS += -pipe
CFLAGS += -fno-merge-constants
CFLAGS += -fomit-frame-pointer
CFLAGS += -ffast-math
CFLAGS += -fstrength-reduce
CFLAGS += -fexpensive-optimizations

So you see both works

Last edited by Linux.tar.gz; 03-12-2005 at 05:16 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Compiling my own xmame.xgl, but no graphics. Linux.tar.gz Linux - Games 1 11-04-2010 10:46 AM
Makefile and compiling the linux kernel ayoub Linux - Newbie 0 12-02-2005 04:25 AM
Compiling xmame for debugging: gdb and mame debugger CooManChu Linux - Games 0 05-29-2005 10:22 AM
compiling xmame dvm Suse/Novell 1 05-19-2005 07:19 PM
Compiling old code: Makefile plus config.in cbcallaw Linux - Software 1 04-29-2004 05:35 PM


All times are GMT -5. The time now is 01:14 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration