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

# Copyright (C) 1994, 1995, 1996, 1997, 1998 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 for Amanda library.


SHELL = /bin/sh

srcdir = .
top_srcdir = ..
prefix = /usr/local
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

DISTDIR =

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

top_builddir = ..

ACLOCAL = aclocal
AUTOCONF = autoconf
AUTOMAKE = automake
AUTOHEADER = autoheader

INSTALL = /usr/athena/bin/install -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
transform = s,x,x,

NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_alias = sparc-sun-solaris2.6
build_triplet = sparc-sun-solaris2.6
host_alias = sparc-sun-solaris2.6
host_triplet = sparc-sun-solaris2.6
target_alias = sparc-sun-solaris2.6
target_triplet = sparc-sun-solaris2.6
AMCLIENT_EXTRA_OBJS = 
AMPLOT_CAT_COMPRESS = if(o=="Z")print "/usr/bin/compress -dc"; else
AMPLOT_CAT_GZIP = if(o=="gz")print "/mit/sipb/arch/sun4x_56/bin/gzip -dc"; else
AMPLOT_CAT_PACK = if(o=="z")print "/usr/bin/pcat"; else
AMPLOT_COMPRESS = /mit/sipb/arch/sun4x_56/bin/gzip
AR = /usr/ccs/bin/ar
AWK = gawk
BINARY_OWNER = amanda
BUILD_AMPLOT_LIBEXEC = amcat.awk amplot.awk amplot.g amplot.gp
BUILD_AMPLOT_SBIN = amplot
BUILD_CHANGER_PROGS_LIBEXEC = 
BUILD_CHANGER_SCRIPTS_LIBEXEC = chg-manual chg-multi chg-mtx chg-rth chg-chs chg-chio chg-zd-mtx
BUILD_CLIENT_LIB = 
BUILD_CLIENT_LTLIB = libamclient.la
BUILD_CLIENT_PROGS_LIBEXEC = amandad calcsize killpgrp rundump runtar selfcheck sendbackup sendsize
BUILD_CLIENT_SCRIPTS_LIBEXEC = patch-system
BUILD_CLIENT_SCRIPTS_SBIN = 
BUILD_COMMON_LIB = 
BUILD_COMMON_LTLIB = libamanda.la
BUILD_RECOVER_PROGS_SBIN = amrecover
BUILD_RESTORE_PROGS_LIBEXEC = amidxtaped
BUILD_RESTORE_PROGS_SBIN = amrestore
BUILD_SERVER_LIB = 
BUILD_SERVER_LTLIB = libamserver.la
BUILD_SERVER_PROGS_LIBEXEC = amindexd amtrmidx driver dumper getconf planner taper
BUILD_SERVER_PROGS_SBIN = amadmin amcheck amflush amlabel amtape amreport
BUILD_SERVER_SCRIPTS_SBIN = amcheckdb amcleanup amdump amoverview amrmtape amtoc amverify amstatus
BUILD_TAPE_LIB = 
BUILD_TAPE_LTLIB = libamtape.la
CAT = /usr/bin/cat
CC = /usr/gcc/bin/gcc
CHIO = chio
CHS = 
CLIENT_LOGIN = amanda
COMPRESS = /usr/bin/compress
CONFIG_DIR = /usr/local/etc/amanda
DB_EXT = ""
DD = /usr/bin/dd
DEBUG_DIR = /tmp/amanda
DEFAULT_CHANGER_DEVICE = /dev/null
DEFAULT_CONFIG = DailySet1
DEFAULT_RAW_TAPE_DEVICE = /dev/null
DEFAULT_SERVER = sweet-transvestite.mit.edu
DEFAULT_TAPE_DEVICE = /dev/null
DEFAULT_TAPE_SERVER = sweet-transvestite.mit.edu
DUMP = /usr/sbin/ufsdump
EGREP = /usr/bin/egrep
GETCONF = /bin/getconf
GNUPLOT = /mit/gnu/arch/sun4x_56/bin/gnuplot
GNUTAR = /mit/gnu/arch/sun4x_56/bin/gtar
GREP = /usr/bin/grep
GZIP = 
LEX = flex
LIBOBJS_CLIENT = 
LIBRARIES_TARGET = 
LIBSRCS_CLIENT = 
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LIBTOOL_M4_MACRO_DIR = -I config/libtool
LIB_EXTENSION = la
MAILER = /usr/ucb/Mail
MT = /usr/bin/mt
MTX = mtx
MT_FILE_FLAG = -f
OBJ_EXTENSION = lo
PCAT = /usr/bin/pcat
PERL = /usr/athena/bin/perl
PRINT = /usr/athena/bin/lpr
RANLIB = ranlib
RESTORE = /usr/sbin/ufsrestore
SAMBA_CLIENT = 
SERVICE_SUFFIX = 
SETUID_GROUP = amanda
SHELL = /usr/bin/sh
USE_VERSION_SUFFIXES = no
VDUMP = 
VERSION_COMMENT = "p1"
VERSION_MAJOR = 2
VERSION_MINOR = 4
VERSION_PATCH = 1
VERSION_SUFFIX = 2.4.1p1
VRESTORE = 
VXDUMP = 
VXRESTORE = 
XFSDUMP = 
XFSRESTORE = 
YACC = bison -y
ac_c = \c
ac_n = 

ACLOCAL_M4 = $(top_srcdir)/config/aclocal.m4

AMANDA_CFLAGS =		 

COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(AMANDA_CFLAGS)

noinst_DATA =		versuff.c

lib_LTLIBRARIES =	libamanda.la
EXTRA_LTLIBRARIES =	libamanda.la

noinst_LIBRARIES = 	
EXTRA_LIBRARIES =	libamanda.a

REGDIR = ../regex-src
REGsrcdir = $(srcdir)/$(REGDIR)

INCLUDES = -I$(REGsrcdir)

libamanda_la_SOURCES = \
	alloc.c		amflock.c	debug.c		dgram.c		\
	error.c		file.c		fileheader.c	match.c		\
	protocol.c	regcomp.c	regerror.c	regexec.c	\
	regfree.c	security.c	statfs.c	stream.c	\
	token.c		version.c	versuff.c

libamanda_la_LIBADD =	 
libamanda_la_LDFLAGS =  -release $(VERSION) -rpath $(libdir)

libamanda_a_SOURCES =	$(libamanda_la_SOURCES)
libamanda_a_LIBADD =	$(libamanda_la_LIBADD)

noinst_HEADERS =	amanda.h	arglist.h	\
			dgram.h		protocol.h	\
			statfs.h	stream.h	\
			token.h		version.h	\
			amregex.h	fileheader.h

EXTRA_PROGRAMS = genversion $(TEST_PROGS)

genversion_SOURCES = genversion.c
genversion_LDADD = versuff.$(OBJ_EXTENSION) $(libamanda_a_LIBADD) \
	alloc.$(OBJ_EXTENSION) error.$(OBJ_EXTENSION)

REGEXHSRC =	$(REGsrcdir)/regex2.h \
		$(REGsrcdir)/regcomp.c \
		$(REGsrcdir)/regexec.c \
		$(REGsrcdir)/regerror.c \
		$(REGsrcdir)/regfree.c

# these are used for testing only:
TEST_PROGS = statfs token file security

CLEANFILES = regex.h regcomp.ih engine.ih regerror.ih *.test.c

DISTCLEANFILES = version.c

# used for testing only

statfs_SOURCES = statfs.test.c
statfs_LDADD = $(libamanda_a_LIBADD) \
	error.$(OBJ_EXTENSION)

token_SOURCES = token.test.c
token_LDADD = $(libamanda_a_LIBADD) \
	alloc.$(OBJ_EXTENSION) error.$(OBJ_EXTENSION) file.$(OBJ_EXTENSION)

file_SOURCES = file.test.c
file_LDADD = $(libamanda_a_LIBADD) \
	alloc.$(OBJ_EXTENSION) error.$(OBJ_EXTENSION)

security_SOURCES = security.test.c
security_LDADD = $(libamanda_a_LIBADD) \
	alloc.$(OBJ_EXTENSION) debug.$(OBJ_EXTENSION) \
	error.$(OBJ_EXTENSION) file.$(OBJ_EXTENSION)
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
CONFIG_HEADER = ../config/config.h
CONFIG_CLEAN_FILES =  versuff.c
LIBRARIES =  $(noinst_LIBRARIES)


DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I../config
CPPFLAGS = -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64   
LDFLAGS =    
LIBS = -lgen -lm -ltermcap -lsocket -lnsl -lintl   
libamanda_a_DEPENDENCIES =   
libamanda_a_OBJECTS =  alloc.o amflock.o debug.o dgram.o error.o file.o \
fileheader.o match.o protocol.o regcomp.o regerror.o regexec.o \
regfree.o security.o statfs.o stream.o token.o version.o versuff.o
LTLIBRARIES =  $(lib_LTLIBRARIES)

libamanda_la_DEPENDENCIES =   
libamanda_la_OBJECTS =  alloc.lo amflock.lo debug.lo dgram.lo error.lo \
file.lo fileheader.lo match.lo protocol.lo regcomp.lo regerror.lo \
regexec.lo regfree.lo security.lo statfs.lo stream.lo token.lo \
version.lo versuff.lo
genversion_OBJECTS =  genversion.o
genversion_DEPENDENCIES =  versuff.$(OBJ_EXTENSION)   \
alloc.$(OBJ_EXTENSION) error.$(OBJ_EXTENSION)
genversion_LDFLAGS = 
statfs_OBJECTS =  statfs.test.o
statfs_DEPENDENCIES =    error.$(OBJ_EXTENSION)
statfs_LDFLAGS = 
token_OBJECTS =  token.test.o
token_DEPENDENCIES =    alloc.$(OBJ_EXTENSION) \
error.$(OBJ_EXTENSION) file.$(OBJ_EXTENSION)
token_LDFLAGS = 
file_OBJECTS =  file.test.o
file_DEPENDENCIES =    alloc.$(OBJ_EXTENSION) \
error.$(OBJ_EXTENSION)
file_LDFLAGS = 
security_OBJECTS =  security.test.o
security_DEPENDENCIES =    alloc.$(OBJ_EXTENSION) \
debug.$(OBJ_EXTENSION) error.$(OBJ_EXTENSION) file.$(OBJ_EXTENSION)
security_LDFLAGS = 
CFLAGS = -g
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
DATA =  $(noinst_DATA)

HEADERS =  $(noinst_HEADERS)

DIST_COMMON =  Makefile.am Makefile.in alloca.c getcwd.c memmove.c \
mktime.c snprintf.c strcasecmp.c strerror.c strftime.c strncasecmp.c \
strstr.c versuff.c.in waitpid.c


PACKAGE = amanda
VERSION = 2.4.1p1

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

TAR = tar
SOURCES = $(libamanda_a_SOURCES) $(libamanda_la_SOURCES) $(genversion_SOURCES) $(statfs_SOURCES) $(token_SOURCES) $(file_SOURCES) $(security_SOURCES)
OBJECTS = $(libamanda_a_OBJECTS) $(libamanda_la_OBJECTS) $(genversion_OBJECTS) $(statfs_OBJECTS) $(token_OBJECTS) $(file_OBJECTS) $(security_OBJECTS)

all: Makefile $(LIBRARIES) $(LTLIBRARIES) $(DATA) $(HEADERS)

.SUFFIXES:
.SUFFIXES: .S .c .lo .o .s
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
	cd $(top_srcdir) && $(AUTOMAKE) --foreign --include-deps common-src/Makefile

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

versuff.c: $(top_builddir)/config.status versuff.c.in
	cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status

mostlyclean-noinstLIBRARIES:

clean-noinstLIBRARIES:
	-test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)

distclean-noinstLIBRARIES:

maintainer-clean-noinstLIBRARIES:

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

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

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

mostlyclean-compile:
	-rm -f *.o core *.core

clean-compile:

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

maintainer-clean-compile:

.c.lo:
	$(LIBTOOL) --mode=compile $(COMPILE) -c $<

.s.lo:
	$(LIBTOOL) --mode=compile $(COMPILE) -c $<

.S.lo:
	$(LIBTOOL) --mode=compile $(COMPILE) -c $<

mostlyclean-libtool:
	-rm -f *.lo

clean-libtool:
	-rm -rf .libs _libs

distclean-libtool:

maintainer-clean-libtool:

libamanda.a: $(libamanda_a_OBJECTS) $(libamanda_a_DEPENDENCIES)
	-rm -f libamanda.a
	$(AR) cru libamanda.a $(libamanda_a_OBJECTS) $(libamanda_a_LIBADD)
	$(RANLIB) libamanda.a

mostlyclean-libLTLIBRARIES:

clean-libLTLIBRARIES:
	-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)

