# Generated automatically from Makefile.in by configure.
# 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 = ${DJDIR}
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 = ${DJDIR}/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:/bin/gcc/share/texmf

# The directory used by varfonts.
vartexfonts = /var/tmp/texfonts

# 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 = /bin/sh

top_srcdir = .
srcdir = .

CC = gcc
CFLAGS = -g -O2 $(XCFLAGS)
CPPFLAGS =  $(XCPPFLAGS)
DEFS = -DHAVE_CONFIG_H $(XDEFS)

# Kpathsea needs this for compiling, programs need it for linking.
LIBTOOL = $(kpathsea_srcdir_parent)/klibtool

# 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 .o # in case the suffix list has been cleared, e.g., by web2c
.c.o:
	$(compile) $<

# Installation.
INSTALL = c:/bin/gcc/bin/ginstall -c
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)/libkpathsea.la

#M#ifeq ($(CC), gcc)
#M#XDEFS = -D__USE_FIXED_PROTOTYPES__ -Wall -Wpointer-arith $(warn_more)
#M#CFLAGS = -pipe -g $(XCFLAGS)
#M#endif
# End of common.make.
# programs.make -- used by Makefiles for executables only.

# Don't include $(CFLAGS), since ld -g under Linux forces
# static libraries, e.g., libc.a and libX*.a.
LDFLAGS =  $(XLDFLAGS)

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

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

# When we link with Kpathsea, have to take account that it might be a
# shared library, etc.
kpathsea_link = $(LIBTOOL) 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.
#LDZLIB = $(ZLIBDIR)/libz.a
#ZLIBDEP = $(ZLIBDIR)/libz.a
#ZLIBDIR=../../libs/zlib
LDZLIB  =
ZLIBDEP =
ZLIBDIR =
ZLIBSRCDIR=$(srcdir)/$(ZLIBDIR)
XCPPFLAGS=-I..  -I.. -I$(srcdir)/.. -I$(ZLIBDIR) -I$(ZLIBSRCDIR)
prog_cflags = -DKPATHSEA 
programs=dvipdfm ebb

headers=dvi.h pdflimits.h error.h mfileio.h jpeg.h mem.h numbers.h \
	pdfdev.h pdfdoc.h pdfparse.h pdfspecial.h tfm.h type1.h epdf.h \
	vf.h dvicodes.h t1crypt.h
src=pdfdev.c pdfdoc.c dvi.c mfileio.c mem.c jpeg.c numbers.c pdfobj.c \
	pdfparse.c pdfspecial.c tfm.c type1.c dvipdfm.c epdf.c vf.c t1crypt.c
objects=pdfdev.o pdfdoc.o dvi.o mfileio.o mem.o jpeg.o numbers.o pdfobj.o \
        pdfparse.o pdfspecial.o tfm.o type1.o dvipdfm.o epdf.o vf.o t1crypt.o
eobjects=ebb.o jpeg.o pdfobj.o mem.o mfileio.o numbers.o pdfparse.o

check default all: $(programs) 

ebb:$(kpathsea) $(eobjects)
	$(kpathsea_link) $(eobjects) $(LOADLIBES) $(LDZLIB)

dvipdfm:$(kpathsea) $(objects)
	$(kpathsea_link) $(objects) $(LOADLIBES) $(LDZLIB)

$(ZLIBDIR)/libz.a: $(ZLIBSRCDIR)
	cd $(ZLIBDIR) && $(MAKE) $(common_makeargs) libz.a

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

