KPSELIB=../../kpathsea/libkpathsea.lib
CC=cl
CFLAGS=-MT -W3 -EHsc -I. -I../src -I../othersrc/gsdllinc \
-DDEFAULTGS=rungs -D_CRT_SECURE_NO_WARNINGS=1 -DNO_KPSE_DLL=1
DODEBUG=

SYSLIB=advapi32.lib user32.lib shell32.lib

pstoedit.exe: pstoedit.obj
	$(CC) -Fe$@ pstoedit.obj $(KPSELIB) $(SYSLIB) $(DODEBUG)

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

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

MYDIR=c:/usr/local/txdir/w32tex/bin
DISTDIR=c:/usr/work/edrive/wk/dist/PSTOEDIT/bin

install: pstoedit.exe
	cp -p pstoedit.exe $(MYDIR)/
	cp -p pstoedit.exe $(DISTDIR)/
