* Stephen Montgomery-Smith <[EMAIL PROTECTED]> [020104 12:02] wrote:
> I want to create a Makefile for a C program that includes some Pentium
> II specific inline assembler code.  How do I tell the compiler whether
> we are compiling on a i686?
> 
> For Linux, I can do something like this (for gnu-make)
> Arch = $(shell arch)
> cc ...... -DArch .....
> 
> and inside the program
> 
> #ifdef i686
> 
> But arch doesn't exist on FreeBSD.

Isn't this somewhat trivial?

ARCH=i686
CFLAGS+=-D${ARCH}

?

-- 
-Alfred Perlstein [[EMAIL PROTECTED]]
'Instead of asking why a piece of software is using "1970s technology,"
 start asking why software is ignoring 30 years of accumulated wisdom.'
Tax deductable donations for FreeBSD: http://www.freebsdfoundation.org/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to