# This is wrong: the library doesn't depend on kpsewhich.c or
# acconfig.h.  But what to do?
$(kpathsea): $(kpathsea_srcdir)/*.c $(kpathsea_srcdir)/*.h \
	     $(kpathsea_srcdir)/texmf.in $(top_srcdir)/../make/paths.make
	cd $(kpathsea_dir) && $(MAKE) $(makeargs)
# End of tkpathsea.make.


install: install-exec install-data
uninstall: uninstall-exec uninstall-data

install-exec: all
	$(SHELL) $(top_srcdir)/../mkinstalldirs $(bindir) 
	$(INSTALL_LIBTOOL_PROG) $(bindir) $(programs)
install-data:
# psfonts.map.
	$(SHELL) $(top_srcdir)/../mkinstalldirs $(psheaderdir)/dvipdfm
	if test ! -r $(psheaderdir)/dvipdfm/pdffonts.map \
	   || grep 'original pdffonts.map --' $(psheaderdir)/dvipdfm/pdffonts.map \
	   >/dev/null; then  \
	   $(INSTALL_DATA) $(srcdir)/pdffonts.map $(psheaderdir)/dvipdfm/pdffonts.map; \
	else true; fi

uninstall-exec:
	rm -f $(bindir)/$(programs)

uninstall-data:
	if grep 'original pdffonts.map --' $(psheaderdir)/dvipdfm/pdffonts.map \
	   >/dev/null 2>&1; then rm -f $(psheaderdir)/dvipdfm/pdffonts.map; \
	else true; fi
 
# dist.make -- making distribution tar files.
#M#top_distdir = $(distname)-$(version)
#M#top_files = ChangeLog Makefile.in README configure.in configure \
#M#  install.sh acklibtool.m4 config.guess config.sub klibtool \
#M#  mkinstalldirs add-info-toc rename unbackslsh.awk withenable.ac
#M#distdir = $(top_distdir)/$(distname)
#M#kpathsea_distdir = ../$(distname)/$(top_distdir)/kpathsea
#M#ln_files = AUTHORS ChangeLog INSTALL NEWS README *.in *.h *.c \
#M#  configure *.make
#M#
#M#dist_rm_predicate = -name Makefile
#M#dist: all depend pre-dist-$(distname)
#M#	rm -rf $(top_distdir)*
#M#	mkdir -p $(distdir)
#M#	cd .. && make Makefile ./configure
#M#	cd .. && ln $(top_files) $(distname)/$(top_distdir)
#M#	cp -p $(top_srcdir)/../dir $(top_distdir)
#M#	-ln $(ln_files) $(distdir)
#M#	ln $(program_files) $(distdir)
#M#	cd $(kpathsea_dir); $(MAKE) distdir=$(kpathsea_distdir) \
#M#	  ln_files='$(ln_files)' distdir
#M#	cp -pr ../make ../etc ../djgpp $(top_distdir)
#M#	rm -rf $(top_distdir)/make/CVS
#M#	rm -rf $(top_distdir)/etc/CVS
#M#	rm -rf $(top_distdir)/etc/autoconf/CVS
#M#	rm -rf $(top_distdir)/djgpp/CVS
#M## Remove the extra files our patterns got us.
#M#	cd $(top_distdir); rm -f */c-auto.h
#M#	find $(top_distdir) \( $(dist_rm_predicate) \) -exec rm '{}' \;
#M#	find $(top_distdir) -name \.*texi -exec egrep -ni '	| ::|xx[^}]' \;
#M## Now handle the contrib dir.
#M#	mkdir -p $(top_distdir)/contrib && \
#M#	  cp -p ../contrib/{ChangeLog,INSTALL,Makefile,README,*.c,*.h} \
#M#	        $(top_distdir)/contrib
#M#	$(MAKE) post-dist-$(distname)
#M#	cd $(distdir); test ! -r *.info || touch *.info*
#M#	chmod -R a+rX,u+w $(top_distdir)
#M#	GZIP=-9 tar chzf $(top_distdir).tar.gz $(top_distdir)
#M#	rm -rf $(top_distdir)
# End of dist.make.
# ac_include ../make/config.make
# clean.make -- cleaning.
mostlyclean::
	rm -f *.o

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

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

