7342d99b092b47f2b02d419b4560b1f6d56e843c
[mirror_edk2.git] / Tools / CCode / Source / Pccts / antlr / AntlrMS.mak
1 # PCCTS directory
2
3 # You will need to set the LIB variable similar to this.
4 # LIB="C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/lib;c:/Microsoft Visual Studio .NET 2003/Vc7/PlatformSDK/Lib"
5
6 # PCCTS_HOME=<your PCCTS_HOME>
7 PCCTS_HOME=$(WORKSPACE)\Tools\CCode\Source\Pccts
8 ANTLR_SRC=$(PCCTS_HOME)\antlr
9 PCCTS_H=$(PCCTS_HOME)\h
10
11
12 # Support directories
13 SET=$(PCCTS_HOME)\support\set
14
15
16 # Compiler stuff
17 CC = cl
18 CFLAGS = /nologo -I "." -I "$(PCCTS_H)" -I "$(SET)" -D "USER_ZZSYN" -D "PC" \
19 -D "ZZLEXBUFSIZE=65536" /D "LONGFILENAMES" /Zi /W3 -D__USE_PROTOS /wd4700
20
21 ANTLR_OBJS = antlr.obj scan.obj err.obj bits.obj build.obj fset2.obj \
22 fset.obj gen.obj globals.obj hash.obj lex.obj main.obj \
23 misc.obj pred.obj egman.obj mrhoist.obj fcache.obj
24
25 SUPPORT_OBJS = set.obj
26
27 # Dependencies
28
29 $(WORKSPACE)\Tools\bin\antlr.exe: $(ANTLR_OBJS) $(SUPPORT_OBJS)
30 $(CC) $(CFLAGS) -o antlr.exe $(ANTLR_OBJS) $(SUPPORT_OBJS)
31 del *.obj
32 move antlr.exe $(WORKSPACE)\Tools\bin
33
34
35 antlr.obj: $(ANTLR_SRC)\antlr.c \
36 $(PCCTS_H)\antlr.h \
37 $(PCCTS_H)\config.h \
38 $(PCCTS_H)\dlgdef.h \
39 $(SET)\set.h \
40 $(ANTLR_SRC)\generic.h \
41 $(ANTLR_SRC)\hash.h \
42 $(ANTLR_SRC)\mode.h \
43 $(ANTLR_SRC)\proto.h \
44 $(ANTLR_SRC)\syn.h \
45 $(ANTLR_SRC)\tokens.h \
46
47 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\antlr.c
48
49 scan.obj: $(ANTLR_SRC)\scan.c \
50 $(PCCTS_H)\antlr.h \
51 $(PCCTS_H)\config.h \
52 $(PCCTS_H)\dlgauto.h \
53 $(PCCTS_H)\dlgdef.h \
54 $(SET)\set.h \
55 $(ANTLR_SRC)\generic.h \
56 $(ANTLR_SRC)\hash.h \
57 $(ANTLR_SRC)\mode.h \
58 $(ANTLR_SRC)\proto.h \
59 $(ANTLR_SRC)\syn.h \
60 $(ANTLR_SRC)\tokens.h \
61
62 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\scan.c
63
64 err.obj: $(ANTLR_SRC)\err.c \
65 $(PCCTS_H)\antlr.h \
66 $(PCCTS_H)\config.h \
67 $(PCCTS_H)\dlgdef.h \
68 $(PCCTS_H)\err.h \
69 $(SET)\set.h \
70 $(ANTLR_SRC)\generic.h \
71 $(ANTLR_SRC)\hash.h \
72 $(ANTLR_SRC)\proto.h \
73 $(ANTLR_SRC)\syn.h \
74 $(ANTLR_SRC)\tokens.h \
75
76 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\err.c
77
78 bits.obj: $(ANTLR_SRC)\bits.c \
79 $(PCCTS_H)\config.h \
80 $(PCCTS_H)\dlgdef.h \
81 $(SET)\set.h \
82 $(ANTLR_SRC)\generic.h \
83 $(ANTLR_SRC)\hash.h \
84 $(ANTLR_SRC)\proto.h \
85 $(ANTLR_SRC)\syn.h \
86
87 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\bits.c
88
89 build.obj: $(ANTLR_SRC)\build.c \
90 $(PCCTS_H)\config.h \
91 $(PCCTS_H)\dlgdef.h \
92 $(SET)\set.h \
93 $(ANTLR_SRC)\generic.h \
94 $(ANTLR_SRC)\hash.h \
95 $(ANTLR_SRC)\proto.h \
96 $(ANTLR_SRC)\syn.h \
97
98 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\build.c
99
100 fset2.obj: $(ANTLR_SRC)\fset2.c \
101 $(PCCTS_H)\config.h \
102 $(PCCTS_H)\dlgdef.h \
103 $(SET)\set.h \
104 $(ANTLR_SRC)\generic.h \
105 $(ANTLR_SRC)\hash.h \
106 $(ANTLR_SRC)\proto.h \
107 $(ANTLR_SRC)\syn.h \
108
109 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\fset2.c
110
111 fset.obj: $(ANTLR_SRC)\fset.c \
112 $(PCCTS_H)\config.h \
113 $(PCCTS_H)\dlgdef.h \
114 $(SET)\set.h \
115 $(ANTLR_SRC)\generic.h \
116 $(ANTLR_SRC)\hash.h \
117 $(ANTLR_SRC)\proto.h \
118 $(ANTLR_SRC)\syn.h \
119
120 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\fset.c
121
122 gen.obj: $(ANTLR_SRC)\gen.c \
123 $(PCCTS_H)\config.h \
124 $(PCCTS_H)\dlgdef.h \
125 $(SET)\set.h \
126 $(ANTLR_SRC)\generic.h \
127 $(ANTLR_SRC)\hash.h \
128 $(ANTLR_SRC)\proto.h \
129 $(ANTLR_SRC)\syn.h \
130
131 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\gen.c
132
133 globals.obj: $(ANTLR_SRC)\globals.c \
134 $(PCCTS_H)\config.h \
135 $(SET)\set.h \
136 $(ANTLR_SRC)\generic.h \
137 $(ANTLR_SRC)\hash.h \
138 $(ANTLR_SRC)\proto.h \
139 $(ANTLR_SRC)\syn.h \
140
141 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\globals.c
142
143 hash.obj: $(ANTLR_SRC)\hash.c \
144 $(PCCTS_H)\config.h \
145 $(ANTLR_SRC)\hash.h \
146
147 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\hash.c
148
149 lex.obj: $(ANTLR_SRC)\lex.c \
150 $(PCCTS_H)\config.h \
151 $(SET)\set.h \
152 $(ANTLR_SRC)\generic.h \
153 $(ANTLR_SRC)\hash.h \
154 $(ANTLR_SRC)\proto.h \
155 $(ANTLR_SRC)\syn.h \
156
157 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\lex.c
158
159 main.obj: $(ANTLR_SRC)\main.c \
160 $(PCCTS_H)\antlr.h \
161 $(PCCTS_H)\config.h \
162 $(PCCTS_H)\dlgdef.h \
163 $(SET)\set.h \
164 $(ANTLR_SRC)\generic.h \
165 $(ANTLR_SRC)\hash.h \
166 $(ANTLR_SRC)\mode.h \
167 $(ANTLR_SRC)\proto.h \
168 $(ANTLR_SRC)\stdpccts.h \
169 $(ANTLR_SRC)\syn.h \
170 $(ANTLR_SRC)\tokens.h \
171
172 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\main.c
173
174 misc.obj: $(ANTLR_SRC)\misc.c \
175 $(PCCTS_H)\config.h \
176 $(PCCTS_H)\dlgdef.h \
177 $(SET)\set.h \
178 $(ANTLR_SRC)\generic.h \
179 $(ANTLR_SRC)\hash.h \
180 $(ANTLR_SRC)\proto.h \
181 $(ANTLR_SRC)\syn.h \
182
183 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\misc.c
184
185 pred.obj: $(ANTLR_SRC)\pred.c \
186 $(PCCTS_H)\config.h \
187 $(PCCTS_H)\dlgdef.h \
188 $(SET)\set.h \
189 $(ANTLR_SRC)\generic.h \
190 $(ANTLR_SRC)\hash.h \
191 $(ANTLR_SRC)\proto.h \
192 $(ANTLR_SRC)\syn.h \
193
194 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\pred.c
195
196 egman.obj: $(ANTLR_SRC)\egman.c \
197 $(PCCTS_H)\config.h \
198 $(SET)\set.h \
199 $(ANTLR_SRC)\generic.h \
200 $(ANTLR_SRC)\hash.h \
201 $(ANTLR_SRC)\proto.h \
202 $(ANTLR_SRC)\syn.h \
203
204 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\egman.c
205
206 mrhoist.obj: $(ANTLR_SRC)\mrhoist.c \
207 $(ANTLR_SRC)\generic.h \
208 $(ANTLR_SRC)\hash.h \
209 $(ANTLR_SRC)\proto.h \
210 $(ANTLR_SRC)\syn.h \
211
212 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\mrhoist.c
213
214 fcache.obj: $(ANTLR_SRC)\fcache.c \
215 $(ANTLR_SRC)\generic.h \
216 $(ANTLR_SRC)\hash.h \
217 $(ANTLR_SRC)\proto.h \
218 $(ANTLR_SRC)\syn.h \
219
220 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\fcache.c
221
222 set.obj: $(SET)\set.c \
223 $(PCCTS_H)\config.h \
224 $(SET)\set.h \
225
226 $(CC) -c $(CFLAGS) $(SET)\set.c
227
228 clean:
229 del *.obj
230
231 distclean:
232 del *.obj
233 del $(WORKSPACE)\Tools\bin\antlr.exe