rev 9263 - branches/kde4/packages/blitz/debian

Fathi Boudra fabo at alioth.debian.org
Mon Feb 4 08:59:19 UTC 2008


Author: fabo
Date: 2008-02-04 08:59:15 +0000 (Mon, 04 Feb 2008)
New Revision: 9263

Added:
   branches/kde4/packages/blitz/debian/cpu-optimize.mk
Log:
* Add cpu-optimize.mk inside blitz.


Copied: branches/kde4/packages/blitz/debian/cpu-optimize.mk (from rev 9262, branches/kde4/packages/rsibreak/debian/cpu-optimize.mk)
===================================================================
--- branches/kde4/packages/blitz/debian/cpu-optimize.mk	                        (rev 0)
+++ branches/kde4/packages/blitz/debian/cpu-optimize.mk	2008-02-04 08:59:15 UTC (rev 9263)
@@ -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