# Makefile for libptexenc
#

CFLAGS = -nologo -W3 -O2 -MT -DWIN32=1 -D_CRT_SECURE_NO_DEPRECATE=1 \
-D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_OBSOLETE_NO_DEPRECATE \
-D_SECURE_SCL=0 -DNO_KPSE_DLL=1

INCS   = -I. -I./ptexenc -I..
CC     = cl
AR     = lib

objects = ptexenc.obj kanjicnv.obj unicode.obj unicode-jp.obj nkf.obj \
utf8tbl.obj

library = ptexenc

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

default all: lib$(library).lib

lib$(library).lib: $(objects)
	$(AR) -out:$@ $(objects)

clean:
	rm -f *~ $(objects) lib$(library).lib

include depend.mk
