#
# Makefile for harfbuzz.lib (Akira Kakuto 2016-03-18)
#

.SUFFIXES: .cc .obj

DEFS = -DHAVE_CONFIG_H=1 -DWIN32=1 -DNO_KPSE_DLL=1 \
-D_CRT_SECURE_NO_DEPRECATE=1 -DICUFORXeTeX=1 \
-D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_OBSOLETE_NO_DEPRECATE \
-D_SECURE_SCL=0 -DGRAPHITE2_STATIC=1

grdir = ../../../graphite2-src

GRINC = -I$(grdir)/include

INCS = -I. -I.. $(GRINC)

CXXFLAGS = -nologo -utf-8 -TP -W1 -MD -O2 -EHsc -GR -wd4819 $(DEFS) $(INCS)

CXX = cl

ADDLIBS =

HBOBJS = \
	objs/hb-aat-layout.obj \
	objs/hb-aat-map.obj \
	objs/hb-blob.obj \
	objs/hb-buffer-serialize.obj \
	objs/hb-buffer.obj \
	objs/hb-common.obj \
	objs/hb-draw.obj \
	objs/hb-face.obj \
	objs/hb-font.obj \
	objs/hb-map.obj \
	objs/hb-number.obj \
	objs/hb-ot-face.obj \
	objs/hb-ot-tag.obj \
	objs/hb-set.obj \
	objs/hb-shape.obj \
	objs/hb-shape-plan.obj \
	objs/hb-shaper.obj \
	objs/hb-static.obj \
	objs/hb-style.obj \
	objs/hb-unicode.obj \
	objs/hb-fallback-shape.obj \
	objs/hb-ot-cff1-table.obj \
	objs/hb-ot-cff2-table.obj \
	objs/hb-ot-font.obj \
	objs/hb-ot-layout.obj \
	objs/hb-ot-color.obj \
	objs/hb-ot-map.obj \
	objs/hb-ot-math.obj \
	objs/hb-ot-meta.obj \
	objs/hb-ot-metrics.obj \
	objs/hb-ot-name.obj \
	objs/hb-ot-shape.obj \
	objs/hb-ot-shape-complex-arabic.obj \
	objs/hb-ot-shape-complex-default.obj \
	objs/hb-ot-shape-complex-hangul.obj \
	objs/hb-ot-shape-complex-hebrew.obj \
	objs/hb-ot-shape-complex-indic.obj \
	objs/hb-ot-shape-complex-indic-table.obj \
	objs/hb-ot-shape-complex-khmer.obj \
	objs/hb-ot-shape-complex-myanmar.obj \
	objs/hb-ot-shape-complex-thai.obj \
	objs/hb-ot-shape-complex-use.obj \
	objs/hb-ot-shape-complex-use-table.obj \
	objs/hb-ot-shape-complex-vowel-constraints.obj \
	objs/hb-ot-shape-normalize.obj \
	objs/hb-ot-shape-fallback.obj \
	objs/hb-ot-var.obj \
	objs/hb-subset-cff-common.obj \
	objs/hb-subset-cff1.obj \
	objs/hb-subset-cff2.obj \
	objs/hb-ucd.obj \
	objs/hb-graphite2.obj

harfbuzz.lib: $(HBOBJS)
	lib -out:$@ $(HBOBJS) $(ADDLIBS)

objs/%.obj:%.cc
	$(CXX) $(CXXFLAGS) -c -Fo$@ $<

clean:
	rm *~ *.lib objs/*

include depend.mk
