# Makefile.in generated by automake 1.11.6 from Makefile.am.
# lib/kernel/tce/Makefile.  Generated from Makefile.in by configure.

# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 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.



# Process this file with automake to produce Makefile.in
# 
# Copyright (c) 2011 Universidad Rey Juan Carlos
# 
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# 
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
# 
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

# rules.mk - the make rules for building the kernel library
# 
# Copyright (c) 2013 Erik Schnetter
# 
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# 
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
# 
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

# The caller (the Makefile which includes this file) needs to set the
# following variables:
# 
# KERNEL_TARGET
# CLANG_FLAGS
# LLC_FLAGS
# LD_FLAGS

# sources.mk - a list of all kernel source files
# 
# Copyright (c) 2011-2013 Universidad Rey Juan Carlos
#                         Pekka Jääskeläinen / Tampere University of Technology
# 
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# 
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
# 
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.


am__make_dryrun = \
  { \
    am__dry=no; \
    case $$MAKEFLAGS in \
      *\\[\ \	]*) \
        echo 'am--echo: ; @echo "AM"  OK' | $(MAKE) -f - 2>/dev/null \
          | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
      *) \
        for am__flg in $$MAKEFLAGS; do \
          case $$am__flg in \
            *=*|--*) ;; \
            *n*) am__dry=yes; break;; \
          esac; \
        done;; \
    esac; \
    test $$am__dry = yes; \
  }
pkgdatadir = $(datadir)/pocl
pkgincludedir = $(includedir)/pocl
pkglibdir = $(libdir)/pocl
pkglibexecdir = $(libexecdir)/pocl
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 = x86_64-unknown-linux-gnu
host_triplet = x86_64-unknown-linux-gnu
target_triplet = x86_64-unknown-linux-gnu
DIST_COMMON = $(srcdir)/../rules.mk $(srcdir)/../sources.mk \
	$(srcdir)/Makefile.am $(srcdir)/Makefile.in
am__append_1 = printf.c
subdir = lib/kernel/tce
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_boost_base.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)/acinclude.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 =
CONFIG_CLEAN_VPATH_FILES =
AM_V_GEN = $(am__v_GEN_$(V))
am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
am__v_GEN_0 = @echo "  GEN   " $@;
AM_V_at = $(am__v_at_$(V))
am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
am__v_at_0 = @
SOURCES =
DIST_SOURCES =
am__can_run_installinfo = \
  case $$AM_UPDATE_INFO_DIR in \
    n|no|NO) false;; \
    *) (install-info --version) >/dev/null 2>&1;; \
  esac
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
    *) f=$$p;; \
  esac;
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
am__install_max = 40
am__nobase_strip_setup = \
  srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
am__nobase_strip = \
  for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
am__nobase_list = $(am__nobase_strip_setup); \
  for p in $$list; do echo "$$p $$p"; done | \
  sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
    if (++n[$$2] == $(am__install_max)) \
      { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
    END { for (dir in files) print dir, files[dir] }'
am__base_list = \
  sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
am__uninstall_files_from_dir = { \
  test -z "$$files" \
    || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
    || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
         $(am__cd) "$$dir" && rm -f $$files; }; \
  }
