# This file makes the kpath library modules.
# It is appropriate for the SAS/C Development System Version 6.X by
# SAS Institute, Cary NC.  April 4, 1995, Andreas Scherer.
# scherer@genesis.informatik.rwth-aachen.de.

version = 1.6

lib = kpathsea.lib
lib_20 = kpathsea_20.lib

doc = kpathsea.guide

# The following make definitions (down to `end of installation
# directories') are repeated in several Makefiles, because different
# installations like to change them at different levels. If you edit the
# top-level Makefile, the changes should propagate, however.
# 
# The following define installation directories. The default paths are
# defined in kpathsea/paths.h, which is built from kpathsea/paths.h.in.
# See kpathsea/INSTALL for a description of how the various path-related
# files are used and created.

# ON THE AMIGA THIS IS DONE HERE, BECAUSE THE CONFIGURE MECHANISM WON'T
# WORK THE INTENDED WAY.  INSTALL HAS NO MEANING HERE.  BUT LUCKILY THERE
# IS A CONVENIENT ALTERNATIVE FOR AUTOMATIC INSTALLATION ANYWAY.

prefix = Programmer:other
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
scriptdir = $(bindir)
libdir = $(exec_prefix)/lib
datadir = $(prefix)/lib
infodir = $(prefix)/info
includedir = $(prefix)/include
manext = 1
mandir = $(prefix)/man/man$(manext)

# TeX & MF-specific directories. Not all of the following are relevant
# for all programs, but it seems cleaner to collect everything in one place.

# The default paths are now in kpathsea/Makefile.in. Passing all the
# paths to sub-makes can make the arg list too long on system V.

# The root of the tree.
texmf_prefix = TeXMF # This is an `assign'ed device.

# TeX and MF source files.
texinputdir = $(texmf_prefix):tex
mfinputdir = $(texmf_prefix):metafont
mpinputdir = $(texmf_prefix):metapost

# The top-level font directory.
fontdir = $(texmf_prefix):fonts

# Where memory dumps are installed.
fmtdir = $(texmf_prefix):web2c61/formats//
basedir = $(texmf_prefix):web2c61/bases//
memdir = $(texmf_prefix):web2c61/mems//

# Pool files.
texpooldir = $(texmf_prefix):web2c61/pool
mfpooldir = $(texpooldir)
mppooldir = $(texpooldir)

# Configuration files.
texconfigdir = $(texmf_prefix):web2c61/config
bibtexconfigdir = $(texconfigdir)
mfconfigdir = $(texconfigdir)
mpconfigdir = $(texconfigdir)

# The PostScript TFM and VF files get installed in subdirectories of
# this directory, named for the typeface families of these directories.
psfontdir = $(fontdir)/adobe

# Where the configuration files get installed.
dvips_prefix = $(texmf_prefix):dvips
configdir = $(dvips_prefix)

# Where the PostScript prologues go.
headerdir = $(configdir)

# Where dvips' TeX macro files get installed.
psmacrodir = $(texinputdir)/dvips

# If a font can't be found close enough to its stated size, we look for
# each of these sizes in the order given.  This colon-separated list is
# overridden by the envvar TEXSIZES, and by a program-specific variable
# (e.g., XDVISIZES), and perhaps by a config file (e.g., in dvips).
default_texsizes = 300:600

# End of installation directory definitions.

# Add define=NO_DEBUG to squeeze out the last bit of performance.
DEFS = define=_STRICT_ANSI

# Set this to gmalloc.o to use GNU malloc.
malloc =

CC = sc
MAKE = smake
SED = sed
TIE = tie
WMERGE = wmerge

# CFLAGS is used for both compilation and linking.
CFLAGS = math=ieee noicons optimize

