# Makefile.in generated by automake 1.11.1 from Makefile.am.
# src/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  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.



#*********************************************************************#
#                                                                     #
#                             Active-DVI                              #
#                                                                     #
#                   Projet Cristal, INRIA Rocquencourt                #
#                                                                     #
#  Copyright 2002-2004,                                               #
#  Institut National de Recherche en Informatique et en Automatique.  #
#  All rights reserved. This file is distributed under the terms of   #
#  the GNU Lesser General Public License.                             #
#                                                                     #
#  Jun Furuse, Didier Rémy and Pierre Weis.                           #
#  Contributions by Roberto Di Cosmo, Didier Le Botlan,               #
#  Xavier Leroy, and Alan Schmitt.                                    #
#                                                                     #
#  Based on Mldvi by Alexandre Miquel.                                #
#*********************************************************************#

# $Id: Makefile.am,v 1.18 2011-08-04 13:25:59 remy Exp $



pkgdatadir = $(datadir)/advi
pkgincludedir = $(includedir)/advi
pkglibdir = $(libdir)/advi
pkglibexecdir = $(libexecdir)/advi
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 = :
bin_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2)
am__append_1 = advi
am__append_2 = dlladvi.so
am__append_3 = advi.byt
subdir = src
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/ocaml.m4 \
	$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
	$(ACLOCAL_M4)
mkinstalldirs = $(install_sh) -d
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
am__EXEEXT_1 = advi$(EXEEXT)
am__EXEEXT_2 = advi.byt$(EXEEXT)
am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(stubdir)"
PROGRAMS = $(bin_PROGRAMS)
am__objects_1 =
am__objects_2 = events.$(OBJEXT) grwm.$(OBJEXT) grY11.$(OBJEXT)
am_advi_OBJECTS = $(am__objects_1) $(am__objects_1) $(am__objects_2) \
	$(am__objects_1)
advi_OBJECTS = $(am_advi_OBJECTS)
advi_LDADD = $(LDADD)
am_advi_byt_OBJECTS = $(am__objects_1) $(am__objects_1) \
	$(am__objects_2) $(am__objects_1)
advi_byt_OBJECTS = $(am_advi_byt_OBJECTS)
advi_byt_LDADD = $(LDADD)
DEFAULT_INCLUDES = -I.
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__depfiles_maybe = depfiles
am__mv = mv -f
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
SOURCES = $(advi_SOURCES) $(advi_byt_SOURCES)
DIST_SOURCES = $(advi_SOURCES) $(advi_byt_SOURCES)
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'
DATA = $(stub_DATA)
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = ${SHELL} /Users/remy/src/ocaml/bazar-ocaml/advi/missing --run aclocal-1.11
AMTAR = ${SHELL} /Users/remy/src/ocaml/bazar-ocaml/advi/missing --run tar
AUTOCONF = ${SHELL} /Users/remy/src/ocaml/bazar-ocaml/advi/missing --run autoconf
AUTOHEADER = ${SHELL} /Users/remy/src/ocaml/bazar-ocaml/advi/missing --run autoheader
AUTOMAKE = ${SHELL} /Users/remy/src/ocaml/bazar-ocaml/advi/missing --run automake-1.11
AWK = gawk
BUILD_DATE = 2020-09-03
BUILD_YEAR = 2020
CAMLIMAGES_CCLIBS = \
  -cclib -lfreetype 
CAMLIMAGES_INCLUDES = \
  -I /Users/remy/.opam/410/lib/camlimages/core \
  -I /Users/remy/.opam/410/lib/camlimages/freetype \
  -I /Users/remy/.opam/410/lib/camlimages \
  -I /Users/remy/.opam/410/lib/graphics
CAMLIMAGES_LIBS_BYTE = \
  /Users/remy/.opam/410/lib/camlimages/core/camlimages.cma \
  /Users/remy/.opam/410/lib/camlimages/freetype/camlimages_freetype.cma \
  /Users/remy/.opam/410/lib/graphics/graphics.cma

CAMLIMAGES_LIBS_NATIVE = \
  /Users/remy/.opam/410/lib/camlimages/core/camlimages.cmxa \
  /Users/remy/.opam/410/lib/camlimages/freetype/camlimages_freetype.cmxa \
  /Users/remy/.opam/410/lib/graphics/graphics.cmxa
