OSDN Git Service

fixed memory align.
[putex/putex.git] / src / texsourc / Makefile.win.clang
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 = clang-cl
9 LINK = link
10 RC = rc
11
12 CFLAGS=/nologo /c /MT /GF /Ox /W4 /DMSDOS /DTeX \
13         /I"kpathsea" /I"zlib" /I"libmd5" /D_CRT_SECURE_NO_WARNINGS \
14         -Wno-char-subscripts -Wno-dangling-else \
15         -Wno-deprecated-declarations
16
17 LFLAGS=/NOLOGO /MAP
18
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         yandy_pool.obj yandytex.res md5.obj yandy_inlines.obj
23
24 yandytex.exe: $(objs)
25         $(LINK) $(LFLAGS) yandytex itex openinou subroute local \
26         tex0 tex1 tex2 tex3 tex4 tex5 tex6 tex7 tex8 tex9 \
27         yandy_pool yandytex.res md5 yandy_inlines \
28         kpathsea\kpathsea.lib zlib\zlib.lib
29         del ..\yandy\bin\yandytex.exe
30         copy yandytex.exe ..\yandy\bin\yandytex.exe
31
32 md5.obj: libmd5\md5.c
33         $(CC) -Ilibmd5 $(CFLAGS) libmd5\md5.c
34
35 yandytex.res: yandytex.rc
36         rc /nologo yandytex.rc
37
38 yandytex.obj: yandytex.c \
39         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
40         $(CC) /DINITEX $(CFLAGS) yandytex.c
41
42 itex.obj: itex.c \
43         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
44         $(CC) /DINITEX $(CFLAGS) itex.c
45
46 openinou.obj: openinou.c \
47         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
48         $(CC) $(CFLAGS) openinou.c
49
50 subroute.obj: subroute.c \
51         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
52         $(CC) $(CFLAGS) subroute.c
53
54 local.obj: local.c \
55         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
56         $(CC) /DINITEX $(CFLAGS) local.c
57
58 tex0.obj: tex0.c \
59         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
60
61 tex1.obj: tex1.c \
62         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
63
64 tex2.obj: tex2.c \
65         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
66
67 tex3.obj: tex3.c \
68         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
69
70 tex4.obj: tex4.c \
71         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
72
73 tex5.obj: tex5.c \
74         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
75
76 tex6.obj: tex6.c \
77         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
78
79 tex7.obj: tex7.c \
80         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
81
82 tex8.obj: tex8.c \
83         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
84
85 tex9.obj: tex9.c \
86         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
87
88 yandy_pool.obj: yandy_pool.c \
89         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
90
91 yandy_inlines.obj: yandy_inlines.c \
92         texd.h texmf.h texmfmem.h coerce.h yandy_macros.h
93
94 .SUFFIXES:
95 .SUFFIXES: .obj .c
96
97 c..obj:
98         $(CC) $(CFLAGS) $*.c
99