am__installdirs = "$(DESTDIR)$(pkgdatadir)"
DATA = $(nodist_pkgdata_DATA)
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = ${SHELL} /home/visit0r/src/pocl-public/config/missing --run aclocal-1.11
AMTAR = $${TAR-tar}
AM_DEFAULT_VERBOSITY = 1
AR = ar
AUTOCONF = ${SHELL} /home/visit0r/src/pocl-public/config/missing --run autoconf
AUTOHEADER = ${SHELL} /home/visit0r/src/pocl-public/config/missing --run autoheader
AUTOMAKE = ${SHELL} /home/visit0r/src/pocl-public/config/missing --run automake-1.11
AWK = gawk
BOOST_CPPFLAGS = -I/usr/include
BOOST_LDFLAGS = -L/usr/lib64
CC = ccache gcc-4.7
CCDEPMODE = depmode=gcc3
CFLAGS = -g -O2
CLANG = /home/visit0r/local/stow/llvm-3.5-opt-tce-patched/bin/clang
CLANGXX = /home/visit0r/local/stow/llvm-3.5-opt-tce-patched/bin/clang++
CLANGXX_FLAGS =  -DVML_NO_IOSTREAM
CLFLAGS =  -D__OPENCL_VERSION__=120
CPP = ccache gcc-4.7 -E
CPPFLAGS = 
CXX = ccache g++-4.7
CXXCPP = ccache g++-4.7 -E
CXXDEPMODE = depmode=gcc3
CXXFLAGS = -g -O3 -Wall -Wextra -Wno-long-long 
CYGPATH_W = echo
DEFS = -DHAVE_CONFIG_H
DEPDIR = .deps
DLLTOOL = false
DSYMUTIL = 
DUMPBIN = 
ECHO_C = 
ECHO_N = -n
ECHO_T = 
EGREP = /bin/grep -E
EXEEXT = 
FGREP = /bin/grep -F
FORCED_CLFLAGS = -Xclang -ffake-address-space-map -fno-math-errno -fblocks -fno-builtin -fasm -Wno-format
GLEW_CFLAGS = -I/usr/include/GL  
GLEW_LIBS = -lGLEW  
GREP = /bin/grep
HOST = x86_64-unknown-linux-gnu
HOST_AS_FLAGS = 
HOST_CLANG_FLAGS =  --target=x86_64-unknown-linux-gnu -march=penryn -D_CL_DISABLE_HALF
HOST_CPU = x86_64
HOST_LD_FLAGS = -shared -lm
HOST_LLC_FLAGS = -relocation-model=pic -mtriple=x86_64-unknown-linux-gnu -mcpu=penryn
HOST_SIZEOF_DOUBLE = 8
HOST_SIZEOF_HALF = 2
HOST_SIZEOF_LONG = 8
HOST_SIZEOF_VOID_P = 8
HWLOC_CFLAGS = -I/usr/include/libxml2  
HWLOC_LIBS = -lhwloc  
ICD_LD_FLAGS = -Wl,-Bsymbolic
INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
KERNEL_COMPILER_LIB_VERSION = 3:0:0
LD = /usr/bin/ld -m elf_x86_64
LDFLAGS = -L/home/visit0r/local/lib
LD_FLAGS_BIN =   -L/home/visit0r/local/stow/tce-trunk-llvm-3.5/lib -ltce
LIBOBJS = 
LIBRARY_SUFFIX = .so
LIBS = 
LIBSPE_CFLAGS = 
LIBSPE_LIBS = 
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LIB_AGE_VERSION = 3
LIB_CURRENT_VERSION = 4
LIB_FIRST_VERSION = 1
LIB_REVISION_VERSION = 0
LIB_VERSION = 4:0:3
LIPO = 
LLC = /home/visit0r/local/stow/llvm-3.5-opt-tce-patched/bin/llc
LLVM_AS = /home/visit0r/local/stow/llvm-3.5-opt-tce-patched/bin/llvm-as
LLVM_CONFIG = /home/visit0r/local/bin/llvm-config
LLVM_CXX_FLAGS = -I/home/visit0r/local/stow/llvm-3.5-opt-tce-patched/include  -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -fomit-frame-pointer -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fPIC -Woverloaded-virtual -ffunction-sections -fdata-sections -Wcast-qual -fno-rtti
LLVM_LDFLAGS = -L/home/visit0r/local/stow/llvm-3.5-opt-tce-patched/lib  -lz -lpthread -ledit -ltinfo -lrt -ldl -lm 
LLVM_LIBS = -lLLVM-3.5.0
LLVM_LINK = /home/visit0r/local/stow/llvm-3.5-opt-tce-patched/bin/llvm-link
LLVM_OPT = /home/visit0r/local/stow/llvm-3.5-opt-tce-patched/bin/opt
LLVM_VERSION = 3.5.0
LN_S = ln -s
LTDL_LIBS = -lltdl 
LTLIBOBJS = 
MAKEINFO = ${SHELL} /home/visit0r/src/pocl-public/config/missing --run makeinfo
MANIFEST_TOOL = :
MKDIR_P = /bin/mkdir -p
NM = /usr/bin/nm -B
NMEDIT = 
OBJDUMP = objdump
OBJEXT = o
OCL_ICD_CFLAGS = 
OCL_ICD_LIBS = 
OCL_KERNEL_ARCH = 
OCL_KERNEL_TARGET = x86_64-unknown-linux-gnu
OCL_KERNEL_TARGET_CPU = penryn
OCL_TARGETS = host tce
OPENCL_CFLAGS = 
OPENCL_CMAKE = 
OPENCL_EXTLIBS = -lOpenCL
OPENCL_LIBS = -lOpenCL
OPT = /home/visit0r/local/stow/llvm-3.5-opt-tce-patched/bin/opt
OTOOL = 
OTOOL64 = 
PACKAGE = pocl
PACKAGE_BUGREPORT = pocl-devel@lists.sourceforge.net
PACKAGE_NAME = pocl
PACKAGE_STRING = pocl 0.10
PACKAGE_TARNAME = pocl
PACKAGE_URL = 
PACKAGE_VERSION = 0.10
PATH_SEPARATOR = :
PKG_CONFIG = /usr/bin/pkg-config
PKG_CONFIG_LIBDIR = 
PKG_CONFIG_PATH = :/home/visit0r/local/lib/pkgconfig:/home/visit0r/local/lib/pkgconfig:/home/visit0r/local/lib/pkgconfig
POAT_TESTSUITES =  viennacl rodinia parboil amd amdsdk2_9 piglit
POCL_DEVICE_ADDRESS_BITS = 64
PTHREAD_CC = ccache gcc-4.7
PTHREAD_CFLAGS = -pthread
PTHREAD_LIBS = 
RANLIB = ranlib
SDL_CFLAGS = -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL  
SDL_LIBS = -lSDL  
SED = /bin/sed
SET_MAKE = 
SHELL = /bin/bash
STRIP = strip
TARGET = x86_64-unknown-linux-gnu
TARGET_CLANG_FLAGS = 
TARGET_CPU = x86_64
TARGET_LLC_FLAGS = 
TARGET_SIZEOF_DOUBLE = 8
TARGET_SIZEOF_HALF = 2
TARGET_SIZEOF_LONG = 8
TARGET_SIZEOF_VOID_P = 8
TCECC = /home/visit0r/local/bin/tcecc
TCEMC_AVAILABLE = 1
TCE_AVAILABLE = 1
TCE_CONFIG = /home/visit0r/local/bin/tce-config
VERSION = 0.10
abs_builddir = /home/visit0r/src/pocl-public/lib/kernel/tce
abs_srcdir = /home/visit0r/src/pocl-public/lib/kernel/tce
abs_top_builddir = /home/visit0r/src/pocl-public
abs_top_srcdir = /home/visit0r/src/pocl-public
ac_ct_AR = ar
ac_ct_CC = ccache gcc-4.7
ac_ct_CXX = 
ac_ct_DUMPBIN = 
acx_pthread_config = 
am__include = include
am__leading_dot = .
am__quote = 
am__tar = $${TAR-tar} chof - "$$tardir"
am__untar = $${TAR-tar} xf -
bindir = ${exec_prefix}/bin
build = x86_64-unknown-linux-gnu
build_alias = 
build_cpu = x86_64
build_os = linux-gnu
build_vendor = unknown
builddir = .
datadir = ${datarootdir}
datarootdir = ${prefix}/share
docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
dvidir = ${docdir}
exec_prefix = ${prefix}
host = x86_64-unknown-linux-gnu
host_alias = 
host_cpu = x86_64
host_os = linux-gnu
host_vendor = unknown
htmldir = ${docdir}
includedir = ${prefix}/include
infodir = ${datarootdir}/info
install_sh = ${SHELL} /home/visit0r/src/pocl-public/config/install-sh
libdir = ${exec_prefix}/lib
libexecdir = ${exec_prefix}/libexec
localedir = ${datarootdir}/locale
localstatedir = ${prefix}/var
mandir = ${datarootdir}/man
mkdir_p = /bin/mkdir -p
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 = /etc
target = x86_64-unknown-linux-gnu
target_alias = 
target_cpu = x86_64
target_os = linux-gnu
target_vendor = unknown
top_build_prefix = ../../../
top_builddir = ../../..
top_srcdir = ../../..
KERNEL_TARGET = tce-tut-llvm

# Use TARGET flags:
CLANG_FLAGS =  -Xclang -ffake-address-space-map -Xclang -menable-no-nans -emit-llvm -ffp-contract=off -target tce-tut-llvm  -isystem `tce-config --prefix`/tce-llvm/include
LLC_FLAGS = 
LD_FLAGS = @TARGET_LD_FLAGS@
KERNEL_BC = kernel-${KERNEL_TARGET}.bc
nodist_pkgdata_DATA = ${KERNEL_BC}

# The standard list of kernel sources can be modified with
# LKERNEL_SRCS_EXCLUDE, which removes files from the standard list,
# and LKERNEL_SRCS_EXTRA, which adds extra files to the source list.
LKERNEL_SRCS = \
	$(filter-out ${LKERNEL_SRCS_EXCLUDE}, ${LKERNEL_SRCS_DEFAULT})	\
	${LKERNEL_SRCS_EXTRA}

OBJ = $(LKERNEL_SRCS:%=%.bc)
CLEANFILES = kernel-${KERNEL_TARGET}.bc ${OBJ}
LKERNEL_HDRS = image.h pocl_image_rw_utils.h templates.h
LKERNEL_SRCS_DEFAULT = abs.cl abs_diff.cl acos.cl acosh.cl acospi.cl \
	add_sat.cl all.cl any.cl as_type.cl asin.cl asinh.cl asinpi.cl \
	async_work_group_copy.cl atan.cl atan2.cl atan2pi.cl atanh.cl \
	atanpi.cl atomics.cl barrier.ll bitselect.cl cbrt.cl ceil.cl \
	clamp.cl clamp_int.cl clz.cl convert_type.cl copysign.cl \
	cos.cl cosh.cl cospi.cl cross.cl degrees.cl distance.cl \
	divide.cl dot.cl erf.cl erfc.cl exp.cl exp10.cl exp2.cl \
	expm1.cl fabs.cl fast_distance.cl fast_length.cl \
	fast_normalize.cl fdim.cl floor.cl fma.cl fmax.cl fmin.cl \
	fmod.cl fract.cl get_global_id.c get_global_offset.c \
	get_global_size.c get_group_id.c get_image_depth.cl \
	get_image_height.cl get_image_width.cl get_local_id.c \
	get_local_size.c get_num_groups.c get_work_dim.c hadd.cl \
	hypot.cl ilogb.cl isequal.cl isfinite.cl isgreater.cl \
	isgreaterequal.cl isinf.cl isless.cl islessequal.cl \
	islessgreater.cl isnan.cl isnormal.cl isnotequal.cl \
	isordered.cl isunordered.cl ldexp.cl length.cl lgamma.cl \
	log.cl log10.cl log1p.cl log2.cl logb.cl mad.cl mad24.cl \
	mad_hi.cl mad_sat.cl max.cl max_i.cl maxmag.cl min.cl min_i.cl \
	minmag.cl mix.cl mul24.cl mul_hi.cl nan.cl native_cos.cl \
	native_log2.cl nextafter.cl normalize.cl popcount.cl pow.cl \
	pown.cl powr.cl radians.cl read_image.cl recip.cl remainder.cl \
	rhadd.cl rint.cl rootn.cl rotate.cl round.cl rsqrt.cl \
	select.cl shuffle.cl sign.cl signbit.cl sin.cl sincos.cl \
	sinh.cl sinpi.cl smoothstep.cl sqrt.cl step.cl sub_sat.cl \
	tan.cl tanh.cl tanpi.cl tgamma.cl trunc.cl upsample.cl \
	vload.cl vload_half.cl vstore.cl vstore_half.cl \
	wait_group_events.cl write_image.cl $(am__append_1)