CAMLIMAGES_LPATH = \
  -L/Users/remy/.opam/410/lib/camlimages/core \
  -L/Users/remy/.opam/410/lib/camlimages/freetype \
  -L/Users/remy/.opam/410/lib/graphics 
# CAMLIMAGES_MKLIBS = -lcamlimages_freetype
CC = gcc
CCDEPMODE = depmode=gcc3
CFLAGS = -g -O2
CONVERT = /opt/local/bin/convert
CPP = gcc -E
CPPFLAGS = 
CYGPATH_W = echo
DEFS = -DPACKAGE_NAME=\"advi\" -DPACKAGE_TARNAME=\"advi\" -DPACKAGE_VERSION=\"1.10.2\" -DPACKAGE_STRING=\"advi\ 1.10.2\" -DPACKAGE_BUGREPORT=\"Didier.Remy@inria.fr\" -DPACKAGE_URL=\"\" -DPACKAGE=\"advi\" -DVERSION=\"1.10.2\" -DX_DISPLAY_MISSING=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
DEPDIR = .deps
DVIPDFM = /opt/local/bin/dvipdfm
DVIPS = /opt/local/bin/dvips
ECHO_C = \c
ECHO_N = 
ECHO_T = 
EGREP = /usr/bin/grep -E
EXEEXT = 
GREP = /usr/bin/grep
GS = /opt/local/bin/gs
HACHA = /Users/remy/.opam/410/bin/hacha
HAVE_CAMLIMAGES = true
HAVE_GS = true
HAVE_XINERAMA = false
HEVEA = /Users/remy/.opam/410/bin/hevea
INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
KPSEXPAND = /opt/local/bin/kpsexpand
LATEX = /opt/local/bin/latex
LDFLAGS = 
LIBOBJS = 
LIBS = 
LTLIBOBJS = 
MAINT = #
MAKEINDEX = /opt/local/bin/makeindex
MAKEINFO = ${SHELL} /Users/remy/src/ocaml/bazar-ocaml/advi/missing --run makeinfo
MKDIR_P = .././install-sh -c -d
MONTAGE = /opt/local/bin/montage
OBJEXT = o
OCAMLC = /Users/remy/.opam/410/bin/ocamlc.opt
OCAMLCFLAGS = 
OCAMLC_OPT = /Users/remy/.opam/410/bin/ocamlc.opt
OCAMLDEP = /Users/remy/.opam/410/bin/ocamldep.opt
OCAMLDEP_OPT = /Users/remy/.opam/410/bin/ocamldep.opt
OCAMLFIND = /Users/remy/.opam/410/bin/ocamlfind
OCAMLLIB = /Users/remy/.opam/410/lib/ocaml
OCAMLMKLIB = /Users/remy/.opam/410/bin/ocamlmklib
OCAMLOPT = /Users/remy/.opam/410/bin/ocamlopt.opt
OCAMLOPT_OPT = /Users/remy/.opam/410/bin/ocamlopt.opt
OCAMLVERSION = 4.10.0
PACKAGE = advi
PACKAGE_BUGREPORT = Didier.Remy@inria.fr
PACKAGE_NAME = advi
PACKAGE_STRING = advi 1.10.2
PACKAGE_TARNAME = advi
PACKAGE_URL = 
PACKAGE_VERSION = 1.10.2
PATH_SEPARATOR = :
SET_MAKE = 
SHELL = /bin/sh
STRIP = 
VERSION = 1.10.2
XINERAMA_CCLIB = 
XINERAMA_CFLAGS = 
XINERAMA_MKLIB = 
XMKMF = 
X_CFLAGS = 
X_EXTRA_LIBS = 
X_LIBS = 
X_PRE_LIBS = 
abs_builddir = /Users/remy/src/ocaml/bazar-ocaml/advi/src
abs_srcdir = /Users/remy/src/ocaml/bazar-ocaml/advi/src
abs_top_builddir = /Users/remy/src/ocaml/bazar-ocaml/advi
abs_top_srcdir = /Users/remy/src/ocaml/bazar-ocaml/advi
ac_ct_CC = gcc
am__include = include
am__leading_dot = .
am__quote = 
am__tar = ${AMTAR} chof - "$$tardir"
am__untar = ${AMTAR} xf -
bindir = ${exec_prefix}/bin
build_alias = 
builddir = .
datadir = ${datarootdir}
datarootdir = ${prefix}/share
docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
dvidir = ${docdir}
exec_prefix = ${prefix}
host_alias = 
htmldir = ${docdir}
includedir = ${prefix}/include
infodir = ${datarootdir}/info
install_sh = ${SHELL} /Users/remy/src/ocaml/bazar-ocaml/advi/install-sh
latexdir = ${datadir}/texmf-texlive/tex/latex
libdir = ${exec_prefix}/lib
libexecdir = ${exec_prefix}/libexec
localedir = ${datarootdir}/locale
localstatedir = ${prefix}/var
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 = ..
stubdir = /Users/remy/.opam/410/lib/ocaml/stublibs
stub_DATA = $(am__append_2)
OCAMLBUILTSOURCES = config.ml
OCAMLSOURCES =  \
	       graphic_image.ml \
	       misc.ml timeout.ml ageometry.ml \
	       options.ml rc.ml userfile.ml \
	       graphicsY11.ml global_options.ml busy.ml gradient.ml gterm.ml \
	       launch.ml dvicolor.ml shot.ml laser_pointer.ml \
	       symbol.ml \
	       input.ml table.ml pkfont.ml ttfont.ml jfm.ml search.ml \
	       font.ml glyph.ml devfont.ml adviUnits.ml dimension.ml dvi.ml \
	       drawimage.ml gs.ml transimpl.ml embed.ml grdev.ml addons.ml \
	       scratch.ml cdvi.ml driver.ml thumbnails.ml dviview.ml main.ml

