From owner-freebsd-hackers Fri Jan 4 10: 2: 9 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from femail26.sdc1.sfba.home.com (femail26.sdc1.sfba.home.com [24.254.60.16]) by hub.freebsd.org (Postfix) with ESMTP id E826537B41F for ; Fri, 4 Jan 2002 10:02:04 -0800 (PST) Received: from math.missouri.edu ([24.12.197.197]) by femail26.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20020104180204.VCYI22317.femail26.sdc1.sfba.home.com@math.missouri.edu> for ; Fri, 4 Jan 2002 10:02:04 -0800 Message-ID: <3C35EE1B.484A6AD@math.missouri.edu> Date: Fri, 04 Jan 2002 12:02:03 -0600 From: Stephen Montgomery-Smith X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Tell gcc I have a i686 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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. -- Stephen Montgomery-Smith stephen@math.missouri.edu http://www.math.missouri.edu/~stephen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message