# Generated automatically from Makefile.in by configure.
# Makefile for seetexk  -- S Rahtz s.rahtz@elsevier.co.uk
version = 1.0

# paths.make -- installation directories.
#
# The compile-time paths are defined in kpathsea/paths.h, which is built
# from kpathsea/texmf.in and these definitions.  See kpathsea/INSTALL
# for how the various path-related files are used and created.

# Do not change prefix and exec_prefix in Makefile.in!
# configure doesn't propagate the change to the other Makefiles.
# Instead, give the -prefix/-exec-prefix options to configure.
# (See kpathsea/INSTALL for more details.) This is arguably
# a bug, but it's not likely to change soon.
prefix = c:/usr/local
exec_prefix = ${prefix}

# Architecture-dependent executables.
bindir = ${exec_prefix}/bin

# Architecture-independent executables.
scriptdir = $(bindir)

# Architecture-dependent files, such as lib*.a files.
libdir = ${exec_prefix}/lib

# Architecture-independent files.
datadir = ${prefix}/share

# Header files.
includedir = ${prefix}/include

# GNU .info* files.
infodir = ${prefix}/info

# Unix man pages.
manext = 1
mandir = ${prefix}/man/man$(manext)

# TeX system-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/texmf.in. Passing all the
# paths to sub-makes can make the arg list too long on system V.
# Note that if you make changes below, you will have to make the
# corresponding changes to texmf.in or texmf.cnf yourself.

# The root of the main tree.
texmf = c:/usr/local/share/texmf

# The directory used by varfonts.
vartexfonts = c:/var/tex/fonts

# Regular input files.
texinputdir = $(texmf)/tex
mfinputdir = $(texmf)/metafont
mpinputdir = $(texmf)/metapost
mftinputdir = $(texmf)/mft

# dvips's epsf.tex, rotate.tex, etc. get installed here;
# ditto for dvilj's fonts support.
dvips_plain_macrodir = $(texinputdir)/plain/dvips
dvilj_latex2e_macrodir = $(texinputdir)/latex/dvilj

# mktex.cnf, texmf.cnf, etc.
web2cdir = $(texmf)/web2c

# The top-level font directory.
fontdir = $(texmf)/fonts

# Memory dumps (.fmt/.base/.mem).
fmtdir = $(web2cdir)
basedir = $(fmtdir)
memdir = $(fmtdir)

# Pool files.
texpooldir = $(web2cdir)
mfpooldir = $(texpooldir)
mppooldir = $(texpooldir)

# Where the .map files from fontname are installed.
fontnamedir = $(texmf)/fontname

# For dvips configuration files, psfonts.map, etc.
dvipsdir = $(texmf)/dvips

# For dvips .pro files, gsftopk's render.ps, etc.
psheaderdir = $(dvipsdir)

# 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).
# This list must be sorted in ascending order.
default_texsizes = 300:600

# End of paths.make.
# common.make -- used by all Makefiles.
SHELL = sh

top_srcdir = .
srcdir = .

CC = cl
CFLAGS = -nologo -MD -DWIN32=1 -DKPATHSEA=1 -D__STDC__=1 $(XCFLAGS)
#CFLAGS = -nologo -Od -Zi -MD -DWIN32=1 -DKPATHSEA=1 $(XCFLAGS)
CPPFLAGS =  $(XCPPFLAGS)

YDEFS = -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE \
-D_CRT_OBSOLETE_NO_DEPRECATE -D_SECURE_SCL=0 -DASCIIPTEX=1

DEFS = -DHAVE_CONFIG_H $(XDEFS) $(YDEFS)

# Kpathsea needs this for compiling, programs need it for linking.
LIBTOOL =

# You can change [X]CPPFLAGS, [X]CFLAGS, or [X]DEFS, but
# please don't change ALL_CPPFLAGS or ALL_CFLAGS.
# prog_cflags is set by subdirectories of web2c.
ALL_CPPFLAGS = $(DEFS) -I. -I$(srcdir) $(prog_cflags) \
  -I$(kpathsea_parent) -I$(kpathsea_srcdir_parent) $(CPPFLAGS)