# This is so kpathsea will get remade automatically if you change
# something in it and recompile from the package directory.
# This stuff had to be moved upwards because it already is used
# in CPPFLAGS and SMake has no `forward' references.
srcdir = .
kpathsea_parent = ..
kpathsea_dir = $(kpathsea_parent)/kpathsea
kpathsea_srcdir_parent = $(srcdir)/..
kpathsea_srcdir = $(kpathsea_srcdir_parent)/kpathsea
kpathsea = $(kpathsea_dir)/$(lib)
kpathsea_20 = $(kpathsea_dir)/$(lib_20)

# Do not override CPPFLAGS; change CFLAGS or DEFS instead.
CPPFLAGS = idir=. idir=$(srcdir) idir=$(kpathsea_parent) $(DEFS) $(LIB20)

.c.o:
	$(CC) $(CPPFLAGS) $(CFLAGS) $<

# Linking.
LDFLAGS = $(CFLAGS)
LOADLIBES = $(kpathsea) $(kpathsea_20) $(LIBS)

# Stuff for making libraries.
AR = oml
ARFLAGS = R

# Installation.
INSTALL =
INSTALL_PROGRAM =
INSTALL_DATA =

# Install these header files.
install_headers = \#?.h

MAKEINFO = amigamakeinfo
MAKEINFO_FLAGS = --amiga

.SUFFIXES: .texi .guide
.texi.guide:
	$(MAKEINFO) $(MAKEINFO_FLAGS) $< -o $@

maindoc = andykpathsea.texi
docs = $(maindoc) copying.texi freedom.texi index.texi \
	install.texi intro.texi andytex-doc.texi userspec.texi

SHELL = rx

# Put tex-font.o first, because it's what depends on the paths, and my
# reduce frustration in recompiling if the paths are wrong.
objects = tex-font.o absolute.o concat.o concat3.o concatn.o debug.o \
	default.o dir.o elt-dirs.o expand.o extend-fname.o file-p.o \
	find-suffix.o fn.o fontmap.o init-path.o itoa.o line.o \
	make-suffix.o path-elt.o pathsearch.o putenv.o readable.o \
	rm-suffix.o str-list.o str-llist.o tex-glyph.o tex-make.o \
	tilde.o truncate.o uppercasify.o variable.o version.o xcalloc.o \
	xfopen.o xmalloc.o xopendir.o xputenv.o xrealloc.o \
	xstat.o xstrdup.o

all: $(lib) $(lib_20) $(doc)

library: $(objects)

$(lib): stamp-no20
$(lib_20): stamp-20

stamp-no20:
	- delete $(lib) \#?.o stamp-no20
	$(MAKE) library
	$(AR) $(lib) $(ARFLAGS) $(objects)
	echo "" > stamp-no20

stamp-20:
	- delete $(lib_20) \#?.o stamp-20
	$(MAKE) LIB20=cpu=68020 library
	$(AR) $(lib_20) $(ARFLAGS) $(objects)
	echo "" > stamp-20

install: $(lib) $(lib_20)

$(doc): $(maindoc)

andykpathsea.texi: kpathsea.texi kpathsea.tch
	$(TIE) -m andykpathsea.texi kpathsea.texi kpathsea.tch
andytex-doc.texi: tex-doc.texi tex-doc.tch
	$(TIE) -m andytex-doc.texi tex-doc.texi tex-doc.tch

$(kpathsea_dir)/paths.h: $(srcdir)/paths.h.in $(srcdir)/paths.hch.in
	- delete paths.h
	echo "/** paths.h: Generated from paths.h.in and paths.hch.in" >paths.h
	echo "   (`date`). **/" >> paths.h
	$(SED) \
	-e "s|:|,|g" \
	-e "s|(texmf_prefix)/|$(texmf_prefix):|g" \
	-e "s|(texinputdir)|$(texinputdir)|g" \
	-e "s|(mfinputdir)|$(mfinputdir)|g" \
	-e "s|(fontdir)|$(fontdir)|g" \
	-e "s|//src|/source|g" \
	-e "s|//tfm|/tfm//|g" \
	-e "s|//vf|/vf|g" \
	-e "s|//gf|/gf//|g" \
	-e "s|//pk|/pk|g" \
	-e "s|(fmtdir)|$(fmtdir)|g" \
	-e "s|(basedir)|$(basedir)|g" \
	-e "s|(texpooldir)|.,$(texpooldir)|g" \
	-e "s|(mfpooldir)|.,$(mfpooldir)|g" \
	$(srcdir)/paths.h.in > paths.h.temp
	$(SED) \
	-e "s|(configdir)|$(configdir)|g" \
	-e "s|(headerdir)|$(headerdir)|g" \
	-e "s|(psfontdir)|$(psfontdir)|g" \
	-e "s|(dvips_prefix)|$(dvips_prefix)|g" \
	-e "s|(psmacrodir)|$(psmacrodir)|g" \
	$(srcdir)/paths.h.temp >> paths.h
	@delete paths.h.temp >NIL:
	$(SED) \
	-e "s|:|,|g" \
	-e "s|(bibtexconfigdir)|$(bibtexconfigdir)|g" \
	-e "s|(mfconfigdir)|$(mfconfigdir)|g" \
	-e "s|(mpconfigdir)|$(mpconfigdir)|g" \
	-e "s|(texconfigdir)|$(texconfigdir)|g" \
	-e "s|(fontdir)|$(fontdir)|g" \
	-e "s|(memdir)|$(memdir)|g" \
	-e "s|(mpinputdir)|$(mpinputdir)|g" \
	-e "s|(mppooldir)|$(mppooldir)|g" \
	$(srcdir)/paths.hch.in >> paths.h

andytex-font.o:
	$(CC) $(CPPFLAGS) $(CFLAGS) \
	  define=DEFAULT_FONT_SIZES="$(default_texsizes)" \
	  $(srcdir)/andytex-font.c

# Need the define=HAVE_CONFIG_H.
gmalloc.o:
	$(CC) $(CPPFLAGS) define=HAVE_CONFIG_H $(CFLAGS) $(srcdir)/gmallo.c

guide: kpathsea.guide
kpathsea.guide: $(docs)

absolute.o : andyabsolute.o
	copy andyabsolute.o absolute.o
andyabsolute.o : andyabsolute.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h \
  $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h $(kpathsea_dir)/absolute.h $(kpathsea_dir)/c-pathch.h 
andyabsolute.c : absolute.c absolute.ch
	$(WMERGE) absolute.c absolute.ch andyabsolute.c
concat.o : concat.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h 
concat3.o : concat3.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h 
concatn.o : concatn.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h $(kpathsea_dir)/concatn.h $(kpathsea_dir)/c-vararg.h 
debug.o : debug.c $(kpathsea_dir)/debug.h 
default.o : default.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h $(kpathsea_dir)/c-pathch.h $(kpathsea_dir)/default.h 
dir.o : dir.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h $(kpathsea_dir)/c-stat.h \
  $(kpathsea_dir)/dir.h 
elt-dirs.o : andyelt-dirs.o
	copy andyelt-dirs.o elt-dirs.o
andyelt-dirs.o : andyelt-dirs.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h \
  $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h $(kpathsea_dir)/c-pathch.h $(kpathsea_dir)/dir.h \
  $(kpathsea_dir)/expand.h \
  $(kpathsea_dir)/fn.h $(kpathsea_dir)/pathsearch.h $(kpathsea_dir)/str-llist.h 
andyelt-dirs.c : elt-dirs.c elt-dirs.ch
	$(WMERGE) elt-dirs.c elt-dirs.ch andyelt-dirs.c
expand.o : expand.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h $(kpathsea_dir)/expand.h $(kpathsea_dir)/tilde.h $(kpathsea_dir)/variable.h 
extend-fname.o : extend-fname.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h \
  $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h 
file-p.o : file-p.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h $(kpathsea_dir)/c-stat.h 
find-suffix.o : find-suffix.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h \
  $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h $(kpathsea_dir)/c-pathch.h 
