# Makefile.in generated by automake 1.6.3 from Makefile.am.
# @configure_input@

# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
# 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.

@SET_MAKE@

# -*- Mode: Makefile -*-
#
# Makefile.am - automake file for Tcl interface to Redland
#
# $Id: Makefile.am,v 1.28 2003/08/28 15:20:12 cmdjb Exp $
#
# Copyright (C) 2000-2003 David Beckett - http://purl.org/net/dajobe/
# Institute for Learning and Research Technology - http://www.ilrt.org/
# University of Bristol - http://www.bristol.ac.uk/
# 
# This package is Free Software or Open Source available under the
# following licenses (these are alternatives):
#   1. GNU Lesser General Public License (LGPL)
#   2. GNU General Public License (GPL)
#   3. Mozilla Public License (MPL)
# 
# See LICENSE.html or LICENSE.txt at the top of this package for the
# full license terms.
# 
SHELL = @SHELL@

srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@

bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ..

ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@

am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_HEADER = $(INSTALL_DATA)
transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
host_alias = @host_alias@
host_triplet = @host@

EXEEXT = @EXEEXT@
OBJEXT = @OBJEXT@
PATH_SEPARATOR = @PATH_SEPARATOR@
AMTAR = @AMTAR@
AS = @AS@
AWK = @AWK@
CC = @CC@
CLIRUN = @CLIRUN@
CSCC = @CSCC@
CSHARPC = @CSHARPC@
DEPDIR = @DEPDIR@
DIGEST_OBJS = @DIGEST_OBJS@
DIGEST_SRCS = @DIGEST_SRCS@
DLLTOOL = @DLLTOOL@
ECHO = @ECHO@
HASH_OBJS = @HASH_OBJS@
HASH_SRCS = @HASH_SRCS@
ILRUN = @ILRUN@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
JAVA = @JAVA@
JAVAC = @JAVAC@
JAVA_VERSION = @JAVA_VERSION@
JDK_INCLUDES = @JDK_INCLUDES@
LIBRDF_CPPFLAGS = @LIBRDF_CPPFLAGS@
LIBRDF_INTERNAL_CPPFLAGS = @LIBRDF_INTERNAL_CPPFLAGS@
LIBRDF_INTERNAL_LIBS = @LIBRDF_INTERNAL_LIBS@
LIBRDF_LDFLAGS = @LIBRDF_LDFLAGS@
LIBRDF_LIBS = @LIBRDF_LIBS@
LIBRDF_LIBTOOL_VERSION = @LIBRDF_LIBTOOL_VERSION@
LIBRDF_VERSION = @LIBRDF_VERSION@
LIBRDF_VERSION_INFO = @LIBRDF_VERSION_INFO@
LIBRDF_VERSION_MAJOR = @LIBRDF_VERSION_MAJOR@
LIBRDF_VERSION_MINOR = @LIBRDF_VERSION_MINOR@
LIBRDF_VERSION_NUMBER = @LIBRDF_VERSION_NUMBER@
LIBRDF_VERSION_RELEASE = @LIBRDF_VERSION_RELEASE@
LIBTOOL = @LIBTOOL@
LIBWWW_CONFIG = @LIBWWW_CONFIG@
LN_S = @LN_S@
MAINT = @MAINT@
MCS = @MCS@
MEM = @MEM@
MEM_LIBS = @MEM_LIBS@
MONO = @MONO@
OBJDUMP = @OBJDUMP@
PACKAGE = @PACKAGE@
PARSER_OBJS = @PARSER_OBJS@
PARSER_SRCS = @PARSER_SRCS@
PERL = @PERL@
PERLINSTALLSITEARCH = @PERLINSTALLSITEARCH@
PERLMAN3DIR = @PERLMAN3DIR@
PERL_VERSION = @PERL_VERSION@
PHP = @PHP@
PHP_CONFIG = @PHP_CONFIG@
PHP_INCLUDES = @PHP_INCLUDES@
PHP_VERSION = @PHP_VERSION@
PYTHON = @PYTHON@
PYTHON_INCLUDES = @PYTHON_INCLUDES@
PYTHON_VERSION = @PYTHON_VERSION@
RANLIB = @RANLIB@
RUBY = @RUBY@
RUBY_INCLUDES = @RUBY_INCLUDES@
RUBY_VERSION = @RUBY_VERSION@
SD = @SD@
STANDARD_CFLAGS = @STANDARD_CFLAGS@
STRIP = @STRIP@
SWIG = @SWIG@
SWIG_PYTHON_ARGS = @SWIG_PYTHON_ARGS@
TAR = @TAR@

TCL = @TCL@
TCL_INCLUDES = @TCL_INCLUDES@
TCL_VERSION = @TCL_VERSION@
VERSION = @VERSION@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
am__include = @am__include@
am__quote = @am__quote@
install_sh = @install_sh@

RELEASE = @VERSION_RELEASE@

INCLUDES = -I$(top_srcdir)

TCL_PACKAGE = Redland

SWIG_OUTPUTS = $(TCL_PACKAGE)_wrap.c
SWIG_CRUFT = 

tclversion = @TCL_VERSION@
tclincs = @TCL_INCLUDES@
tcllib = -ltcl$(tclversion)

tcldir = $(shell echo 'puts $$tcl_library' | $(TCL))
tcl_DATA = Redland.so

EXTRA_DIST = test.tcl example.tcl \
$(SWIG_OUTPUTS)


CLEANFILES = *.db test-out.rdf core* \
$(TCL_PACKAGE)_wrap.lo $(TCL_PACKAGE)_wrap.o $(TCL_PACKAGE)-stamp \
$(TCL_PACKAGE).so $(TCL_PACKAGE).dylib \
pkgIndex.tcl

