rev 9226 - branches/kde4/cdbs

Matthew Rosewarne mukidohime-guest at alioth.debian.org
Sat Feb 2 03:01:06 UTC 2008


Author: mukidohime-guest
Date: 2008-02-02 03:01:05 +0000 (Sat, 02 Feb 2008)
New Revision: 9226

Added:
   branches/kde4/cdbs/cpu-optimize.mk
Log:
CPU optimization definitions for cdbs


Added: branches/kde4/cdbs/cpu-optimize.mk
===================================================================
--- branches/kde4/cdbs/cpu-optimize.mk	                        (rev 0)
+++ branches/kde4/cdbs/cpu-optimize.mk	2008-02-02 03:01:05 UTC (rev 9226)
@@ -0,0 +1,48 @@
+# -*- mode: makefile; coding: utf-8 -*-
+# Copyright © 2008 Matthew Rosewarne <mrosewarne at inoutbox.com>
+# Description: Determines possible CPU optimisations.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+# 02111-1307 USA.
+
+ifndef _cdbs_bootstrap
+_cdbs_scripts_path ?= /usr/lib/cdbs
+_cdbs_rules_path ?= /usr/share/cdbs/1/rules
+_cdbs_class_path ?= /usr/share/cdbs/1/class
+endif
+
+ifndef _cdbs_rules_cpu_optimize
+_cdbs_rules_cpu_optimize := 1
+endif
+
+include $(_cdbs_rules_path)/buildvars.mk$(_cdbs_makefile_suffix)
+
+
+_cdbs_cpu_opt_i386 := 3dnow mmx sse sse2 sse3
+_cdbs_cpu_opt_amd64 := 3dnow mmx sse sse2 sse3
+_cdbs_cpu_opt_powerpc := altivec
+
+
+ifdef _cdbs_cpu_opt_$(DEB_BUILD_ARCH_CPU)
+	DEB_BUILD_ARCH_CPU_OPT = $(_cdbs_cpu_opt_$(DEB_BUILD_ARCH_CPU))
+else
+	DEB_BUILD_ARCH_CPU_OPT =
+endif
+
+ifdef _cdbs_cpu_opt_$(DEB_HOST_ARCH_CPU)
+	DEB_HOST_ARCH_CPU_OPT = $(_cdbs_cpu_opt_$(DEB_HOST_ARCH_CPU))
+else
+	DEB_HOST_ARCH_CPU_OPT =
+endif




More information about the pkg-kde-commits mailing list