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

CFLAGS= -nologo -DWIN32=1 -D_WIN32=1 -D_MSC_VER -MD -O2 -I. \
-I../lib/type1 -I../lib/t1lib $(DEFS)

OBJS=arith.obj \
curves.obj \
fontfcn.obj \
hints.obj \
lines.obj \
objects.obj \
parseAFM.obj \
paths.obj \
regions.obj \
scanfont.obj \
spaces.obj \
t1aaset.obj \
t1afmtool.obj \
t1base.obj \
t1delete.obj \
t1enc.obj \
t1env.obj \
t1finfo.obj \
t1io.obj \
t1load.obj \
t1outline.obj \
t1set.obj \
t1snap.obj \
t1stub.obj \
t1trans.obj \
token.obj \
type1.obj \
util.obj

../lib/libt1.lib: $(OBJS)
	rm -f $@
	lib -out:$@ $(OBJS)

arith.obj: ../lib/type1/arith.c
	cl -c -Fo$@ $(CFLAGS) $<

curves.obj: ../lib/type1/curves.c
	cl -c -Fo$@ $(CFLAGS) $<

fontfcn.obj: ../lib/type1/fontfcn.c
	cl -c -Fo$@ $(CFLAGS) $<

hints.obj: ../lib/type1/hints.c
	cl -c -Fo$@ $(CFLAGS) $<

lines.obj: ../lib/type1/lines.c
	cl -c -Fo$@ $(CFLAGS) $<

objects.obj: ../lib/type1/objects.c
	cl -c -Fo$@ $(CFLAGS) $<

parseAFM.obj: ../lib/t1lib/parseAFM.c
	cl -c -Fo$@ $(CFLAGS) $<

paths.obj: ../lib/type1/paths.c
	cl -c -Fo$@ $(CFLAGS) $<

regions.obj: ../lib/type1/regions.c
	cl -c -Fo$@ $(CFLAGS) $<

scanfont.obj: ../lib/type1/scanfont.c
	cl -c -Fo$@ $(CFLAGS) $<

spaces.obj: ../lib/type1/spaces.c
	cl -c -Fo$@ $(CFLAGS) $<

t1aaset.obj: ../lib/t1lib/t1aaset.c
	cl -c -Fo$@ $(CFLAGS) $<

t1afmtool.obj: ../lib/t1lib/t1afmtool.c
	cl -c -Fo$@ $(CFLAGS) $<

t1base.obj: ../lib/t1lib/t1base.c
	cl -c -Fo$@ $(CFLAGS) $<

t1delete.obj: ../lib/t1lib/t1delete.c
	cl -c -Fo$@ $(CFLAGS) $<

t1enc.obj: ../lib/t1lib/t1enc.c
	cl -c -Fo$@ $(CFLAGS) $<

t1env.obj: ../lib/t1lib/t1env.c
	cl -c -Fo$@ $(CFLAGS) $<

t1finfo.obj: ../lib/t1lib/t1finfo.c
	cl -c -Fo$@ $(CFLAGS) $<

t1io.obj: ../lib/type1/t1io.c
	cl -c -Fo$@ $(CFLAGS) $<

t1load.obj: ../lib/t1lib/t1load.c
	cl -c -Fo$@ $(CFLAGS) $<

t1outline.obj: ../lib/t1lib/t1outline.c
	cl -c -Fo$@ $(CFLAGS) $<

t1set.obj: ../lib/t1lib/t1set.c
	cl -c -Fo$@ $(CFLAGS) $<

t1snap.obj: ../lib/type1/t1snap.c
	cl -c -Fo$@ $(CFLAGS) $<

t1stub.obj: ../lib/type1/t1stub.c
	cl -c -Fo$@ $(CFLAGS) $<

t1trans.obj: ../lib/t1lib/t1trans.c
	cl -c -Fo$@ $(CFLAGS) $<

token.obj: ../lib/type1/token.c
	cl -c -Fo$@ $(CFLAGS) $<

type1.obj: ../lib/type1/type1.c
	cl -c -Fo$@ $(CFLAGS) $<

util.obj: ../lib/type1/util.c
	cl -c -Fo$@ $(CFLAGS) $<

HEAD=../lib/type1/arith.h \
../lib/type1/blues.h \
../lib/type1/cluts.h \
../lib/type1/curves.h \
../lib/type1/digit.h \
../lib/type1/ffilest.h \
../lib/type1/font.h \
../lib/type1/fontfcn.h \
../lib/type1/fontfile.h \
../lib/type1/fontmisc.h \
../lib/type1/fonts.h \
../lib/type1/fontstruct.h \
../lib/type1/fontxlfd.h \
../lib/type1/fsmasks.h \
../lib/type1/hdigit.h \
../lib/type1/hints.h \
../lib/type1/lines.h \
../lib/type1/objects.h \
../lib/t1lib/parseAFM.h \
../lib/type1/paths.h \
../lib/type1/paths_rmz.h \
../lib/type1/pictures.h \
../lib/type1/regions.h \
../lib/type1/spaces.h \
../lib/type1/spaces_rmz.h \
../lib/type1/strokes.h \
../lib/t1lib/sysconf.h \
../lib/t1lib/t1aaset.h \
../lib/t1lib/t1afmtool.h \
../lib/t1lib/t1base.h \
../lib/t1lib/t1delete.h \
../lib/t1lib/t1enc.h \
../lib/t1lib/t1env.h \
../lib/t1lib/t1extern.h \
../lib/t1lib/t1finfo.h \
../lib/t1lib/t1global.h \
../lib/type1/t1hdigit.h \
../lib/type1/t1imager.h \
../lib/t1lib/t1load.h \
../lib/t1lib/t1misc.h \
../lib/t1lib/t1outline.h \
../lib/t1lib/t1set.h \
../lib/type1/t1stdio.h \
../lib/t1lib/t1trans.h \
../lib/t1lib/t1types.h \
../lib/t1lib/t1x11.h \
../lib/type1/token.h \
../lib/type1/tokst.h \
../lib/type1/trig.h \
../lib/type1/util.h \
../lib/type1/yXstuff.h
