1 # Copyright 2007 TeX Users Group.
2 # Copyright 2014 Clerk Ma.
4 # You may freely use, modify and/or distribute this file.
12 # -Gf saves about 7k bytes in EXE file
14 # For production (-Bd show compiler passes)
15 # ASSUMING WE WORK WITH MS COMPILER AND LINKER ONLY use -Gy and -Gf
16 # CFLAGS=-c -DDOS -DMSDOS -DPHARLAP -DTeX -DMYDEBUG -Ilib -Ox -Gy -Gf -W3
17 # CFLAGS=-c -DDOS -DMSDOS -DPHARLAP -DTeX -DMYDEBUG -Ilib -YX -Ox -Ge -Gy -Gf -W4
19 # CFLAGS=/c /Ge /Gy /Gf /Ox /W4 /DMSDOS /DTeX /DPHARLAP /DNDEBUG /Ilib /YX
20 CFLAGS=/nologo /c /MT /GF /Gy /Ox /W4 /DMSDOS /DTeX /DPHARLAP /DNDEBUG \
21 /I"kpathsea" /I"zlib" /I"libmd5"
23 # CFLAGS=/c /Ge /Gy /Gf /Od /Zi /W4 /DMSDOS /DTeX /DPHARLAP /Ilib /YX
25 # NOTE: -Ox => -Ogityb1 -Gs
28 # LFLAGS=@yandytex.nt /MAP lib\libdos.lib
30 # LFLAGS=/MAP lib\libdos.lib
34 # LFLAGS=@yandytex.nt /MAP /DEBUG /PDB:yandytex.pdb lib\libdos.lib
35 # LFLAGS=/MAP /DEBUG /PDB:yandytex.pdb
37 objs = yandytex.obj itex.obj openinou.obj subroute.obj local.obj \
38 tex0.obj tex1.obj tex2.obj tex3.obj tex4.obj \
39 tex5.obj tex6.obj tex7.obj tex8.obj tex9.obj \
40 yandy_pool.obj yandytex.res md5.obj
42 # ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ###
45 $(LINK) $(LFLAGS) yandytex itex openinou subroute local \
46 tex0 tex1 tex2 tex3 tex4 tex5 tex6 tex7 tex8 tex9 \
47 yandy_pool yandytex.res md5 \
48 kpathsea\kpathsea.lib libpng\libpng.lib zlib\zlib.lib \
49 dvipdfmx\libdvipdfmx.lib
50 del ..\yandy\bin\yandytex.exe
51 copy yandytex.exe ..\yandy\bin\yandytex.exe
52 # ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ###
54 $(CC) -Ilibmd5 $(CFLAGS) libmd5\md5.c
56 yandytex.res: yandytex.rc
57 rc /nologo yandytex.rc
59 yandytex.obj: yandytex.c \
60 texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
61 $(CC) /DINITEX /DINI $(CFLAGS) yandytex.c
64 texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
65 $(CC) /DINITEX $(CFLAGS) itex.c
67 openinou.obj: openinou.c \
68 texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
69 $(CC) $(CFLAGS) openinou.c
71 subroute.obj: subroute.c \
72 texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
73 $(CC) $(CFLAGS) subroute.c
76 texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
77 $(CC) /DINITEX $(CFLAGS) local.c
80 texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
83 texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
86 texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
89 texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
92 texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
95 texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
98 texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
101 texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
104 texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
107 texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
109 yandy_pool.obj: yandy_pool.c \
110 texd.h texmf.h texmfmem.h coerce.h yandy_macros.h