OCAMLINTERFACES = \
		  graphic_image.mli \
		  misc.mli timeout.mli ageometry.mli \
		  options.mli rc.mli userfile.mli \
		  graphicsY11.mli global_options.mli busy.mli gradient.mli \
		  gterm.mli \
		  launch.mli dvicolor.mli shot.mli laser_pointer.mli \
		  symbol.mli \
		  input.mli table.mli pkfont.mli ttfont.mli jfm.mli \
		  search.mli \
		  font.mli glyph.mli devfont.mli adviUnits.mli dimension.mli \
		  dvi.mli dvicommands.mli \
		  drawimage.mli gs.mli transitions.mli embed.mli grdev.mli \
		  addons.mli \
		  scratch.mli cdvi.mli driver.mli thumbnails.mli dviview.mli

CSOURCES = events.c grwm.c grY11.c
CHEADERS = grwm.h image.h libgraph.h
advi_SOURCES = $(OCAMLSOURCES) $(OCAMLINTERFACES) $(CSOURCES) $(CHEADERS)
advi_byt_SOURCES = $(OCAMLSOURCES) $(OCAMLINTERFACES) $(CSOURCES) $(CHEADERS)
BUILT_SOURCES = $(OCAMLBUILTSOURCES)
EXTRA_DIST = config.ml.in
CLEANFILES = $(OCAMLBYTOBJS) \
	     $(OCAMLOPTOBJS) \
	     $(OCAMLOPTOBJS:.cmx=.o) \
	     $(OCAMLBUILTSOURCES:.ml=.cmi) \
	     $(OCAMLSOURCES:.ml=.cmi) \
	     dvicommands.cmi \
	     transitions.cmi \
	     $(COBJS) \
	     config.ml \
	     .depend

OCAMLBYTOBJS = $(OCAMLBUILTSOURCES:.ml=.cmo) $(OCAMLSOURCES:.ml=.cmo)
OCAMLOPTOBJS = $(OCAMLBUILTSOURCES:.ml=.cmx) $(OCAMLSOURCES:.ml=.cmx)
COBJS = $(CSOURCES:.c=.o)
AM_CFLAGS = $(XINERAMA_CFLAGS) $(X_CFLAGS)
AM_OCAMLCFLAGS = $(CAMLIMAGES_INCLUDES)
OTHER_LIBS = unix str 
OCAMLLIBS_OPT = $(CAMLIMAGES_LIBS_NATIVE) $(OTHER_LIBS:=.cmxa)
OCAMLLIBS_BYT = $(CAMLIMAGES_LIBS_BYTE) $(OTHER_LIBS:=.cma)