ALL_CFLAGS = $(ALL_CPPFLAGS) $(CFLAGS) -c
compile = $(CC) $(ALL_CFLAGS)

.SUFFIXES: .c .obj # in case the suffix list has been cleared, e.g., by web2c
.c.obj:
	$(compile) $<

# Installation.
INSTALL = cp
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = $(INSTALL_PROGRAM)
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_LIBTOOL_LIBS = INSTALL_DATA='$(INSTALL_DATA)' $(LIBTOOL) install-lib
INSTALL_LIBTOOL_PROG = INSTALL_PROGRAM='$(INSTALL_PROGRAM)' $(LIBTOOL) install-prog

# Creating (symbolic) links.
LN = ln

# We use these for many things.
kpathsea_parent = ..
kpathsea_dir = $(kpathsea_parent)/kpathsea
kpathsea_srcdir_parent = $(top_srcdir)/..
kpathsea_srcdir = $(kpathsea_srcdir_parent)/kpathsea
kpathsea = $(kpathsea_dir)/kpathsealib.lib

LDFLAGS =  $(XLDFLAGS)

# proglib is for web2c; 
# XLOADLIBES is for the installer.
LIBS = 
LOADLIBES = $(proglib) $(kpathsea) $(LIBS) $(XLOADLIBES)

# May as well separate linking from compiling, just in case.
CCLD = $(CC)
link_command = $(CCLD) -Fe$@ $(LDFLAGS) 

# When we link with Kpathsea, have to take account that it might be a
# shared library, etc.
kpathsea_link = $(link_command)
# End of programs.make.
# texi.make -- making .dvi and .info from .texi.
MAKEINFO = makeinfo
MAKEINFO_FLAGS = --paragraph-indent=2 -I$(srcdir)

TEXI2DVI = texi2dvi
#M## To make sure that generation of the dvi files succeeds on the
#M## maintainer's system.
#M#TEXI2DVI = TEXMFCNF=$(web2cdir) texi2dvi

TEXI2HTML = texi2html
TEXI2HTML_FLAGS = -expandinfo -number -menu -split_chapter
# If you prefer one big .html file instead of several, remove
# -split-node or replace it by -split_chapter.

# For making normal text files out of Texinfo source.
one_info = --no-headers --no-split --no-validate

.SUFFIXES: .info .dvi .html .texi
.texi.info:
	$(MAKEINFO) $(MAKEINFO_FLAGS) $< -o $@
.texi.dvi:
	$(TEXI2DVI) $(TEXI2DVI_FLAGS) $<
.texi.html:
	$(TEXI2HTML) $(TEXI2HTML_FLAGS) $< 
# End of texi.make.
prog_cflags = -DKPATHSEA=1 -DHAVE_CONFIG_H \
	      -I$(kpathsea_dir) -I$(kpathsea_srcdir)

RANLIB=
AR=lib

ALLLIBOBJS= dviclass.obj error.obj fio.obj gripes0.obj gripes1.obj \
        search.obj seek.obj tempfile.obj

LIBOBJS= error.obj fio.obj search.obj gripes0.obj gripes1.obj \
        dviclass.obj tempfile.obj seek.obj

LIBSRCS= error.c fio.c search.c gripes0.c gripes1.c \
        dviclass.c tempfile.c seek.c

library = tex

objects = dviconcat.obj dviselect.obj dvibook.obj dvitodvi.obj

program = dviconcat.exe dviselect.exe dvibook.exe dvitodvi.exe
programs =$(program)

default all: $(programs) 

libtex.lib: $(LIBOBJS)
	$(AR) -out:$@  $(LIBOBJS)

dviconcat.exe: $(kpathsea) dviconcat.obj libtex.lib
	$(kpathsea_link) dviconcat.obj setargv.obj libtex.lib $(LOADLIBES)

dviselect.exe: $(kpathsea) dviselect.obj libtex.lib
	$(kpathsea_link) dviselect.obj setargv.obj libtex.lib $(LOADLIBES) 

