#
#
LFLAG=-link /STACK:0x280000
WD=setargv.obj

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

CFLAGS=-nologo -O2 -MD $(DEFS)
PT=$(WD) ptex.lib
EPT=$(WD) eptex.lib

all: ptex-utf8.exe platex-utf8.exe

ptex-utf8.exe: ptex-utf8.obj
	cl -Fe$@ $< $(PT) $(LFLAG)

platex-utf8.exe: platex-utf8.obj
	cl -Fe$@ $< $(EPT) $(LFLAG)

ptex-utf8.obj: ptex-utf8.c
	cl $(CFLAGS) -Fo$@ -DDLLPROC=dllptexmain -c $<

platex-utf8.obj: platex-utf8.c
	cl $(CFLAGS) -Fo$@ -DDLLPROC=dlleptexmain -c $<