# Use the libc (newlib) printf() for now because the pocl's
# fails in TCE code gen:
# SplitVectorResult #0: 0x24c5ae0: v8i16,ch = vaarg 0x20628e8, 0x2423ed0, 0x24c59e0, 0x24c4fe0 [ORD=223] [ID=0]
# LLVM ERROR: Do not know how to split the result of this operator!
LKERNEL_SRCS_EXCLUDE = printf.c 
LKERNEL_SRCS_EXTRA = printf_constant.c
all: all-am

.SUFFIXES:
$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am $(srcdir)/../rules.mk $(srcdir)/../sources.mk $(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) --foreign lib/kernel/tce/Makefile'; \
	$(am__cd) $(top_srcdir) && \
	  $(AUTOMAKE) --foreign lib/kernel/tce/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;
$(srcdir)/../rules.mk $(srcdir)/../sources.mk:

$(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
$(am__aclocal_m4_deps):

mostlyclean-libtool:
	-rm -f *.lo

clean-libtool:
	-rm -rf .libs _libs
install-nodist_pkgdataDATA: $(nodist_pkgdata_DATA)
	@$(NORMAL_INSTALL)
	@list='$(nodist_pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \
	if test -n "$$list"; then \
	  echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)'"; \
	  $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" || exit 1; \
	fi; \
	for p in $$list; do \
	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
	  echo "$$d$$p"; \
	done | $(am__base_list) | \
	while read files; do \
	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgdatadir)'"; \
	  $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgdatadir)" || exit $$?; \
	done