dvibook.exe: $(kpathsea) dvibook.obj libtex.lib
	$(kpathsea_link) dvibook.obj setargv.obj libtex.lib $(LOADLIBES) 

dvitodvi.exe: $(kpathsea) dvitodvi.obj libtex.lib
	$(kpathsea_link) dvitodvi.obj setargv.obj libtex.lib $(LOADLIBES) 

# tkpathsea.make -- target for remaking kpathsea.
makeargs = $(MFLAGS) CC='$(CC)' CFLAGS='$(CFLAGS)' $(XMAKEARGS)

BINS=dvibook.exe dviconcat.exe dviselect.exe dvitodvi.exe
install: $(BINS)
	cp -p $(BINS) c:/usr/local/txdir/w32tex/bin/
	cp -p $(BINS) c:/usr/work/edrive/wk/dist/DVITOOLS/bin/


uninstall: uninstall-exec uninstall-data

install-exec: all
	$(SHELL) $(top_srcdir)/../mkinstalldirs $(bindir)
	for p in $(programs); do $(INSTALL_LIBTOOL_PROG) $(bindir) $$p; done
uninstall-exec:
	for p in $(programs); do rm -f $(bindir)/$$p; done

install-data: 
	$(SHELL) $(top_srcdir)/../mkinstalldirs  $(mandir)
	$(INSTALL_DATA) $(srcdir)/dviselect.man $(mandir)/dviselect.1
	$(INSTALL_DATA) $(srcdir)/dviconcat.man $(mandir)/dviconcat.1
	$(INSTALL_DATA) $(srcdir)/dvibook.man $(mandir)/dvibook.1
	$(INSTALL_DATA) $(srcdir)/dvitodvi.man $(mandir)/dvitodvi.1

uninstall-data:
	rm -f $(mandir)/dviselect.1
	rm -f $(mandir)/dviconcat.1
	rm -f $(mandir)/dvibook.1
	rm -f $(mandir)/dvitodvi.1

distname = seetexk

# clean.make -- cleaning.
mostlyclean::
	rm -f *.obj

clean:: mostlyclean
	rm -f $(program) $(programs) squeeze.exe lib$(library).* $(library).lib *.bad
	rm -f *.exe *.dvi *.lj *~

distclean:: extraclean clean
	rm -f config.status config.log config.cache c-auto.h
	rm -f stamp-auto stamp-tangle stamp-otangle

maintainer-clean:: distclean
	rm -f *.info*

extraclean::
	rm -f *.aux *.bak *.bbl *.blg *.dvi *.log *.pl *.tfm *.vf *.vpl
	rm -f *.*pk *.*gf *.mpx *.i *.s *~ *.orig  *.rej *\#*
	rm -f CONTENTS.tex a.out core mfput.* texput.* mpout.*

configclean:
	rm -f configure c-auto.in c-auto.h stamp-*
TAGS: *.c *.h
	pwd | grep kpathsea >/dev/null && append=../kpathsea/TAGS; \
	  etags $$append *.[ch]

# Prevent GNU make 3.[59,63) from overflowing arg limit on system V.
.NOEXPORT:

# DO NOT DELETE

dvibook.obj: dvibook.c ../kpathsea/c-auto.h ../kpathsea/c-errno.h \
 ../kpathsea/c-fopen.h ../kpathsea/c-limits.h ../kpathsea/c-memstr.h \
 ../kpathsea/c-minmax.h ../kpathsea/c-proto.h ../kpathsea/c-std.h \
 ../kpathsea/c-unistd.h ../kpathsea/config.h ../kpathsea/debug.h \
 ../kpathsea/getopt.h ../kpathsea/hash.h ../kpathsea/knj.h \
 ../kpathsea/lib.h ../kpathsea/progname.h ../kpathsea/str-list.h \
 ../kpathsea/str-llist.h ../kpathsea/systypes.h ../kpathsea/types.h \
 ../kpathsea/win32lib.h ./config.h dviclass.h dvicodes.h error.h fio.h \
 font.h gripes.h search.h seek.h types.h