distclean-libLTLIBRARIES:

maintainer-clean-libLTLIBRARIES:

install-libLTLIBRARIES: $(lib_LTLIBRARIES)
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(libdir)
	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
	  if test -f $$p; then \
	    echo "$(LIBTOOL)  --mode=install $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p"; \
	    $(LIBTOOL)  --mode=install $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p; \
	  else :; fi; \
	done

uninstall-libLTLIBRARIES:
	@$(NORMAL_UNINSTALL)
	list='$(lib_LTLIBRARIES)'; for p in $$list; do \
	  $(LIBTOOL)  --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
	done

libamanda.la: $(libamanda_la_OBJECTS) $(libamanda_la_DEPENDENCIES)
	$(LINK)  $(libamanda_la_LDFLAGS) $(libamanda_la_OBJECTS) $(libamanda_la_LIBADD) $(LIBS)

genversion: $(genversion_OBJECTS) $(genversion_DEPENDENCIES)
	@rm -f genversion
	$(LINK) $(genversion_LDFLAGS) $(genversion_OBJECTS) $(genversion_LDADD) $(LIBS)

statfs: $(statfs_OBJECTS) $(statfs_DEPENDENCIES)
	@rm -f statfs
	$(LINK) $(statfs_LDFLAGS) $(statfs_OBJECTS) $(statfs_LDADD) $(LIBS)

token: $(token_OBJECTS) $(token_DEPENDENCIES)
	@rm -f token
	$(LINK) $(token_LDFLAGS) $(token_OBJECTS) $(token_LDADD) $(LIBS)

file: $(file_OBJECTS) $(file_DEPENDENCIES)
	@rm -f file
	$(LINK) $(file_LDFLAGS) $(file_OBJECTS) $(file_LDADD) $(LIBS)

security: $(security_OBJECTS) $(security_DEPENDENCIES)
	@rm -f security
	$(LINK) $(security_LDFLAGS) $(security_OBJECTS) $(security_LDADD) $(LIBS)

tags: TAGS

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

TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
	tags=; \
	here=`pwd`; \
	list='$(SOURCES) $(HEADERS)'; \
	unique=`for i in $$list; do echo $$i; done | \
	  awk '    { files[$$0] = 1; } \
	       END { for (i in files) print i; }'`; \
	test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
	  || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $$unique $(LISP) -o $$here/TAGS)

mostlyclean-tags:

clean-tags:

distclean-tags:
	-rm -f TAGS ID

maintainer-clean-tags:

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

subdir = common-src

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
alloc.lo alloc.o: alloc.c amanda.h ../config/config.h arglist.h
amflock.lo amflock.o: amflock.c amanda.h ../config/config.h arglist.h
debug.lo debug.o: debug.c amanda.h ../config/config.h arglist.h
dgram.lo dgram.o: dgram.c amanda.h ../config/config.h arglist.h dgram.h
error.lo error.o: error.c amanda.h ../config/config.h arglist.h
file.lo file.o: file.c amanda.h ../config/config.h arglist.h
fileheader.lo fileheader.o: fileheader.c amanda.h ../config/config.h \
	arglist.h fileheader.h
match.lo match.o: match.c amanda.h ../config/config.h arglist.h regex.h
protocol.lo protocol.o: protocol.c amanda.h ../config/config.h arglist.h \
	protocol.h dgram.h version.h
regcomp.lo regcomp.o: regcomp.c amregex.h ../config/config.h arglist.h \
	../regex-src/regcomp.c regex.h ../regex-src/utils.h \
	../regex-src/regex2.h ../regex-src/cclass.h \
	../regex-src/cname.h regcomp.ih
regerror.lo regerror.o: regerror.c amregex.h ../config/config.h \
	arglist.h ../regex-src/regerror.c regex.h ../regex-src/utils.h \
	regerror.ih
regexec.lo regexec.o: regexec.c amregex.h ../config/config.h arglist.h \
	../regex-src/regexec.c regex.h ../regex-src/utils.h \
	../regex-src/regex2.h ../regex-src/engine.c engine.ih
regfree.lo regfree.o: regfree.c amregex.h ../config/config.h arglist.h \
	../regex-src/regfree.c regex.h ../regex-src/utils.h \
	../regex-src/regex2.h
