# Generated automatically from Makefile.in by configure.
# Makefile.in generated automatically by automake 1.1l from Makefile.am

# Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.

#
# Makefile for states.
# Copyright (c) 1997 Markku Rossi
#
# Author: Markku Rossi <mtr@iki.fi>
#

#
# This file is part of GNU enscript.
# 
# 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; see the file COPYING.  If not, write to
# the Free Software Foundation, 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
#


SHELL = /bin/sh

srcdir = .
top_srcdir = ..
prefix = c:/djgpp
exec_prefix = ${prefix}

bindir = ${exec_prefix}/bin
sbindir = ${exec_prefix}/sbin
libexecdir = ${exec_prefix}/libexec
datadir = ${prefix}/share
sysconfdir = ${prefix}/etc
sharedstatedir = ${prefix}/com
localstatedir = ${prefix}/var
libdir = ${exec_prefix}/lib
infodir = ${prefix}/info
mandir = ${prefix}/man
includedir = ${prefix}/include
oldincludedir = /usr/include

pkgdatadir = $(datadir)/enscript
pkglibdir = $(libdir)/enscript
pkgincludedir = $(includedir)/enscript

top_builddir = ..

INSTALL = ${DJDIR}/bin/ginstall
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
transform = s,x,x,
YACC = bison -y
MEDIA = A4
MKINSTALLDIRS = ./mkinstalldirs
INTLLIBS = 
USE_INCLUDED_LIBINTL = no
INTLDEPS = 
CATOBJEXT = 
INTLOBJS = 
LIBOBJS = 
VERSION = 1.5.0
CC = gcc
ANSI2KNR = 
POSUB = 
LEX = flex
INSTOBJEXT = 
GT_YES = #YES#
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
PACKAGE = enscript
CATALOGS = 
MSGFMT = 
CFLAGS = -g -O2
POFILES =  de.po fi.po fr.po nl.po sl.po
GENCAT = 
PERL = 
U = 
GMSGFMT = 
GMOFILES =  de.gmo fi.gmo fr.gmo nl.gmo sl.gmo
GT_NO = 
RANLIB = ranlib
USE_NLS = no
DATADIRNAME = share
LDFLAGS = 

SUBDIRS = tests

AUTOMAKE_OPTIONS =

man_MANS = states.1

bin_PROGRAMS = states
states_SOURCES = main.c utils.c prims.c process.c gram.y lex.l

LDADD = ../afmlib/libafm.a  ../compat/libcompat.a -lfl
states_DEPENDENCIES =  ../compat/libcompat.a

noinst_HEADERS = defs.h gram.h

EXTRA_DIST = states.1-in TODO enscript.st many2html.in enscript.el

localedir = $(prefix)/share/locale

bin_SCRIPTS = many2html

YFLAGS = -d

DEFS = -DHAVE_CONFIG_H -DLOCALEDIR=\"$(localedir)\" -I. -I$(srcdir) -I..
INCLUDES = -I$(srcdir)/../compat -I$(srcdir)/../afmlib -I$(srcdir)/../intl -I../intl
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../config.h
CONFIG_CLEAN_FILES =  states.1
PROGRAMS =  $(bin_PROGRAMS)

CPPFLAGS = 
LIBS = 
states_OBJECTS =  main.o utils.o prims.o process.o gram.o lex.o
states_LDADD = $(LDADD)
states_LDFLAGS = 
SCRIPTS =  $(bin_SCRIPTS)

LEX_OUTPUT_ROOT = lexyy
LEXLIB = -lfl
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
LINK = $(CC) $(LDFLAGS) -o $@
MANS = states.1

NROFF = nroff
HEADERS =  $(noinst_HEADERS)

DIST_COMMON =  ChangeLog Makefile.am Makefile.in TODO gram.c lex.c \
states.1-in


DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) \
	$(TEXINFOS) $(MANS) $(EXTRA_DIST)

TAR = tar
SOURCES = $(states_SOURCES)
OBJECTS = $(states_OBJECTS)

default: all

.SUFFIXES:
.SUFFIXES: .c .o .y .l
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL) 
	cd $(top_srcdir) && automake --gnu states/Makefile

Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
	cd $(top_builddir) \
	  && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status

states.1: $(top_builddir)/config.status states.1-in
	cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status

mostlyclean-binPROGRAMS:

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

distclean-binPROGRAMS:

maintainer-clean-binPROGRAMS:

install-binPROGRAMS: $(bin_PROGRAMS)
	$(NORMAL_INSTALL)
	$(mkinstalldirs) $(bindir)
	@list="$(bin_PROGRAMS)"; for p in $$list; do \
	  if test -f $$p; then \
	    echo " $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`"; \
	     $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \
	  else :; fi; \
	done

uninstall-binPROGRAMS:
	list="$(bin_PROGRAMS)"; for p in $$list; do \
	  rm -f $(bindir)/`echo $$p|sed '$(transform)'`; \
	done

.c.o:
	$(COMPILE) -c $<

mostlyclean-compile:
	rm -f *.o core

clean-compile:

distclean-compile:
	rm -f *_tab.c

maintainer-clean-compile:
$(states_OBJECTS): ../config.h

states: $(states_OBJECTS) $(states_DEPENDENCIES)
	$(LINK) $(states_LDFLAGS) $(states_OBJECTS) $(states_LDADD) $(LIBS)

install-binSCRIPTS: $(bin_SCRIPTS)
	$(NORMAL_INSTALL)
	$(mkinstalldirs) $(bindir)
	@list="$(bin_SCRIPTS)"; for p in $$list; do \
	  if test -f $$p; then \
	    echo "$(INSTALL_SCRIPT) $$p $(bindir)/`echo $$p|sed '$(transform)'`"; \
	    $(INSTALL_SCRIPT) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \
	  else if test -f $(srcdir)/$$p; then \
	    echo "$(INSTALL_SCRIPT) $(srcdir)/$$p $(bindir)/`echo $$p|sed '$(transform)'`"; \
	    $(INSTALL_SCRIPT) $(srcdir)/$$p $(bindir)/`echo $$p|sed '$(transform)'`; \
	  else :; fi; fi; \
	done

uninstall-binSCRIPTS:
	list="$(bin_SCRIPTS)"; for p in $$list; do \
	  rm -f $(bindir)/`echo $$p|sed '$(transform)'`; \
	done
.y.c:
	$(YACC) $(YFLAGS) $< && mv y_tab.c $@
	if test -f y_tab.h; then \
	if cmp -s y_tab.h $*.h; then rm -f y_tab.h; else mv y_tab.h $*.h; fi; \
	else :; fi
.l.c:
	$(LEX) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).c $@
install-man: $(MANS)
	$(NORMAL_INSTALL)
	$(mkinstalldirs) $(mandir)/man1
	sect=1;				\
	inst=`echo "states" | sed '$(transform)'`.1; \
	if test -f $(srcdir)/states.1; then file=$(srcdir)/states.1; \
	else file=states.1; fi; \
	$(INSTALL_DATA) $$file $(mandir)/man$$sect/$$inst

uninstall-man:
	inst=`echo "states" | sed '$(transform)'`.1; \
	rm -f $(mandir)/man1/$$inst


# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
#     (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.



all-recursive install-data-recursive install-exec-recursive \
installdirs-recursive install-recursive uninstall-recursive  \
check-recursive installcheck-recursive info-recursive dvi-recursive \
mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive:
	@for subdir in $(SUBDIRS); do \
	  target=`echo $@ | sed s/-recursive//`; \
	  echo "Making $$target in $$subdir"; \
	  (cd $$subdir && $(MAKE) $$target) \
	   || case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
	done && test -z "$$fail"
tags-recursive:
	list="$(SUBDIRS)"; for subdir in $$list; do \
	  (cd $$subdir && $(MAKE) tags); \
	done

tags: TAGS

ID: $(HEADERS) $(SOURCES)
	here=`pwd` && cd $(srcdir) && mkid -f$$here/ID $(SOURCES) $(HEADERS)

TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES)
	tags=; \
	here=`pwd`; \
	list="$(SUBDIRS)"; for subdir in $$list; do \
	  test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
	done; \
	test -z "$(ETAGS_ARGS)$(SOURCES)$(HEADERS)$$tags" \
	  || cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $(SOURCES) $(HEADERS) -o $$here/TAGS

mostlyclean-tags:

clean-tags:

distclean-tags:
	rm -f TAGS ID

maintainer-clean-tags:

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)