uninstall-nodist_pkgdataDATA:
	@$(NORMAL_UNINSTALL)
	@list='$(nodist_pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \
	files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
	dir='$(DESTDIR)$(pkgdatadir)'; $(am__uninstall_files_from_dir)
tags: TAGS
TAGS:

ctags: CTAGS
CTAGS:


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 "$(distdir)/$$file"; then \
	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
	    fi; \
	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
	    fi; \
	    cp -fpR $$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: check-am
all-am: Makefile $(DATA)
installdirs:
	for dir in "$(DESTDIR)$(pkgdatadir)"; do \
	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
	done
install: 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:
	if test -z '$(STRIP)'; then \
	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
	      install; \
	else \
	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
	fi
mostlyclean-generic:

clean-generic:
	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)

distclean-generic:
	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)

maintainer-clean-generic:
	@echo "This command is intended for maintainers to use"
	@echo "it deletes files that may require special tools to rebuild."
clean: clean-am

clean-am: clean-generic clean-libtool mostlyclean-am

distclean: distclean-am
	-rm -f Makefile
distclean-am: clean-am distclean-generic

dvi: dvi-am

dvi-am:

html: html-am

html-am:

info: info-am

info-am:

install-data-am: install-nodist_pkgdataDATA

install-dvi: install-dvi-am

install-dvi-am:

install-exec-am:

install-html: install-html-am

install-html-am:

install-info: install-info-am

install-info-am:

install-man:

install-pdf: install-pdf-am

install-pdf-am:

install-ps: install-ps-am

install-ps-am:

installcheck-am:

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

mostlyclean: mostlyclean-am

mostlyclean-am: mostlyclean-generic mostlyclean-libtool

pdf: pdf-am

pdf-am:

ps: ps-am

ps-am:

uninstall-am: uninstall-nodist_pkgdataDATA

.MAKE: install-am install-strip

.PHONY: all all-am check check-am clean clean-generic clean-libtool \
	distclean distclean-generic distclean-libtool 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-nodist_pkgdataDATA install-pdf install-pdf-am \
	install-ps install-ps-am install-strip installcheck \
	installcheck-am installdirs maintainer-clean \
	maintainer-clean-generic mostlyclean mostlyclean-generic \
	mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
	uninstall-nodist_pkgdataDATA


all: ${KERNEL_BC}

vpath %.c  ../../../lib/kernel
vpath %.cc ../../../lib/kernel
vpath %.cl ../../../lib/kernel
vpath %.ll ../../../lib/kernel

# Generate a precompiled header for the built-in function
# declarations, in case supported by the target.

# Note: the precompiled header must be compiled with the same features
# as the kernels will be. That is, use exactly the same frontend
# feature switches. Otherwise it will fail when compiling the kernel
# against the precompiled header.
_kernel.h.pch: ../../../include/${TARGET_DIR}/types.h ../../../include/_kernel.h
	/home/visit0r/local/stow/llvm-3.5-opt-tce-patched/bin/clang -Xclang -ffake-address-space-map -fno-math-errno -fblocks -fno-builtin -fasm -Wno-format  -D__OPENCL_VERSION__=120 -Xclang -ffake-address-space-map -c -target ${KERNEL_TARGET} -x cl \
	-include ../../../include/${TARGET_DIR}/types.h \
	-Xclang -emit-pch ../../../include/_kernel.h -o _kernel.h.pch 

# Rules to compile the different kernel library source file types into
# LLVM bitcode
%.c.bc: %.c ${abs_top_srcdir}/include/pocl_types.h ${abs_top_srcdir}/include/pocl_features.h ${abs_top_srcdir}/include/_kernel_c.h ${LKERNEL_HDRS_EXTRA}
	mkdir -p ${dir $@}
	/home/visit0r/local/stow/llvm-3.5-opt-tce-patched/bin/clang ${CLANG_FLAGS} ${CLFLAGS} -D__CBUILD__ -c -o $@ -include ${abs_top_srcdir}/include/_kernel_c.h $< 
%.cc.bc: %.cc ${abs_top_srcdir}/include/pocl_features.h ${LKERNEL_HDRS_EXTRA}
	mkdir -p ${dir $@}
	/home/visit0r/local/stow/llvm-3.5-opt-tce-patched/bin/clang++ ${CLANG_FLAGS} ${CLANGXX_FLAGS} -c -o $@ $< -include ${abs_top_srcdir}/include/pocl_features.h
%.cl.bc: %.cl ${abs_top_srcdir}/include/_kernel.h ${abs_top_srcdir}/include/_kernel_c.h ${abs_top_srcdir}/include/pocl_types.h ${abs_top_srcdir}/include/pocl_features.h ${LKERNEL_HDRS_EXTRA}
	mkdir -p ${dir $@}
	/home/visit0r/local/stow/llvm-3.5-opt-tce-patched/bin/clang ${CLANG_FLAGS} -x cl ${CLFLAGS} -fsigned-char -c -o $@ $< -include ${abs_top_srcdir}/include/_kernel.h
%.ll.bc: %.ll
	mkdir -p ${dir $@}
	/home/visit0r/local/stow/llvm-3.5-opt-tce-patched/bin/llvm-as -o $@ $<

# Optimize the bitcode library to speed up optimization times for the
# OpenCL kernels
${KERNEL_BC}: ${OBJ}
	/home/visit0r/local/stow/llvm-3.5-opt-tce-patched/bin/llvm-link $^ -o - | /home/visit0r/local/stow/llvm-3.5-opt-tce-patched/bin/opt ${LLC_FLAGS} ${KERNEL_LIB_OPT_FLAGS} -O3 -fp-contract=off -o $@

# vim: set noexpandtab ts=8:

# 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:
