OSDN Git Service

chr_cmd().
[putex/putex.git] / src / texsourc / makefile
1 # Copyright 2007 TeX Users Group.
2 # Copyright 2014 Clerk Ma.
3 #
4 # You may freely use, modify and/or distribute this file.
5
6 # Makefile for Y&YTeX
7
8 CC = cl
9 LINK = link
10 RC = rc
11
12 # -Gf saves about 7k bytes in EXE file
13
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
18 # Release version
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"
22 # Debugging version
23 # CFLAGS=/c /Ge /Gy /Gf /Od /Zi /W4 /DMSDOS /DTeX /DPHARLAP /Ilib /YX
24
25 # NOTE: -Ox => -Ogityb1 -Gs
26
27 # Link with MS LINK
28 # LFLAGS=@yandytex.nt /MAP lib\libdos.lib
29 # Release version
30 # LFLAGS=/MAP lib\libdos.lib
31 LFLAGS=/NOLOGO /MAP
32 # /MACHINE:X86
33 # debugging version
34 # LFLAGS=@yandytex.nt /MAP /DEBUG /PDB:yandytex.pdb lib\libdos.lib
35 # LFLAGS=/MAP /DEBUG /PDB:yandytex.pdb
36
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
41
42 # ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ###
43
44 yandytex.exe: $(objs)
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 # ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ###
53 md5.obj: libmd5\md5.c
54         $(CC) -Ilibmd5 $(CFLAGS) libmd5\md5.c
55
56 yandytex.res: yandytex.rc
57         rc /nologo yandytex.rc
58
59 yandytex.obj: yandytex.c \
60         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
61         $(CC) /DINITEX /DINI $(CFLAGS) yandytex.c
62
63 itex.obj: itex.c \
64         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
65         $(CC) /DINITEX $(CFLAGS) itex.c
66
67 openinou.obj: openinou.c \
68         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
69         $(CC) $(CFLAGS) openinou.c
70
71 subroute.obj: subroute.c \
72         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
73         $(CC) $(CFLAGS) subroute.c
74
75 local.obj: local.c \
76         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
77         $(CC) /DINITEX $(CFLAGS) local.c
78
79 tex0.obj: tex0.c \
80         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
81
82 tex1.obj: tex1.c \
83         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
84
85 tex2.obj: tex2.c \
86         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
87
88 tex3.obj: tex3.c \
89         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
90
91 tex4.obj: tex4.c \
92         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
93
94 tex5.obj: tex5.c \
95         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
96
97 tex6.obj: tex6.c \
98         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
99
100 tex7.obj: tex7.c \
101         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
102
103 tex8.obj: tex8.c \
104         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
105
106 tex9.obj: tex9.c \
107         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
108
109 yandy_pool.obj: yandy_pool.c \
110         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
111
112 .SUFFIXES:
113 .SUFFIXES: .obj .c
114
115 c..obj:
116         $(CC) $(CFLAGS) $*.c
117