subdir = states
distdir: $(DISTFILES)
	@for file in $(DISTFILES); do \
	  d=$(srcdir); \
	  test -f $(distdir)/$$file \
	  || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
	  || cp -p $$d/$$file $(distdir)/$$file; \
	done
	for subdir in $(SUBDIRS); do		\
	  test -d $(distdir)/$$subdir		\
	  || mkdir $(distdir)/$$subdir		\
	  || exit 1;				\
	  chmod 755 $(distdir)/$$subdir;	\
	  (cd $$subdir && $(MAKE) distdir=../$(distdir)/$$subdir distdir) \
	    || exit 1; \
	done
gram.o gram.lo: gram.c defs.h ../config.h ../compat/regex.h \
	../compat/xalloc.h ../afmlib/strhash.h
lex.o lex.lo: lex.c defs.h ../config.h ../compat/regex.h \
	../compat/xalloc.h ../afmlib/strhash.h gram.h
main.o main.lo: main.c defs.h ../config.h ../compat/regex.h \
	../compat/xalloc.h ../afmlib/strhash.h ../compat/getopt.h
prims.o prims.lo: prims.c defs.h ../config.h ../compat/regex.h \
	../compat/xalloc.h ../afmlib/strhash.h
process.o process.lo: process.c defs.h ../config.h ../compat/regex.h \
	../compat/xalloc.h ../afmlib/strhash.h
utils.o utils.lo: utils.c defs.h ../config.h ../compat/regex.h \
	../compat/xalloc.h ../afmlib/strhash.h

info: info-recursive
dvi: dvi-recursive
check: all-am
	$(MAKE) check-recursive
installcheck: installcheck-recursive
all-am: $(PROGRAMS) $(SCRIPTS) $(MANS) $(HEADERS) Makefile

install-exec-am: install-binPROGRAMS install-binSCRIPTS

install-data-am: install-man install-data-local

uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS uninstall-man uninstall-local

install-exec: install-exec-recursive install-exec-am
	$(NORMAL_INSTALL)

install-data: install-data-recursive install-data-am
	$(NORMAL_INSTALL)

install: install-recursive install-exec-am install-data-am
	@:

uninstall: uninstall-recursive uninstall-am

all: all-recursive all-am

install-strip:
	$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
installdirs: installdirs-recursive
	$(mkinstalldirs)  $(bindir) $(bindir) $(mandir)/man1


mostlyclean-generic:
	test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)

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

distclean-generic:
	rm -f Makefile $(DISTCLEANFILES)
	rm -f config.cache config.log stamp-h
	test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)

maintainer-clean-generic:
	test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
	test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
mostlyclean-am:  mostlyclean-binPROGRAMS mostlyclean-compile \
		mostlyclean-tags mostlyclean-generic

clean-am:  clean-binPROGRAMS clean-compile clean-tags clean-generic \
		mostlyclean-am

distclean-am:  distclean-binPROGRAMS distclean-compile distclean-tags \
		distclean-generic clean-am

maintainer-clean-am:  maintainer-clean-binPROGRAMS \
		maintainer-clean-compile maintainer-clean-tags \
		maintainer-clean-generic distclean-am

mostlyclean:  mostlyclean-am mostlyclean-recursive

clean:  clean-am clean-recursive

distclean:  distclean-am distclean-recursive
	rm -f config.status

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

.PHONY: default mostlyclean-binPROGRAMS distclean-binPROGRAMS \
clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \
install-binPROGRAMS mostlyclean-compile distclean-compile clean-compile \
maintainer-clean-compile uninstall-binSCRIPTS install-binSCRIPTS \
install-man uninstall-man install-data-recursive \
uninstall-data-recursive install-exec-recursive \
uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
all-recursive check-recursive installcheck-recursive info-recursive \
dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
distclean-tags clean-tags maintainer-clean-tags distdir info dvi \
installcheck all-am install-exec-am install-data-am uninstall-am \
install-exec install-data install uninstall all installdirs \
mostlyclean-generic distclean-generic clean-generic \
maintainer-clean-generic clean mostlyclean distclean maintainer-clean


many2html: $(srcdir)/many2html.in
	sed 's%@LIBRARYDIR@%$(prefix)/share/enscript%g' \
	$(srcdir)/many2html.in > many2html

install-data-local: enscript.st
	$(top_srcdir)/mkinstalldirs $(datadir)/enscript
	$(INSTALL_DATA) $(srcdir)/enscript.st $(datadir)/enscript/enscript.st

uninstall-local:
	rm -f $(datadir)/enscript/enscript.st

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