fn.o : fn.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h $(kpathsea_dir)/fn.h 
fontmap.o : fontmap.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h $(kpathsea_dir)/c-fopen.h $(kpathsea_dir)/fontmap.h $(kpathsea_dir)/line.h \
  $(kpathsea_dir)/pathsearch.h $(kpathsea_dir)/str-llist.h $(kpathsea_dir)/str-list.h 
gmalloc.o : gmalloc.c \
  getpagesize.h 
init-path.o : init-path.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h \
  $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h $(kpathsea_dir)/default.h $(kpathsea_dir)/init-path.h $(kpathsea_dir)/c-vararg.h 
itoa.o : itoa.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h 
line.o : andyline.o
	copy andyline.o line.o
andyline.o : andyline.c 
andyline.c : line.c line.ch
	$(WMERGE) line.c line.ch andyline.c
make-suffix.o : make-suffix.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h \
  $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h 
path-elt.o : path-elt.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h \
  $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h $(kpathsea_dir)/c-pathch.h $(kpathsea_dir)/pathsearch.h $(kpathsea_dir)/str-llist.h 
pathsearch.o : pathsearch.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h \
  $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h $(kpathsea_dir)/absolute.h $(kpathsea_dir)/expand.h $(kpathsea_dir)/pathsearch.h \
  $(kpathsea_dir)/str-llist.h $(kpathsea_dir)/readable.h $(kpathsea_dir)/str-list.h 
putenv.o : putenv.c ./c-auto.h 
readable.o : andyreadable.o
	copy andyreadable.o readable.o
andyreadable.o : andyreadable.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h \
  $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h $(kpathsea_dir)/c-stat.h \
  $(kpathsea_dir)/readable.h $(kpathsea_dir)/truncate.h 
andyreadable.c : readable.c readable.ch
	$(WMERGE) readable.c readable.ch andyreadable.c
rm-suffix.o : rm-suffix.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h \
  $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h 
str-list.o : str-list.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h \
  $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h $(kpathsea_dir)/str-list.h 
str-llist.o : str-llist.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h \
  $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h $(kpathsea_dir)/str-llist.h 
tex-font.o : andytex-font.o
	copy andytex-font.o tex-font.o
andytex-font.o : andytex-font.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h \
  $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h $(kpathsea_dir)/default.h $(kpathsea_dir)/pathsearch.h $(kpathsea_dir)/str-llist.h \
  $(kpathsea_dir)/andytex-font.h $(kpathsea_dir)/andyfilefmt.h $(kpathsea_dir)/init-path.h $(kpathsea_dir)/c-vararg.h \
  $(kpathsea_dir)/paths.h 
andytex-font.c : tex-font.c tex-font.ch
	$(WMERGE) tex-font.c tex-font.ch andytex-font.c
tex-glyph.o : andytex-glyph.o
	copy andytex-glyph.o tex-glyph.o
andytex-glyph.o : andytex-glyph.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h \
  $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h $(kpathsea_dir)/expand.h $(kpathsea_dir)/andyfilefmt.h $(kpathsea_dir)/init-path.h \
  $(kpathsea_dir)/c-vararg.h $(kpathsea_dir)/paths.h $(kpathsea_dir)/fontmap.h $(kpathsea_dir)/pathsearch.h \
  $(kpathsea_dir)/str-llist.h $(kpathsea_dir)/andytex-font.h $(kpathsea_dir)/andytex-glyph.h \
  $(kpathsea_dir)/andytex-make.h $(kpathsea_dir)/variable.h 
andytex-glyph.c : tex-glyph.c tex-glyph.ch
	$(WMERGE) tex-glyph.c tex-glyph.ch andytex-glyph.c
tex-make.o : andytex-make.o
	copy andytex-make.o tex-make.o
andytex-make.o : andytex-make.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h \
  $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h $(kpathsea_dir)/c-fopen.h $(kpathsea_dir)/concatn.h $(kpathsea_dir)/c-vararg.h \
  $(kpathsea_dir)/fn.h $(kpathsea_dir)/readable.h $(kpathsea_dir)/andytex-make.h $(kpathsea_dir)/andyfilefmt.h \
  $(kpathsea_dir)/init-path.h $(kpathsea_dir)/paths.h $(kpathsea_dir)/variable.h 
