# Generated automatically from Makefile.in by configure.
# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am

# Copyright (C) 1994, 1995-8, 1999, 2001 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.


SHELL = sh
MAKE = make
# UNIX/Linux (check /usr/local/share/texmf)
prefix = c:/usr/local
# SUN Solaris (check /usr/local/teTeX)
#prefix = /usr/local/teTeX
# CYGWIN (check /usr/share/texmf)
#prefix = /usr
exec_prefix = ${prefix}

bindir = ${exec_prefix}/bin
libdir = ${exec_prefix}/lib
mandir = ${prefix}/man
includedir = ${prefix}/include

INSTALL = cp
transform = s,x,x,

NORMAL_INSTALL = :
NORMAL_UNINSTALL = :
CC = cl
LN_S = ln
PACKAGE = dvipos
VERSION = 20070107

PROGRAMS = dvipos.exe
SOURCES = dvicore.c dvipos.c tfm.c utils.c dvicore.h tfm.h utils.h

#mkinstalldirs = $(SHELL) ./mkinstalldirs

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

DEFS = -DKPATHSEA=1 -DWIN32=1 -I. $(YDEFS)
CPPFLAGS = -I.. -I../kpathsea
LDFLAGS =
LIBS = ../kpathsea/kpathsealib.lib
OBJECTS = dvicore.obj dvipos.obj tfm.obj utils.obj

CFLAGS = -nologo -MD -O2
COMPILE = $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS)
LINK = $(CC) -Fe$@ $(CFLAGS) $(LDFLAGS)

all: $(PROGRAMS)
.SUFFIXES: .c .obj

clean:
	-rm -f *.obj *.exe *~

install: dvipos.exe
	cp -p dvipos.exe c:/usr/local/txdir/w32tex/bin/
	cp -p dvipos.exe c:/usr/work/edrive/wk/dist/WEB2CBIN/bin/


install-man: dvipos.1
	$(INSTALL) dvipos.1 $(mandir)/man1/

uninstall:
	@$(NORMAL_UNINSTALL)
	list='$(PROGRAMS)'; for p in $$list; do \
	  rm -f $(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
	done

uninstall-man:
	rm -f $(mandir)/man1/dvipos.1

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

dvipos.exe: $(OBJECTS) $(LIBS)
	@rm -f dvipos.exe
	$(LINK) $(LDFLAGS) $(OBJECTS) setargv.obj $(LDADD) $(LIBS)

dvipos.obj: dvipos.c dvicore.h utils.h
dvicore.obj: dvicore.c dvicore.h tfm.h utils.h
tfm.obj: tfm.c tfm.h dvicore.h utils.h
utils.obj: utils.c utils.h
