1 # Copyright 2007 TeX Users Group.
2 # Copyright 2014 Clerk Ma.
4 # You may freely use, modify and/or distribute this file.
6 # Makefile for Y&YTeX (tested on Clang/LLVM 3.4)
12 CFLAGS=/nologo /c /MT /GF /Ox /W4 \
13 /I"kpathsea" /I"zlib" /I"libmd5" /D_CRT_SECURE_NO_WARNINGS \
14 -Wno-char-subscripts -Wno-dangling-else \
15 -Wno-deprecated-declarations
19 objs = yandytex.obj itex.obj openinou.obj subroute.obj local.obj \
20 tex0.obj tex1.obj tex2.obj tex3.obj tex4.obj \
21 tex5.obj tex6.obj tex7.obj tex8.obj tex9.obj \
22 pool.obj yandytex.res md5.obj utils.obj
25 $(LINK) $(LFLAGS) yandytex itex openinou subroute local \
26 tex0 tex1 tex2 tex3 tex4 tex5 tex6 tex7 tex8 tex9 \
27 pool yandytex.res md5 utils \
28 kpathsea\kpathsea.lib zlib\zlib.lib
29 del ..\yandy\bin\yandytex.exe
30 copy yandytex.exe ..\yandy\bin\yandytex.exe
33 $(CC) -Ilibmd5 $(CFLAGS) libmd5\md5.c
35 yandytex.res: yandytex.rc
36 $(RC) /nologo yandytex.rc
38 yandytex.obj: yandytex.c \
39 texd.h yandytex.h memory.h coerce.h macros.h
40 $(CC) $(CFLAGS) yandytex.c
43 texd.h yandytex.h memory.h coerce.h macros.h
44 $(CC) $(CFLAGS) itex.c
46 openinou.obj: openinou.c \
47 texd.h yandytex.h memory.h coerce.h macros.h
48 $(CC) $(CFLAGS) openinou.c
50 subroute.obj: subroute.c \
51 texd.h yandytex.h memory.h coerce.h macros.h
52 $(CC) $(CFLAGS) subroute.c
55 texd.h yandytex.h memory.h coerce.h macros.h
56 $(CC) $(CFLAGS) local.c
59 texd.h yandytex.h memory.h coerce.h macros.h
62 texd.h yandytex.h memory.h coerce.h macros.h
65 texd.h yandytex.h memory.h coerce.h macros.h
68 texd.h yandytex.h memory.h coerce.h macros.h
71 texd.h yandytex.h memory.h coerce.h macros.h
74 texd.h yandytex.h memory.h coerce.h macros.h
77 texd.h yandytex.h memory.h coerce.h macros.h
80 texd.h yandytex.h memory.h coerce.h macros.h
83 texd.h yandytex.h memory.h coerce.h macros.h
86 texd.h yandytex.h memory.h coerce.h macros.h
89 texd.h yandytex.h memory.h coerce.h macros.h
92 texd.h yandytex.h memory.h coerce.h macros.h