# In bytecode mode create stubcode in dlladvi
DLLADVI = dlladvi.so
SUFFIXES = .ml .mli .cmo .cmi .cmx .c .o
all: $(BUILT_SOURCES)
	$(MAKE) $(AM_MAKEFLAGS) all-am

.SUFFIXES:
.SUFFIXES: .ml .mli .cmo .cmi .cmx .c .o .obj
$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am  $(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 src/Makefile'; \
	$(am__cd) $(top_srcdir) && \
	  $(AUTOMAKE) --foreign src/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
$(am__aclocal_m4_deps):
install-binPROGRAMS: $(bin_PROGRAMS)
	@$(NORMAL_INSTALL)
	test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
	@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
	for p in $$list; do echo "$$p $$p"; done | \
	sed 's/$(EXEEXT)$$//' | \
	while read p p1; do if test -f $$p; \
	  then echo "$$p"; echo "$$p"; else :; fi; \
	done | \
	sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
	    -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
	sed 'N;N;N;s,\n, ,g' | \
	$(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
	  { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
	    if ($$2 == $$4) files[d] = files[d] " " $$1; \
	    else { print "f", $$3 "/" $$4, $$1; } } \
	  END { for (d in files) print "f", d, files[d] }' | \
	while read type dir files; do \
	    if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
	    test -z "$$files" || { \
	      echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
	      $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
	    } \
	; done

uninstall-binPROGRAMS:
	@$(NORMAL_UNINSTALL)
	@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
	files=`for p in $$list; do echo "$$p"; done | \
	  sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
	      -e 's/$$/$(EXEEXT)/' `; \
	test -n "$$list" || exit 0; \
	echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
	cd "$(DESTDIR)$(bindir)" && rm -f $$files

clean-binPROGRAMS:
	-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)

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

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

# include ./$(DEPDIR)/events.Po
# include ./$(DEPDIR)/grY11.Po
# include ./$(DEPDIR)/grwm.Po

.c.obj:
	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
	$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
#	source='$<' object='$@' libtool=no \
#	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
#	$(COMPILE) -c `$(CYGPATH_W) '$<'`
install-stubDATA: $(stub_DATA)
	@$(NORMAL_INSTALL)
	test -z "$(stubdir)" || $(MKDIR_P) "$(DESTDIR)$(stubdir)"
	@list='$(stub_DATA)'; test -n "$(stubdir)" || list=; \
	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)$(stubdir)'"; \
	  $(INSTALL_DATA) $$files "$(DESTDIR)$(stubdir)" || exit $$?; \
	done

uninstall-stubDATA:
	@$(NORMAL_UNINSTALL)
	@list='$(stub_DATA)'; test -n "$(stubdir)" || list=; \
	files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
	test -n "$$files" || exit 0; \
	echo " ( cd '$(DESTDIR)$(stubdir)' && rm -f" $$files ")"; \
	cd "$(DESTDIR)$(stubdir)" && rm -f $$files

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)
	set x; \
	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; }; }'`; \
	shift; \
	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
	  test -n "$$unique" || unique=$$empty_fix; \
	  if test $$# -gt 0; then \
	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
	      "$$@" $$unique; \
	  else \
	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
	      $$unique; \
	  fi; \
	fi
ctags: CTAGS
CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
		$(TAGS_FILES) $(LISP)
	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)$$unique" \
	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
	     $$unique

