From b8a43458998e2e87e39da7ccbaa16af7d8904dc0 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 1 Nov 2007 03:44:12 +0000 Subject: created standard variable for the CPU type to support doing CPU-specific optimizations svn path=/trunk/; revision=8921 --- packages/Makefile.buildlayout | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'packages') diff --git a/packages/Makefile.buildlayout b/packages/Makefile.buildlayout index 0adee029..a8cfbb74 100644 --- a/packages/Makefile.buildlayout +++ b/packages/Makefile.buildlayout @@ -53,6 +53,17 @@ ifeq (CYGWIN,$(findstring CYGWIN,$(UNAME))) OS_NAME = windows EXTENSION = dll endif +# which CPU to compile for +UNAME := $(shell uname -m) +ifeq ($(UNAME),i386) + ARCH = i386 +endif +ifeq ($(UNAME),i686) + ARCH = i386 +endif +ifeq ($(UNAME),ppc) + ARCH = powerpc +endif #==============================================================================# # -- cgit v1.2.1