andytex-make.c : tex-make.c tex-make.ch
	$(WMERGE) tex-make.c tex-make.ch andytex-make.c
tilde.o : tilde.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h $(kpathsea_dir)/c-pathch.h $(kpathsea_dir)/tilde.h 
truncate.o : andytruncate.o
	copy andytruncate.o truncate.o
andytruncate.o : andytruncate.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h \
  $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h $(kpathsea_dir)/c-namemx.h $(kpathsea_dir)/c-pathch.h $(kpathsea_dir)/c-pathmx.h \
  $(kpathsea_dir)/truncate.h 
andytruncate.c : truncate.c truncate.ch
	$(WMERGE) truncate.c truncate.ch andytruncate.c
uppercasify.o : uppercasify.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h \
  $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h $(kpathsea_dir)/c-ctype.h 
variable.o : variable.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h \
  $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h $(kpathsea_dir)/c-ctype.h \
  $(kpathsea_dir)/fn.h $(kpathsea_dir)/variable.h 
version.o : version.c 
xcalloc.o : xcalloc.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h 
xfopen.o : xfopen.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h 
xmalloc.o : andyxmalloc.o
	copy andyxmalloc.o xmalloc.o
andyxmalloc.o : andyxmalloc.c
andyxmalloc.c : xmalloc.c xmalloc.ch
	$(WMERGE) xmalloc.c xmalloc.ch andyxmalloc.c
xopendir.o : xopendir.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h \
  $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h $(kpathsea_dir)/dir.h 
xputenv.o : andyxputenv.o
	copy andyxputenv.o xputenv.o
andyxputenv.o : andyxputenv.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h 
andyxputenv.c : xputenv.c xputenv.ch
	$(WMERGE) xputenv.c xputenv.ch andyxputenv.c
xrealloc.o : andyxrealloc.o
	copy andyxrealloc.o xrealloc.o
andyxrealloc.o : andyxrealloc.c 
andyxrealloc.c : xrealloc.c xrealloc.ch
	$(WMERGE) xrealloc.c xrealloc.ch andyxrealloc.c
xstat.o : xstat.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h $(kpathsea_dir)/xstat.h $(kpathsea_dir)/c-stat.h 
xstrdup.o : xstrdup.c $(kpathsea_dir)/config.h ./c-auto.h $(kpathsea_dir)/c-std.h \
  $(kpathsea_dir)/c-unistd.h $(kpathsea_dir)/systypes.h \
  $(kpathsea_dir)/c-memstr.h \
  $(kpathsea_dir)/c-errno.h \
  $(kpathsea_dir)/c-minmax.h $(kpathsea_dir)/c-limits.h \
  $(kpathsea_dir)/c-proto.h $(kpathsea_dir)/lib.h $(kpathsea_dir)/types.h \
  $(kpathsea_dir)/debug.h 

$(kpathsea_dir)/andyfilefmt.h : filefmt.h filefmt.hch
	$(WMERGE) filefmt.h filefmt.hch andyfilefmt.h
$(kpathsea_dir)/andytex-font.h : tex-font.h tex-font.hch
	$(WMERGE) tex-font.h tex-font.hch andytex-font.h
$(kpathsea_dir)/andytex-glyph.h : tex-glyph.h tex-glyph.hch
	$(WMERGE) tex-glyph.h tex-glyph.hch andytex-glyph.h
$(kpathsea_dir)/andytex-make.h : tex-make.h tex-make.hch
	$(WMERGE) tex-make.h tex-make.hch andytex-make.h

./c-auto.h: c-auto.h.in c-auto.h.ch
	$(WMERGE) c-auto.h.in c-auto.h.ch c-auto.h

clean:
	- delete \#?.(bak|o|lnk) stamp-\#?

veryclean: clean
	- delete $(lib) $(lib_20) $(doc) c-auto.h paths.h andy\#?