GTAGS:
	here=`$(am__cd) $(top_builddir) && pwd` \
	  && $(am__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 "$(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: $(BUILT_SOURCES)
	$(MAKE) $(AM_MAKEFLAGS) check-am
all-am: Makefile $(PROGRAMS) $(DATA)
installdirs:
	for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(stubdir)"; do \
	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
	done
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:
	-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."
	-test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
clean: clean-am

clean-am: clean-binPROGRAMS clean-generic mostlyclean-am

distclean: distclean-am
	-rm -rf ./$(DEPDIR)
	-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
	distclean-tags

dvi: dvi-am

dvi-am:

html: html-am

html-am:

info: info-am

info-am:

install-data-am: install-stubDATA

install-dvi: install-dvi-am

install-dvi-am:

install-exec-am: install-binPROGRAMS

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 -rf ./$(DEPDIR)
	-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic

mostlyclean: mostlyclean-am

mostlyclean-am: mostlyclean-compile mostlyclean-generic

pdf: pdf-am

pdf-am:

ps: ps-am

ps-am:

uninstall-am: uninstall-binPROGRAMS uninstall-stubDATA

.MAKE: all check install install-am install-strip

.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
	clean-generic ctags distclean distclean-compile \
	distclean-generic distclean-tags distdir dvi dvi-am html \
	html-am info info-am install install-am install-binPROGRAMS \
	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 \
	install-stubDATA installcheck installcheck-am installdirs \
	maintainer-clean maintainer-clean-generic mostlyclean \
	mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \
	tags uninstall uninstall-am uninstall-binPROGRAMS \
	uninstall-stubDATA


# In native mode no need to dynamically link with dlladvi
advi$(EXEEXT): $(COBJS) $(OCAMLOPTOBJS)
	$(OCAMLOPT) -o advi$(EXEEXT) \
		$(OCAMLCFLAGS) $(AM_OCAMLCFLAGS) $(AM_LINKFLAGS) \
		$(COBJS) $(OCAMLLIBS_OPT) $(OCAMLOPTOBJS) \
		$(XINERAMA_CCLIB) $(CAMLIMAGES_CCLIBS)
dlladvi.so: $(COBJS) Makefile
	$(OCAMLMKLIB) -o advi \
		$(OCAMLCFLAGS) $(AM_OCAMLCFLAGS) $(AM_LINKFLAGS) \
		$(COBJS) \
		$(CAMLIMAGES_MKLIBS) $(CAMLIMAGES_LPATH) $(XINERAMA_MKLIB) 

advi.byt$(EXEEXT): dlladvi.so $(OCAMLBYTOBJS)
	$(OCAMLC) -o advi.byt$(EXEEXT) \
		$(OCAMLCFLAGS) $(AM_OCAMLCFLAGS) $(AM_LINKFLAGS) \
		$(OCAMLLIBS_BYT) $(OCAMLBYTOBJS) \
		-dllib -ladvi

install_hook: $(INSTALLEXEC) installdata
	- texhash
	@ if test -z "`kpsewhich advi.sty`"; then \
	  echo '*** NOTE BEFORE USE ***' ;\
	  echo Please add $(ADVI_LOC); \
	  echo to your TEXINPUTS environment variable\!; \
	  echo '***********************' ;\
	fi

config.ml: config.ml.in $(top_srcdir)/config.status
	rm -f $@ $@.tmp
	sed \
		-e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
		-e 's,@BUILD_DATE\@,$(BUILD_DATE),g' \
		-e 's,@HAVE_GS\@,$(HAVE_GS),g' \
		-e 's,@HAVE_CAMLIMAGES\@,$(HAVE_CAMLIMAGES),g' \
		-e 's,@TEXMFMAIN\@,$(TEXMFMAIN),g' \
		-e 's,@dvidir\@,$(dvidir),g' \
		-e 's,@etcdvidir\@,$(sysconfdir)/advi,g' \
		-e 's,@GUNZIP\@,$(GUNZIP),g' \
		-e 's,@BUNZIP\@,$(BUNZIP),g' \
		-e 's,@GS\@,$(GS),g' \
		$< > $@.tmp
	mv $@.tmp $@

.ml.cmo:
	$(OCAMLC) $(OCAMLCFLAGS) $(AM_OCAMLCFLAGS) -o $@ -c $<

.mli.cmi:
	$(OCAMLC) $(OCAMLCFLAGS) $(AM_OCAMLCFLAGS) -o $@ -c $<

.ml.cmx:
	$(OCAMLOPT) $(OCAMLCFLAGS) $(AM_OCAMLCFLAGS) -o $@ -c $<

.c.o: $(top_srcdir)/config.h
	$(OCAMLC) -ccopt "-o $@ $(CFLAGS) $(AM_CFLAGS)" -c $< 

# moving to $(srcdir) is needed in case of VPATH build
.depend: $(OCAMLSOURCES) $(OCAMLINTERFACES) $(top_srcdir)/config.status
	(cd $(srcdir) && $(OCAMLDEP) $(OCAMLSOURCES) $(OCAMLINTERFACES)) > .depend 

# ugly stuff for make time include
include .depend

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