#
# Makefile
#
SHELL=sh
MAKE=make
OPTIMIZE = -O2

SRCS = gendict.cpp


OBJS = gendict.obj

.SUFFIXES: .c .cpp .obj .lib .dll .exp

CFLAGS=-nologo -favor:blend -utf-8 -wd4229 -MT $(OPTIMIZE)
INC=-I. -I.. -Iunicode -I../../i18n -I../../common -I../../io \
-I../toolutil
DEFS=-DWIN32=1 -DU_WINDOWS=1 -DICUFORXeTeX=1 -D_CRT_SECURE_NO_DEPRECATE=1

TGT=x64/Release/gendict.exe

LIBS=../../../lib/icuinternational.lib \
../../../lib/icuinputoutput.lib \
../../../lib/icuucommon.lib \
../../../lib/icutoolutil.lib \
../../../lib/icudt.lib \
advapi32.lib

.cpp.obj:
	cl $(CFLAGS) -std:c++17 -EHsc -GR $(DEFS) $(INC) -c -Tp$<
.c.obj:
	cl $(CFLAGS) $(DEFS) $(INC) -c $<

all: $(TGT)
$(TGT): $(OBJS) x64/Release
	cl -Fe$@ $(OBJS) $(LIBS)

x64/Release:
	mkdir -p x64/Release

install: $(TGT)
	(echo do nothing)

clean::
	rm -fr x64/Release *.obj *~