dviconcat.obj: dviconcat.c ../kpathsea/c-auto.h ../kpathsea/c-errno.h \
 ../kpathsea/c-fopen.h ../kpathsea/c-limits.h ../kpathsea/c-memstr.h \
 ../kpathsea/c-minmax.h ../kpathsea/c-proto.h ../kpathsea/c-std.h \
 ../kpathsea/c-unistd.h ../kpathsea/config.h ../kpathsea/debug.h \
 ../kpathsea/getopt.h ../kpathsea/hash.h ../kpathsea/knj.h \
 ../kpathsea/lib.h ../kpathsea/progname.h ../kpathsea/str-list.h \
 ../kpathsea/str-llist.h ../kpathsea/systypes.h ../kpathsea/types.h \
 ../kpathsea/win32lib.h ./config.h dviclass.h dvicodes.h error.h fio.h \
 font.h gripes.h search.h types.h
dvitodvi.obj: dvitodvi.c ../kpathsea/c-auto.h ../kpathsea/c-errno.h \
 ../kpathsea/c-fopen.h ../kpathsea/c-limits.h ../kpathsea/c-memstr.h \
 ../kpathsea/c-minmax.h ../kpathsea/c-proto.h ../kpathsea/c-std.h \
 ../kpathsea/c-unistd.h ../kpathsea/config.h ../kpathsea/debug.h \
 ../kpathsea/getopt.h ../kpathsea/hash.h ../kpathsea/knj.h \
 ../kpathsea/lib.h ../kpathsea/progname.h ../kpathsea/str-list.h \
 ../kpathsea/str-llist.h ../kpathsea/systypes.h ../kpathsea/types.h \
 ../kpathsea/win32lib.h ./config.h dviclass.h dvicodes.h error.h fio.h \
 font.h gripes.h search.h seek.h types.h
fio.obj: fio.c ../kpathsea/c-auto.h ../kpathsea/c-errno.h \
 ../kpathsea/c-limits.h ../kpathsea/c-memstr.h ../kpathsea/c-minmax.h \
 ../kpathsea/c-proto.h ../kpathsea/c-std.h ../kpathsea/c-unistd.h \
 ../kpathsea/config.h ../kpathsea/debug.h ../kpathsea/hash.h \
 ../kpathsea/knj.h ../kpathsea/lib.h ../kpathsea/progname.h \
 ../kpathsea/str-list.h ../kpathsea/str-llist.h ../kpathsea/systypes.h \
 ../kpathsea/types.h ../kpathsea/win32lib.h error.h fio.h types.h
gripes1.obj: gripes1.c ../kpathsea/c-auto.h ../kpathsea/c-errno.h \
 ../kpathsea/c-limits.h ../kpathsea/c-memstr.h ../kpathsea/c-minmax.h \
 ../kpathsea/c-proto.h ../kpathsea/c-std.h ../kpathsea/c-unistd.h \
 ../kpathsea/config.h ../kpathsea/debug.h ../kpathsea/hash.h \
 ../kpathsea/knj.h ../kpathsea/lib.h ../kpathsea/progname.h \
 ../kpathsea/str-list.h ../kpathsea/str-llist.h ../kpathsea/systypes.h \
 ../kpathsea/types.h ../kpathsea/win32lib.h error.h font.h gripes.h types.h
seek.obj: seek.c ../kpathsea/c-auto.h ../kpathsea/c-errno.h \
 ../kpathsea/c-fopen.h ../kpathsea/c-limits.h ../kpathsea/c-memstr.h \
 ../kpathsea/c-minmax.h ../kpathsea/c-proto.h ../kpathsea/c-std.h \
 ../kpathsea/c-unistd.h ../kpathsea/config.h ../kpathsea/debug.h \
 ../kpathsea/hash.h ../kpathsea/knj.h ../kpathsea/lib.h \
 ../kpathsea/progname.h ../kpathsea/str-list.h ../kpathsea/str-llist.h \
 ../kpathsea/systypes.h ../kpathsea/types.h ../kpathsea/win32lib.h \
 ./config.h seek.h tempfile.h types.h