# Although we can remake configure and c-auto.in, we don't remove
# them, since many people may lack Autoconf.  Use configclean for that.
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-*
# End of clean.make.
# rdepend.make -- rules for remaking the dependencies.
#M## 
#M## Have to use -M, not -MM, since we use <kpathsea/...> instead of
#M## "kpathsea/..." in the sources.  But that means we have to remove the
#M## directory prefixes and all the system include files.
#M## And <kpathsea/paths.h> is generated, not part of the distribution.
#M## 
#M## And, there's no need for any installer/user to ever run this, it can
#M## only cause trouble. So comment it out in the distribution.
#M## (It doesn't work when the source and build directories are different.)
#M#ifndef c_auto_h_dir
#M#c_auto_h_dir = .
#M#endif
#M#
#M#depend depend.make:: $(c_auto_h_dir)/c-auto.h \
#M#  $(top_srcdir)/../make/rdepend.make 
#M#	$(CC) -M $(ALL_CPPFLAGS) -I$(c_auto_h_dir) *.c \
#M#	  | sed -e 's,\(\.\./\)\+kpathsea/,$$(kpathsea_srcdir)/,g' \
#M#	        -e 's,$$(kpathsea_srcdir)/c-auto.h,$$(kpathsea_dir)/c-auto.h,g' \
#M#	        -e 's,$$(kpathsea_srcdir)/paths.h,$$(kpathsea_dir)/paths.h,g' \
#M#	        -e 's,/usr[^ ]* ,,g' \
#M#	        -e 's,/usr[^ ]*$$,,g' \
#M#	        -e 's,dvi2xx.o,dvilj.o dvilj2p.o dvilj4.o dvilj4l.o,' \
#M#	        -e 's,lex.yy,$$(LEX_OUTPUT_ROOT),g' \
#M#	  | $(top_srcdir)/../unbackslsh.awk \
#M#	  >depend.make
#M## If kpathsea, we're making .lo library objects instead of .o's.
#M#	pwd | grep -v kpathsea >/dev/null \
#M#	  || (sed -e 's/\.o:/.lo:/' \
#M#	          -e 's/kpsewhich.lo:/kpsewhich.o:/' \
#M#	          -e 's/kpsestat.lo:/kpsestat.o:/' \
#M#	          -e 's/access.lo:/access.o:/' \
#M#	          -e 's/readlink.lo:/readlink.o:/' \
#M#	      <depend.make >depend-tmp.make; mv depend-tmp.make depend.make)
#M#.PHONY: depend

# Let's stick a rule for TAGS here, just in case someone wants them.
# (We don't put them in the distributions, to keep them smaller.)
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:

# End of rdepend.make.
pdfdev.o: pdfdev.c pdfdev.h numbers.h pdfdoc.h pdfobj.h error.h \
 system.h type1.h mem.h mfileio.h pdfspecial.h pdflimits.h tfm.h dvi.h
pdfdoc.o: pdfdoc.c c-auto.h system.h pdflimits.h pdfobj.h error.h \
 mem.h pdfdoc.h pdfspecial.h numbers.h pdfdev.h mfileio.h
dvi.o: dvi.c error.h system.h numbers.h mfileio.h pdflimits.h pdfdev.h \
 pdfdoc.h pdfobj.h tfm.h mem.h dvi.h vf.h dvicodes.h
mfileio.o: mfileio.c mfileio.h numbers.h error.h system.h
mem.o: mem.c mem.h
jpeg.o: jpeg.c system.h mfileio.h numbers.h mem.h jpeg.h pdfobj.h \
 pdfspecial.h dvi.h error.h pdfdev.h
numbers.o: numbers.c numbers.h error.h system.h mfileio.h
pdfobj.o: pdfobj.c pdflimits.h system.h pdfobj.h mem.h error.h \
 mfileio.h numbers.h pdfspecial.h pdfparse.h c-auto.h
pdfparse.o: pdfparse.c system.h pdfparse.h numbers.h pdfobj.h \
 pdfspecial.h pdfdoc.h pdfdev.h mem.h dvi.h error.h mfileio.h
pdfspecial.o: pdfspecial.c system.h pdflimits.h pdfspecial.h numbers.h \
 pdfobj.h pdfdoc.h pdfdev.h pdfparse.h mem.h dvi.h error.h mfileio.h \
 jpeg.h epdf.h
tfm.o: tfm.c system.h pdflimits.h numbers.h error.h mfileio.h mem.h
type1.o: type1.c system.h pdfobj.h mem.h error.h mfileio.h numbers.h \
 type1.h tfm.h pdfparse.h pdflimits.h t1crypt.h winansi.h \
 standardenc.h
dvipdfm.o: dvipdfm.c c-auto.h dvi.h error.h system.h numbers.h \
 pdfdev.h mem.h pdfdoc.h pdfobj.h type1.h pdfspecial.h pdfparse.h vf.h
epdf.o: epdf.c system.h pdfobj.h pdfdoc.h pdfspecial.h numbers.h \
 mfileio.h epdf.h mem.h
vf.o: vf.c pdflimits.h numbers.h mem.h error.h system.h tfm.h pdfdev.h \
 dvi.h vf.h dvicodes.h
t1crypt.o: t1crypt.c