security.lo security.o: security.c amanda.h ../config/config.h arglist.h
snprintf.lo snprintf.o: snprintf.c amanda.h ../config/config.h arglist.h
statfs.lo statfs.o: statfs.c amanda.h ../config/config.h arglist.h \
	statfs.h
stream.lo stream.o: stream.c amanda.h ../config/config.h arglist.h \
	dgram.h stream.h
token.lo token.o: token.c amanda.h ../config/config.h arglist.h token.h
version.lo version.o: version.c
versuff.lo versuff.o: versuff.c amanda.h ../config/config.h arglist.h \
	version.h

info:
dvi:
check: all
	$(MAKE)
installcheck:
install-exec: install-libLTLIBRARIES
	@$(NORMAL_INSTALL)

install-data: 
	@$(NORMAL_INSTALL)

install: install-exec install-data all
	@:

uninstall: uninstall-libLTLIBRARIES

install-strip:
	$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
installdirs:
	$(mkinstalldirs)  $(DATADIR)$(libdir)


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 stamp-h[0-9]*
	-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:  mostlyclean-noinstLIBRARIES mostlyclean-compile \
		mostlyclean-libtool mostlyclean-libLTLIBRARIES \
		mostlyclean-tags mostlyclean-generic

clean:  clean-noinstLIBRARIES clean-compile clean-libtool \
		clean-libLTLIBRARIES clean-tags clean-generic \
		mostlyclean

distclean:  distclean-noinstLIBRARIES distclean-compile \
		distclean-libtool distclean-libLTLIBRARIES \
		distclean-tags distclean-generic clean
	-rm -f config.status
	-rm -f libtool

maintainer-clean:  maintainer-clean-noinstLIBRARIES \
		maintainer-clean-compile maintainer-clean-libtool \
		maintainer-clean-libLTLIBRARIES maintainer-clean-tags \
		maintainer-clean-generic distclean
	@echo "This command is intended for maintainers to use;"
	@echo "it deletes files that may require special tools to rebuild."

.PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \
clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \
mostlyclean-compile distclean-compile clean-compile \
maintainer-clean-compile mostlyclean-libtool distclean-libtool \
clean-libtool maintainer-clean-libtool mostlyclean-libLTLIBRARIES \
distclean-libLTLIBRARIES clean-libLTLIBRARIES \
maintainer-clean-libLTLIBRARIES uninstall-libLTLIBRARIES \
install-libLTLIBRARIES tags mostlyclean-tags distclean-tags clean-tags \
maintainer-clean-tags distdir info dvi installcheck install-exec \
install-data install uninstall all installdirs mostlyclean-generic \
distclean-generic clean-generic maintainer-clean-generic clean \
mostlyclean distclean maintainer-clean


.sh:
	cat $< > $@
	chmod a+x $@

genversion.o: genversion.c
	$(COMPILE) -DCC="\"$(CC)\"" \
		   -DBUILT_DATE="\"`date`\"" \
		   -DBUILT_MACH="\"`uname -a || echo UNKNOWN HOST`\"" \
		   -c $(srcdir)/genversion.c

version.c:	genversion
	-rm -f version.c
	./genversion > version.c

.deps/match.P match.o match.lo: regex.h
.deps/regcomp.P regcomp.o regcomp.lo: regex.h regcomp.ih
.deps/regexec.P regexec.o regexec.lo: regex.h engine.ih
.deps/regerror.P regerror.o regerror.lo: regex.h regerror.ih
.deps/regfree.P regfree.o regfree.lo: regex.h

regex.h: $(REGEXHSRC) $(REGsrcdir)/mkh
	sh $(REGsrcdir)/mkh -o -i _REGEX_H_ $(REGEXHSRC) >$@

regcomp.ih: $(REGsrcdir)/regcomp.c $(REGsrcdir)/mkh
	sh $(REGsrcdir)/mkh -o -p $(REGsrcdir)/regcomp.c >$@

engine.ih: $(REGsrcdir)/engine.c $(REGsrcdir)/mkh
	sh $(REGsrcdir)/mkh -o -p $(REGsrcdir)/engine.c >$@

regerror.ih: $(REGsrcdir)/regerror.c $(REGsrcdir)/mkh
	sh $(REGsrcdir)/mkh -o -p $(REGsrcdir)/regerror.c >$@

%.test.c: $(srcdir)/%.c
	echo '#define TEST' >$@
	echo '#include "$<"' >>$@

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