MAINTAINERCLEANFILES = $(SWIG_OUTPUTS) $(SWIG_CRUFT)
subdir = tcl
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/librdf/rdf_config.h
CONFIG_CLEAN_FILES =
DIST_SOURCES =
DATA = $(tcl_DATA)

DIST_COMMON = Makefile.am Makefile.in
all: all-am

.SUFFIXES:
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am  $(top_srcdir)/configure.ac $(ACLOCAL_M4)
	cd $(top_srcdir) && \
	  $(AUTOMAKE) --gnu  tcl/Makefile
Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in  $(top_builddir)/config.status
	cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)

mostlyclean-libtool:
	-rm -f *.lo

clean-libtool:
	-rm -rf .libs _libs

distclean-libtool:
	-rm -f libtool
uninstall-info-am:
tclDATA_INSTALL = $(INSTALL_DATA)
tags: TAGS
TAGS:

DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)

top_distdir = ..
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)

distdir: $(DISTFILES)
	@list='$(DISTFILES)'; for file in $$list; do \
	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
	  dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
	  if test "$$dir" != "$$file" && test "$$dir" != "."; then \
	    dir="/$$dir"; \
	    $(mkinstalldirs) "$(distdir)$$dir"; \
	  else \
	    dir=''; \
	  fi; \
	  if test -d $$d/$$file; then \
	    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
	$(MAKE) $(AM_MAKEFLAGS) check-local
check: check-am
all-am: Makefile $(DATA)

installdirs:
	$(mkinstalldirs) $(DESTDIR)$(tcldir)

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:
	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
	  INSTALL_STRIP_FLAG=-s \
	  `test -z '$(STRIP)' || \
	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:

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

distclean-generic:
	-rm -f Makefile $(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 "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
clean: clean-am

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

distclean: distclean-am

distclean-am: clean-am distclean-generic distclean-libtool

dvi: dvi-am

dvi-am:

info: info-am

info-am:

install-data-am: install-tclDATA

install-exec-am:

install-info: install-info-am

install-man:

installcheck-am:

maintainer-clean: maintainer-clean-am

maintainer-clean-am: distclean-am maintainer-clean-generic

mostlyclean: mostlyclean-am

mostlyclean-am: mostlyclean-generic mostlyclean-libtool

uninstall-am: uninstall-info-am uninstall-tclDATA

.PHONY: all all-am check check-am check-local clean clean-generic \
	clean-libtool distclean distclean-generic distclean-libtool \
	distdir dvi dvi-am info info-am install install-am install-data \
	install-data-am install-exec install-exec-am install-info \
	install-info-am install-man install-strip install-tclDATA \
	installcheck installcheck-am installdirs maintainer-clean \
	maintainer-clean-generic mostlyclean mostlyclean-generic \
	mostlyclean-libtool uninstall uninstall-am uninstall-info-am \
	uninstall-tclDATA


$(TCL_PACKAGE)_wrap.c: $(srcdir)/../Redland.i
	swig -v -tcl8 -module $(TCL_PACKAGE) -o $@ $<

$(TCL_PACKAGE)_wrap.so: $(TCL_PACKAGE)_wrap.c
	$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(STANDARD_CFLAGS) -fPIC -DPIC -I$(top_srcdir)/librdf $(tclincs) $(TCL_PACKAGE)_wrap.c -c -o $@

$(TCL_PACKAGE).so: $(TCL_PACKAGE)-stamp
$(TCL_PACKAGE)-stamp: $(TCL_PACKAGE)_wrap.so
	@if test `uname` = Darwin; then \
	  args=" -dynamiclib -flat_namespace -undefined suppress -compatibility_version 1 -current_version 1.0"; \
	else \
	  args=" -shared"; \
	fi; \
	echo $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) $$args $(TCL_PACKAGE)_wrap.so $(tcllib) `$(top_srcdir)/redland-src-config --libs` -o $(TCL_PACKAGE).so; \
	$(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) $$args $(TCL_PACKAGE)_wrap.so $(tcllib) `$(top_srcdir)/redland-src-config --libs` -o $(TCL_PACKAGE).so
	if test `uname` = Darwin; then \
	  $(INSTALL_PROGRAM) $(TCL_PACKAGE).so $(TCL_PACKAGE).dylib; \
	fi
	touch $(TCL_PACKAGE)-stamp

install-tclDATA: $(tcl_DATA)
	if test -r $(TCL_PACKAGE).dylib; then \
	  $(INSTALL_PROGRAM) $(TCL_PACKAGE).dylib $(DESTDIR)$(tcldir)/$(TCL_PACKAGE).dylib; \
	else \
	  $(INSTALL_PROGRAM) $(TCL_PACKAGE).so $(DESTDIR)$(tcldir)/$(TCL_PACKAGE).so; \
	fi

uninstall-tclDATA: $(tcl_DATA)
	if test -r $(TCL_PACKAGE).dylib; then \
	  rm -f $(DESTDIR)$(tcldir)/$(TCL_PACKAGE).dylib; \
	else \
	  rm -f $(DESTDIR)$(tcldir)/$(TCL_PACKAGE).so; \
	fi

pkgIndex.tcl: $(TCL_PACKAGE).so
	if test -r $(TCL_PACKAGE).dylib; then \
	  echo "pkg_mkIndex -verbose . $(TCL_PACKAGE).dylib" | $(TCL); \
	else \
	  echo "pkg_mkIndex -verbose . $(TCL_PACKAGE).so" | $(TCL); \
	fi

check-local: test-tcl

test-tcl: $(TCL_PACKAGE).so pkgIndex.tcl $(srcdir)/test.tcl
	$(TCL) $(srcdir)/test.tcl
# 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:
