# Makefile.in generated by automake 1.10.2 from Makefile.am.
# cell/spu/Makefile.  Generated from Makefile.in by configure.

# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.



# -*- makefile -*-
# This file contains special make rules to generate codelets.
# Most of this file requires GNU make .


pkgdatadir = $(datadir)/fftw
pkglibdir = $(libdir)/fftw
pkgincludedir = $(includedir)/fftw
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = i386-apple-darwin9.6.0
host_triplet = i386-apple-darwin9.6.0
noinst_PROGRAMS = spufftw$(EXEEXT) planner$(EXEEXT)
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
	$(top_srcdir)/support/Makefile.codelets
subdir = cell/spu
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/acx_mpi.m4 \
	$(top_srcdir)/m4/acx_pthread.m4 \
	$(top_srcdir)/m4/ax_cc_maxopt.m4 \
	$(top_srcdir)/m4/ax_check_compiler_flags.m4 \
	$(top_srcdir)/m4/ax_compiler_vendor.m4 \
	$(top_srcdir)/m4/ax_gcc_aligns_stack.m4 \
	$(top_srcdir)/m4/ax_gcc_archflag.m4 \
	$(top_srcdir)/m4/ax_gcc_version.m4 \
	$(top_srcdir)/m4/ax_gcc_x86_cpuid.m4 \
	$(top_srcdir)/m4/ax_openmp.m4 $(top_srcdir)/m4/libtool.m4 \
	$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
	$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
	$(top_srcdir)/m4/ocaml.m4 $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
	$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
PROGRAMS = $(noinst_PROGRAMS)
am__planner_SOURCES_DIST = planner.spuc execute.spuc spu_n2fv_2.spuc \
	spu_n2fv_4.spuc spu_n2fv_6.spuc spu_n2fv_8.spuc \
	spu_n2fv_10.spuc spu_n2fv_12.spuc spu_n2fv_14.spuc \
	spu_n2fv_16.spuc spu_n2fv_32.spuc spu_t1fv_2.spuc \
	spu_t1fv_3.spuc spu_t1fv_4.spuc spu_t1fv_5.spuc \
	spu_t1fv_6.spuc spu_t1fv_7.spuc spu_t1fv_8.spuc \
	spu_t1fv_9.spuc spu_t1fv_10.spuc spu_t1fv_12.spuc \
	spu_t1fv_15.spuc spu_t1fv_16.spuc spu_t1fv_32.spuc \
	spu_n1fv_3.spuc spu_n1fv_5.spuc spu_n1fv_7.spuc \
	spu_n1fv_9.spuc spu_n1fv_11.spuc spu_n1fv_13.spuc \
	spu_n1fv_15.spuc fftw-spu.h spu-double.h spu-single.h
am__objects_1 = spu_n2fv_2.$(OBJEXT) spu_n2fv_4.$(OBJEXT) \
	spu_n2fv_6.$(OBJEXT) spu_n2fv_8.$(OBJEXT) \
	spu_n2fv_10.$(OBJEXT) spu_n2fv_12.$(OBJEXT) \
	spu_n2fv_14.$(OBJEXT) spu_n2fv_16.$(OBJEXT) \
	spu_n2fv_32.$(OBJEXT) spu_t1fv_2.$(OBJEXT) \
	spu_t1fv_3.$(OBJEXT) spu_t1fv_4.$(OBJEXT) spu_t1fv_5.$(OBJEXT) \
	spu_t1fv_6.$(OBJEXT) spu_t1fv_7.$(OBJEXT) spu_t1fv_8.$(OBJEXT) \
	spu_t1fv_9.$(OBJEXT) spu_t1fv_10.$(OBJEXT) \
	spu_t1fv_12.$(OBJEXT) spu_t1fv_15.$(OBJEXT) \
	spu_t1fv_16.$(OBJEXT) spu_t1fv_32.$(OBJEXT)
am__objects_2 = spu_n1fv_3.$(OBJEXT) spu_n1fv_5.$(OBJEXT) \
	spu_n1fv_7.$(OBJEXT) spu_n1fv_9.$(OBJEXT) \
	spu_n1fv_11.$(OBJEXT) spu_n1fv_13.$(OBJEXT) \
	spu_n1fv_15.$(OBJEXT)
#am__objects_3 = $(am__objects_1) $(am__objects_2)
am__objects_3 = $(am__objects_1)
am__objects_4 =
am_planner_OBJECTS = planner.$(OBJEXT) execute.$(OBJEXT) \
	$(am__objects_3) $(am__objects_4)
planner_OBJECTS = $(am_planner_OBJECTS)
planner_LDADD = $(LDADD)
am__spufftw_SOURCES_DIST = main.spuc alloc.spuc copy.spuc dma.spuc \
	execute.spuc transpose.spuc dft.spuc spu_n2fv_2.spuc \
	spu_n2fv_4.spuc spu_n2fv_6.spuc spu_n2fv_8.spuc \
	spu_n2fv_10.spuc spu_n2fv_12.spuc spu_n2fv_14.spuc \
	spu_n2fv_16.spuc spu_n2fv_32.spuc spu_t1fv_2.spuc \
	spu_t1fv_3.spuc spu_t1fv_4.spuc spu_t1fv_5.spuc \
	spu_t1fv_6.spuc spu_t1fv_7.spuc spu_t1fv_8.spuc \
	spu_t1fv_9.spuc spu_t1fv_10.spuc spu_t1fv_12.spuc \
	spu_t1fv_15.spuc spu_t1fv_16.spuc spu_t1fv_32.spuc \
	spu_n1fv_3.spuc spu_n1fv_5.spuc spu_n1fv_7.spuc \
	spu_n1fv_9.spuc spu_n1fv_11.spuc spu_n1fv_13.spuc \
	spu_n1fv_15.spuc fftw-spu.h spu-double.h spu-single.h
am_spufftw_OBJECTS = main.$(OBJEXT) alloc.$(OBJEXT) copy.$(OBJEXT) \
	dma.$(OBJEXT) execute.$(OBJEXT) transpose.$(OBJEXT) \
	dft.$(OBJEXT) $(am__objects_3) $(am__objects_4)
spufftw_OBJECTS = $(am_spufftw_OBJECTS)
spufftw_LDADD = $(LDADD)
DEFAULT_INCLUDES = -I. -I$(top_builddir)
CCLD = $(CC)
LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
	$(LDFLAGS) -o $@
SOURCES = $(planner_SOURCES) $(spufftw_SOURCES)
DIST_SOURCES = $(am__planner_SOURCES_DIST) $(am__spufftw_SOURCES_DIST)
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = ${SHELL} /Users/stp/Code/CSL_Libs/fftw-3.2.1/missing --run aclocal-1.10
ALLOCA = 
AMTAR = ${SHELL} /Users/stp/Code/CSL_Libs/fftw-3.2.1/missing --run tar
AR = ar
AS = as
AUTOCONF = ${SHELL} /Users/stp/Code/CSL_Libs/fftw-3.2.1/missing --run autoconf
AUTOHEADER = ${SHELL} /Users/stp/Code/CSL_Libs/fftw-3.2.1/missing --run autoheader
AUTOMAKE = ${SHELL} /Users/stp/Code/CSL_Libs/fftw-3.2.1/missing --run automake-1.10
AWK = awk
CC = gcc -std=gnu99
CCDEPMODE = depmode=gcc3
CFLAGS = -O3 -fomit-frame-pointer -malign-double -fstrict-aliasing -ffast-math -march=pentium3
CODELET_OPTIM = -O -fno-schedule-insns -fno-web -fno-loop-optimize --param inline-unit-growth=1000 --param large-function-growth=1000
CPP = gcc -std=gnu99 -E
CPPFLAGS = 
CYGPATH_W = echo
DEFS = -DHAVE_CONFIG_H
DEPDIR = .deps
DLLTOOL = dlltool
DSYMUTIL = dsymutil
DUMPBIN = 
ECHO_C = \c
ECHO_N = 
ECHO_T = 
EGREP = /usr/bin/grep -E
EXEEXT = 
F77 = gfortran
FFLAGS = -g -O2
FGREP = /usr/bin/grep -F
FLIBS =  -L/usr/local/lib/gcc/i686-apple-darwin8/4.2.3 -L/usr/local/lib/gcc/i686-apple-darwin8/4.2.3/../../.. -lm -lgfortranbegin -lgfortran
GREP = /usr/bin/grep
INSTALL = /usr/bin/install -c
INSTALLED_OCAMLC = /usr/local/bin/ocamlc
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
LD = /usr/bin/ld
LDFLAGS = 
LIBOBJS = 

# override the value set by configure
LIBS = -lm
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LIPO = lipo
LN_S = ln -s
LTLIBOBJS = 
MAINT = #
MAKEINFO = ${SHELL} /Users/stp/Code/CSL_Libs/fftw-3.2.1/missing --run makeinfo
MKDIR_P = ../.././install-sh -c -d
MPICC = 
MPILIBS = 
MPIRUN = 
NM = /usr/bin/nm -p
NMEDIT = nmedit
OBJDUMP = objdump
OBJEXT = o
OCAMLC = 
OCAMLCFLAGS = 
OCAMLDEFS = 
OCAMLDEP = 
OCAMLLDFLAGS = 
OCAMLOPT = 
OCAMLOPTCFLAGS = 
OPENMP_CFLAGS = 
OTOOL = otool
OTOOL64 = :
PACKAGE = fftw
PACKAGE_BUGREPORT = fftw@fftw.org
PACKAGE_NAME = fftw
PACKAGE_STRING = fftw 3.2.1
PACKAGE_TARNAME = fftw
PACKAGE_VERSION = 3.2.1
PATH_SEPARATOR = :
POW_LIB = 
PRECISION = s
PREC_SUFFIX = f
PRTDIAG = 
PTHREAD_CC = 
PTHREAD_CFLAGS = 
PTHREAD_LIBS = 
RANLIB = ranlib
SED = /usr/bin/sed
SET_MAKE = 
SHARED_VERSION_INFO = 5:3:2
SHELL = /bin/sh
SIMD_CFLAGS = 
STRIP = strip
TARGET_OCAMLBIN = /usr/local/bin
TARGET_OCAMLLIB = /usr/local/lib/fftw
TARGET_OCAMLRUN = /usr/local/bin/ocamlrun
THREADLIBS = 
VERSION = 3.2.1
abs_builddir = /Users/stp/Code/CSL_Libs/fftw-3.2.1/cell/spu
abs_srcdir = /Users/stp/Code/CSL_Libs/fftw-3.2.1/cell/spu
abs_top_builddir = /Users/stp/Code/CSL_Libs/fftw-3.2.1
abs_top_srcdir = /Users/stp/Code/CSL_Libs/fftw-3.2.1
ac_ct_CC = gcc
ac_ct_DUMPBIN = 
ac_ct_F77 = gfortran
acx_pthread_config = 
am__include = include
am__leading_dot = .
am__quote = 
am__tar = ${AMTAR} chof - "$$tardir"
am__untar = ${AMTAR} xf -
bindir = ${exec_prefix}/bin
build = i386-apple-darwin9.6.0
build_alias = 
build_cpu = i386
build_os = darwin9.6.0
build_vendor = apple
builddir = .
datadir = ${datarootdir}
datarootdir = ${prefix}/share
docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
dvidir = ${docdir}
exec_prefix = ${prefix}
host = i386-apple-darwin9.6.0
host_alias = 
host_cpu = i386
host_os = darwin9.6.0
host_vendor = apple
htmldir = ${docdir}
includedir = ${prefix}/include
infodir = ${datarootdir}/info
install_sh = $(SHELL) /Users/stp/Code/CSL_Libs/fftw-3.2.1/install-sh
libdir = ${exec_prefix}/lib
libexecdir = ${exec_prefix}/libexec
localedir = ${datarootdir}/locale
localstatedir = ${prefix}/var
lt_ECHO = /bin/echo
mandir = ${datarootdir}/man
mkdir_p = $(top_builddir)/./install-sh -c -d
oldincludedir = /usr/include
pdfdir = ${docdir}
prefix = /usr/local
program_transform_name = s,x,x,
psdir = ${docdir}
sbindir = ${exec_prefix}/sbin
sharedstatedir = ${prefix}/com
srcdir = .
sysconfdir = ${prefix}/etc
target_alias = 
top_build_prefix = ../../
top_builddir = ../..
top_srcdir = ../..

# FIXME: autodetect SPUCC
SPUCC = spu-gcc
SPUCFLAGS = -O3 -W -Wall -Winline -Wno-main -I. -I$(srcdir)	\
-I$(top_builddir) -I${top_srcdir}/kernel

DOUBLE_CODELETS = spu_n1fv_3.spuc spu_n1fv_5.spuc spu_n1fv_7.spuc		\
spu_n1fv_9.spuc spu_n1fv_11.spuc spu_n1fv_13.spuc spu_n1fv_15.spuc

SINGLE_CODELETS = spu_n2fv_2.spuc spu_n2fv_4.spuc spu_n2fv_6.spuc		\
spu_n2fv_8.spuc spu_n2fv_10.spuc spu_n2fv_12.spuc spu_n2fv_14.spuc	\
spu_n2fv_16.spuc spu_n2fv_32.spuc spu_t1fv_2.spuc spu_t1fv_3.spuc	\
spu_t1fv_4.spuc spu_t1fv_5.spuc spu_t1fv_6.spuc spu_t1fv_7.spuc		\
spu_t1fv_8.spuc spu_t1fv_9.spuc spu_t1fv_10.spuc spu_t1fv_12.spuc	\
spu_t1fv_15.spuc spu_t1fv_16.spuc spu_t1fv_32.spuc

#ALL_CODELETS = $(SINGLE_CODELETS) $(DOUBLE_CODELETS)
ALL_CODELETS = $(SINGLE_CODELETS)
BUILT_SOURCES = $(SINGLE_CODELETS) $(DOUBLE_CODELETS)
HFILES = fftw-spu.h spu-double.h spu-single.h
OTHERDEPS = ${top_srcdir}/kernel/ifftw.h ${top_srcdir}/cell/fftw-cell.h	\
${top_builddir}/config.h

spufftw_SOURCES = main.spuc alloc.spuc copy.spuc dma.spuc execute.spuc	\
transpose.spuc dft.spuc $(ALL_CODELETS) $(HFILES)

spufftw_LINK = $(SPUCC) -o $@
planner_SOURCES = planner.spuc execute.spuc $(ALL_CODELETS) $(HFILES)
planner_LINK = $(SPUCC) -o $@
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(CODELET_OPTIM)

LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
	$(AM_CFLAGS) $(CFLAGS) $(CODELET_OPTIM)

CODLIST = codlist.c
CODELET_NAME = codelet_
#INDENT = indent -kr -cs -i5 -l800 -fca -nfc1 -sc -sob -cli4 -TR -Tplanner -TV
#TWOVERS = sh ${top_srcdir}/support/twovers.sh
#GENFFTDIR = ${top_builddir}/genfft
#GEN_NOTW = ${GENFFTDIR}/gen_notw
#GEN_NOTW_C = ${GENFFTDIR}/gen_notw_c
#GEN_TWIDDLE = ${GENFFTDIR}/gen_twiddle
#GEN_TWIDDLE_C = ${GENFFTDIR}/gen_twiddle_c
#GEN_TWIDSQ = ${GENFFTDIR}/gen_twidsq
#GEN_TWIDSQ_C = ${GENFFTDIR}/gen_twidsq_c
#GEN_R2CF = ${GENFFTDIR}/gen_r2cf
#GEN_R2CB = ${GENFFTDIR}/gen_r2cb
#GEN_HC2HC = ${GENFFTDIR}/gen_hc2hc
#GEN_HC2C = ${GENFFTDIR}/gen_hc2c
#GEN_HC2CDFT = ${GENFFTDIR}/gen_hc2cdft
#GEN_HC2CDFT_C = ${GENFFTDIR}/gen_hc2cdft_c
#GEN_R2R = ${GENFFTDIR}/gen_r2r
#PRELUDE_DFT = ${top_srcdir}/support/codelet_prelude.dft
#PRELUDE_RDFT = ${top_srcdir}/support/codelet_prelude.rdft
#ADD_DATE = sed -e s/@DATE@/"`date`"/
#COPYRIGHT = ${top_srcdir}/COPYRIGHT
#CODELET_DEPS = $(COPYRIGHT) $(PRELUDE) 
#PRELUDE_COMMANDS_DFT = cat $(COPYRIGHT) $(PRELUDE_DFT)
#PRELUDE_COMMANDS_RDFT = cat $(COPYRIGHT) $(PRELUDE_RDFT)
#FLAGS_COMMON = -compact -variables 4
#DFT_FLAGS_COMMON = $(FLAGS_COMMON) -pipeline-latency 4
#RDFT_FLAGS_COMMON = $(FLAGS_COMMON) -pipeline-latency 4

# special rules for regenerating codelets.
#FLAGS_N = -standalone -fma -reorder-insns -simd -compact -variables 100000 -with-ostride 2 -include fftw-spu.h
#FLAGS_T = -standalone -fma -reorder-insns -simd -compact -variables 100000 -include fftw-spu.h -trivial-stores
#PRELUDE_COMMANDS = cat $(COPYRIGHT)
all: $(BUILT_SOURCES)
	$(MAKE) $(AM_MAKEFLAGS) all-am

.SUFFIXES:
.SUFFIXES: .o .spuc
$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(top_srcdir)/support/Makefile.codelets $(am__configure_deps)
	@for dep in $?; do \
	  case '$(am__configure_deps)' in \
	    *$$dep*) \
	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
	        && { if test -f $@; then exit 0; else break; fi; }; \
	      exit 1;; \
	  esac; \
	done; \
	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  cell/spu/Makefile'; \
	cd $(top_srcdir) && \
	  $(AUTOMAKE) --gnu  cell/spu/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
	@case '$?' in \
	  *config.status*) \
	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
	  *) \
	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
	esac;

$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh

$(top_srcdir)/configure: # $(am__configure_deps)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh

clean-noinstPROGRAMS:
	@list='$(noinst_PROGRAMS)'; for p in $$list; do \
	  f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
	  echo " rm -f $$p $$f"; \
	  rm -f $$p $$f ; \
	done
planner$(EXEEXT): $(planner_OBJECTS) $(planner_DEPENDENCIES) 
	@rm -f planner$(EXEEXT)
	$(planner_LINK) $(planner_OBJECTS) $(planner_LDADD) $(LIBS)
spufftw$(EXEEXT): $(spufftw_OBJECTS) $(spufftw_DEPENDENCIES) 
	@rm -f spufftw$(EXEEXT)
	$(spufftw_LINK) $(spufftw_OBJECTS) $(spufftw_LDADD) $(LIBS)

mostlyclean-compile:
	-rm -f *.$(OBJEXT)

distclean-compile:
	-rm -f *.tab.c

mostlyclean-libtool:
	-rm -f *.lo

clean-libtool:
	-rm -rf .libs _libs

ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
	unique=`for i in $$list; do \
	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
	  done | \
	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
	      END { if (nonempty) { for (i in files) print i; }; }'`; \
	mkid -fID $$unique
tags: TAGS

TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
		$(TAGS_FILES) $(LISP)
	tags=; \
	here=`pwd`; \
	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
	unique=`for i in $$list; do \
	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
	  done | \
	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
	      END { if (nonempty) { for (i in files) print i; }; }'`; \
	if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
	  test -n "$$unique" || unique=$$empty_fix; \
	  $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
	    $$tags $$unique; \
	fi
ctags: CTAGS
CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
		$(TAGS_FILES) $(LISP)
	tags=; \
	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
	unique=`for i in $$list; do \
	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
	  done | \
	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
	      END { if (nonempty) { for (i in files) print i; }; }'`; \
	test -z "$(CTAGS_ARGS)$$tags$$unique" \
	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
	     $$tags $$unique

GTAGS:
	here=`$(am__cd) $(top_builddir) && pwd` \
	  && cd $(top_srcdir) \
	  && gtags -i $(GTAGS_ARGS) $$here

distclean-tags:
	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags

distdir: $(DISTFILES)
	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
	list='$(DISTFILES)'; \
	  dist_files=`for file in $$list; do echo $$file; done | \
	  sed -e "s|^$$srcdirstrip/||;t" \
	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
	case $$dist_files in \
	  */*) $(MKDIR_P) `echo "$$dist_files" | \
			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
			   sort -u` ;; \
	esac; \
	for file in $$dist_files; do \
	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
	  if test -d $$d/$$file; then \
	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
	      cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
	    fi; \
	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
	  else \
	    test -f $(distdir)/$$file \
	    || cp -p $$d/$$file $(distdir)/$$file \
	    || exit 1; \
	  fi; \
	done
check-am: all-am
check: $(BUILT_SOURCES)
	$(MAKE) $(AM_MAKEFLAGS) check-am
all-am: Makefile $(PROGRAMS)
installdirs:
install: $(BUILT_SOURCES)
	$(MAKE) $(AM_MAKEFLAGS) install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am

install-am: all-am
	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am

installcheck: installcheck-am
install-strip:
	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
	  `test -z '$(STRIP)' || \
	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:

clean-generic:

distclean-generic:
	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)

maintainer-clean-generic:
	@echo "This command is intended for maintainers to use"
	@echo "it deletes files that may require special tools to rebuild."
	-test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
clean: clean-am

clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \
	mostlyclean-am

distclean: distclean-am
	-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
	distclean-tags

dvi: dvi-am

dvi-am:

html: html-am

info: info-am

info-am:

install-data-am:

install-dvi: install-dvi-am

install-exec-am:

install-html: install-html-am

install-info: install-info-am

install-man:

install-pdf: install-pdf-am

install-ps: install-ps-am

installcheck-am:

maintainer-clean: maintainer-clean-am
	-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic \
	maintainer-clean-local

mostlyclean: mostlyclean-am

mostlyclean-am: mostlyclean-compile mostlyclean-generic \
	mostlyclean-libtool

pdf: pdf-am

pdf-am:

ps: ps-am

ps-am:

uninstall-am:

.MAKE: install-am install-strip

.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
	clean-libtool clean-noinstPROGRAMS ctags distclean \
	distclean-compile distclean-generic distclean-libtool \
	distclean-tags distdir dvi dvi-am html html-am info info-am \
	install install-am install-data install-data-am install-dvi \
	install-dvi-am install-exec install-exec-am install-html \
	install-html-am install-info install-info-am install-man \
	install-pdf install-pdf-am install-ps install-ps-am \
	install-strip installcheck installcheck-am installdirs \
	maintainer-clean maintainer-clean-generic \
	maintainer-clean-local mostlyclean mostlyclean-compile \
	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
	tags uninstall uninstall-am


# use the silly suffix .spuc so that automake does not get 
# confused
.spuc.o:
	$(SPUCC) -xc $(SPUCFLAGS) -c -o $@ $<
$(spufftw_OBJECTS): $(HFILES) $(OTHERDEPS)

# rule to build codlist
$(CODLIST): Makefile
	(								\
	echo "#include \"ifftw.h\"";					\
	echo;								\
	for i in $(ALL_CODELETS) NIL; do				\
	   if test "$$i" != NIL; then					\
	     j=`basename $$i | sed -e 's/[.][cS]$$//g'`;		\
             echo "extern void X($(CODELET_NAME)$$j)(planner *);";	\
           fi								\
	done;								\
	echo;								\
	echo;								\
	echo "extern const solvtab $(SOLVTAB_NAME);";		        \
	echo "const solvtab $(SOLVTAB_NAME) = {";		        \
	for i in $(ALL_CODELETS) NIL; do				\
	   if test "$$i" != NIL; then					\
	     j=`basename $$i | sed -e 's/[.][cS]$$//g'`;		\
	     echo "   SOLVTAB(X($(CODELET_NAME)$$j)),";			\
	   fi								\
	done;								\
	echo "   SOLVTAB_END";						\
	echo "};";							\
	) >$@

# only delete codlist.c in maintainer-mode, since it is included in the dist
# FIXME: is there a way to delete in 'make clean' only when builddir != srcdir?
maintainer-clean-local:
	rm -f $(CODLIST)

# cancel the hideous builtin rules that cause an infinite loop
#%: %.o
#%: %.s
#%: %.c
#%: %.S

#spu_n1fv_%.spuc:  $(CODELET_DEPS) $(GEN_NOTW_C)
#	($(PRELUDE_COMMANDS); $(GEN_NOTW_C) $(FLAGS_N) -n $* -name "X(spu_n2fv_$*)") | $(ADD_DATE) | $(INDENT) >$@

#spu_n2fv_%.spuc:  $(CODELET_DEPS) $(GEN_NOTW_C)
#	($(PRELUDE_COMMANDS); $(GEN_NOTW_C) $(FLAGS_N) -store-multiple 2 -n $* -name "X(spu_n2fv_$*)") | $(ADD_DATE) | $(INDENT) >$@

#spu_t1fv_%.spuc:  $(CODELET_DEPS) $(GEN_TWIDDLE_C)
#	($(PRELUDE_COMMANDS); $(GEN_TWIDDLE_C) $(FLAGS_T) -n $* -name "X(spu_t1fv_$*)") | $(ADD_DATE) | $(INDENT) >$@
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
