# Copyright (C) 2000, Ghostgum Software Pty Ltd.  All rights reserved.
#  
# This file is part of GSview.
#  
# This program is distributed with NO WARRANTY OF ANY KIND.  No author
# or distributor accepts any responsibility for the consequences of using it,
# or for whether it serves any particular purpose or works at all, unless he
# or she says so in writing.  Refer to the GSview Free Public Licence 
# (the "Licence") for full details.
#  
# Every copy of GSview must include a copy of the Licence, normally in a 
# plain ASCII text file named LICENCE.  The Licence grants you the right 
# to copy, modify and redistribute GSview, but only under certain conditions 
# described in the Licence.  Among other things, the Licence requires that 
# the copyright notice and this notice be preserved on all copies.

# makefile.msc - for Microsoft Visual C++ 5.0
# EPSTOOL

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

CFLAGS=-nologo -MD -Os -D__WIN32__=1 -DEPSTOOL=1 $(YDEFS) -I. -I.
CC=cl

OBJS=epstool.obj gvceps.obj ps.obj

all: epstool.exe

.c.obj:
	$(CC) $(CFLAGS) -c $<

epstool.obj: epstool.c epstool.h ps.h gvceps.c

ps.obj: ps.c epstool.h ps.h gvceps.c
	$(CC) -c $(CFLAGS) ps.c

gvceps.obj: gvceps.c epstool.h ps.h
	$(CC) -c $(CFLAGS) gvceps.c

epstool.exe: $(OBJS)
	$(CC) -Feepstool.exe $(OBJS)

veryclean: clean
	rm -f epstool.exe
	rm -f epstool2.exe

clean::
	rm -f epstool.map *~
	rm -f epstool.obj
	rm -f ps.obj
	rm -f gvceps.obj

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