dviclass.obj: dviclass.c dviclass.h
dviselect.obj: dviselect.c ../kpathsea/c-auto.h ../kpathsea/c-errno.h \
 ../kpathsea/c-fopen.h ../kpathsea/c-limits.h ../kpathsea/c-memstr.h \
 ../kpathsea/c-minmax.h ../kpathsea/c-proto.h ../kpathsea/c-std.h \
 ../kpathsea/c-unistd.h ../kpathsea/config.h ../kpathsea/debug.h \
 ../kpathsea/getopt.h ../kpathsea/hash.h ../kpathsea/knj.h \
 ../kpathsea/lib.h ../kpathsea/progname.h ../kpathsea/str-list.h \
 ../kpathsea/str-llist.h ../kpathsea/systypes.h ../kpathsea/types.h \
 ../kpathsea/win32lib.h ./config.h dviclass.h dvicodes.h error.h fio.h \
 font.h gripes.h search.h types.h
error.obj: error.c ../kpathsea/c-auto.h ../kpathsea/c-errno.h \
 ../kpathsea/c-limits.h ../kpathsea/c-memstr.h ../kpathsea/c-minmax.h \
 ../kpathsea/c-proto.h ../kpathsea/c-std.h ../kpathsea/c-unistd.h \
 ../kpathsea/config.h ../kpathsea/debug.h ../kpathsea/hash.h \
 ../kpathsea/knj.h ../kpathsea/lib.h ../kpathsea/progname.h \
 ../kpathsea/str-list.h ../kpathsea/str-llist.h ../kpathsea/systypes.h \
 ../kpathsea/types.h ../kpathsea/win32lib.h ./config.h error.h tempfile.h \
 types.h
gripes0.obj: gripes0.c ../kpathsea/c-auto.h ../kpathsea/c-errno.h \
 ../kpathsea/c-limits.h ../kpathsea/c-memstr.h ../kpathsea/c-minmax.h \
 ../kpathsea/c-proto.h ../kpathsea/c-std.h ../kpathsea/c-unistd.h \
 ../kpathsea/config.h ../kpathsea/debug.h ../kpathsea/hash.h \
 ../kpathsea/knj.h ../kpathsea/lib.h ../kpathsea/progname.h \
 ../kpathsea/str-list.h ../kpathsea/str-llist.h ../kpathsea/systypes.h \
 ../kpathsea/types.h ../kpathsea/win32lib.h error.h font.h gripes.h types.h
search.obj: search.c ../kpathsea/c-auto.h ../kpathsea/c-errno.h \
 ../kpathsea/c-limits.h ../kpathsea/c-memstr.h ../kpathsea/c-minmax.h \
 ../kpathsea/c-proto.h ../kpathsea/c-std.h ../kpathsea/c-unistd.h \
 ../kpathsea/config.h ../kpathsea/debug.h ../kpathsea/hash.h \
 ../kpathsea/knj.h ../kpathsea/lib.h ../kpathsea/progname.h \
 ../kpathsea/str-list.h ../kpathsea/str-llist.h ../kpathsea/systypes.h \
 ../kpathsea/types.h ../kpathsea/win32lib.h search.h types.h
tempfile.obj: tempfile.c ../kpathsea/c-auto.h ../kpathsea/c-errno.h \
 ../kpathsea/c-fopen.h ../kpathsea/c-limits.h ../kpathsea/c-memstr.h \
 ../kpathsea/c-minmax.h ../kpathsea/c-proto.h ../kpathsea/c-std.h \
 ../kpathsea/c-unistd.h ../kpathsea/config.h ../kpathsea/debug.h \
 ../kpathsea/hash.h ../kpathsea/knj.h ../kpathsea/lib.h \
 ../kpathsea/progname.h ../kpathsea/str-list.h ../kpathsea/str-llist.h \
 ../kpathsea/systypes.h ../kpathsea/types.h ../kpathsea/win32lib.h \
 ./config.h tempfile.h types.h
