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> 7PCCTS_HOME=$(BASE_TOOLS_PATH)\Source\C\VfrCompile\Pccts 8ANTLR_SRC=$(PCCTS_HOME)\antlr 9PCCTS_H=$(PCCTS_HOME)\h 10 11 12# Support directories 13SET=$(PCCTS_HOME)\support\set 14 15 16# Compiler stuff 17CC = cl 18CFLAGS = /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 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE 21 22ANTLR_OBJS = antlr.obj scan.obj err.obj bits.obj build.obj fset2.obj \ 23 fset.obj gen.obj globals.obj hash.obj lex.obj main.obj \ 24 misc.obj pred.obj egman.obj mrhoist.obj fcache.obj 25 26SUPPORT_OBJS = set.obj 27 28# Dependencies 29 30$(EDK_TOOLS_PATH)\Bin\Win32\antlr.exe: $(ANTLR_OBJS) $(SUPPORT_OBJS) 31 $(CC) $(CFLAGS) -Feantlr.exe $(ANTLR_OBJS) $(SUPPORT_OBJS) 32 -@if not exist $(EDK_TOOLS_PATH)\Bin\Win32 mkdir $(EDK_TOOLS_PATH)\Bin\Win32 33 copy antlr.exe $(EDK_TOOLS_PATH)\Bin\Win32 34 35 36antlr.obj: $(ANTLR_SRC)\antlr.c \ 37 $(PCCTS_H)\antlr.h \ 38 $(PCCTS_H)\config.h \ 39 $(PCCTS_H)\dlgdef.h \ 40 $(SET)\set.h \ 41 $(ANTLR_SRC)\generic.h \ 42 $(ANTLR_SRC)\hash.h \ 43 $(ANTLR_SRC)\mode.h \ 44 $(ANTLR_SRC)\proto.h \ 45 $(ANTLR_SRC)\syn.h \ 46 $(ANTLR_SRC)\tokens.h \ 47 48 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\antlr.c 49 50scan.obj: $(ANTLR_SRC)\scan.c \ 51 $(PCCTS_H)\antlr.h \ 52 $(PCCTS_H)\config.h \ 53 $(PCCTS_H)\dlgauto.h \ 54 $(PCCTS_H)\dlgdef.h \ 55 $(SET)\set.h \ 56 $(ANTLR_SRC)\generic.h \ 57 $(ANTLR_SRC)\hash.h \ 58 $(ANTLR_SRC)\mode.h \ 59 $(ANTLR_SRC)\proto.h \ 60 $(ANTLR_SRC)\syn.h \ 61 $(ANTLR_SRC)\tokens.h \ 62 63 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\scan.c 64 65err.obj: $(ANTLR_SRC)\err.c \ 66 $(PCCTS_H)\antlr.h \ 67 $(PCCTS_H)\config.h \ 68 $(PCCTS_H)\dlgdef.h \ 69 $(PCCTS_H)\err.h \ 70 $(SET)\set.h \ 71 $(ANTLR_SRC)\generic.h \ 72 $(ANTLR_SRC)\hash.h \ 73 $(ANTLR_SRC)\proto.h \ 74 $(ANTLR_SRC)\syn.h \ 75 $(ANTLR_SRC)\tokens.h \ 76 77 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\err.c 78 79bits.obj: $(ANTLR_SRC)\bits.c \ 80 $(PCCTS_H)\config.h \ 81 $(PCCTS_H)\dlgdef.h \ 82 $(SET)\set.h \ 83 $(ANTLR_SRC)\generic.h \ 84 $(ANTLR_SRC)\hash.h \ 85 $(ANTLR_SRC)\proto.h \ 86 $(ANTLR_SRC)\syn.h \ 87 88 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\bits.c 89 90build.obj: $(ANTLR_SRC)\build.c \ 91 $(PCCTS_H)\config.h \ 92 $(PCCTS_H)\dlgdef.h \ 93 $(SET)\set.h \ 94 $(ANTLR_SRC)\generic.h \ 95 $(ANTLR_SRC)\hash.h \ 96 $(ANTLR_SRC)\proto.h \ 97 $(ANTLR_SRC)\syn.h \ 98 99 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\build.c 100 101fset2.obj: $(ANTLR_SRC)\fset2.c \ 102 $(PCCTS_H)\config.h \ 103 $(PCCTS_H)\dlgdef.h \ 104 $(SET)\set.h \ 105 $(ANTLR_SRC)\generic.h \ 106 $(ANTLR_SRC)\hash.h \ 107 $(ANTLR_SRC)\proto.h \ 108 $(ANTLR_SRC)\syn.h \ 109 110 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\fset2.c 111 112fset.obj: $(ANTLR_SRC)\fset.c \ 113 $(PCCTS_H)\config.h \ 114 $(PCCTS_H)\dlgdef.h \ 115 $(SET)\set.h \ 116 $(ANTLR_SRC)\generic.h \ 117 $(ANTLR_SRC)\hash.h \ 118 $(ANTLR_SRC)\proto.h \ 119 $(ANTLR_SRC)\syn.h \ 120 121 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\fset.c 122 123gen.obj: $(ANTLR_SRC)\gen.c \ 124 $(PCCTS_H)\config.h \ 125 $(PCCTS_H)\dlgdef.h \ 126 $(SET)\set.h \ 127 $(ANTLR_SRC)\generic.h \ 128 $(ANTLR_SRC)\hash.h \ 129 $(ANTLR_SRC)\proto.h \ 130 $(ANTLR_SRC)\syn.h \ 131 132 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\gen.c 133 134globals.obj: $(ANTLR_SRC)\globals.c \ 135 $(PCCTS_H)\config.h \ 136 $(SET)\set.h \ 137 $(ANTLR_SRC)\generic.h \ 138 $(ANTLR_SRC)\hash.h \ 139 $(ANTLR_SRC)\proto.h \ 140 $(ANTLR_SRC)\syn.h \ 141 142 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\globals.c 143 144hash.obj: $(ANTLR_SRC)\hash.c \ 145 $(PCCTS_H)\config.h \ 146 $(ANTLR_SRC)\hash.h \ 147 148 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\hash.c 149 150lex.obj: $(ANTLR_SRC)\lex.c \ 151 $(PCCTS_H)\config.h \ 152 $(SET)\set.h \ 153 $(ANTLR_SRC)\generic.h \ 154 $(ANTLR_SRC)\hash.h \ 155 $(ANTLR_SRC)\proto.h \ 156 $(ANTLR_SRC)\syn.h \ 157 158 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\lex.c 159 160main.obj: $(ANTLR_SRC)\main.c \ 161 $(PCCTS_H)\antlr.h \ 162 $(PCCTS_H)\config.h \ 163 $(PCCTS_H)\dlgdef.h \ 164 $(SET)\set.h \ 165 $(ANTLR_SRC)\generic.h \ 166 $(ANTLR_SRC)\hash.h \ 167 $(ANTLR_SRC)\mode.h \ 168 $(ANTLR_SRC)\proto.h \ 169 $(ANTLR_SRC)\stdpccts.h \ 170 $(ANTLR_SRC)\syn.h \ 171 $(ANTLR_SRC)\tokens.h \ 172 173 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\main.c 174 175misc.obj: $(ANTLR_SRC)\misc.c \ 176 $(PCCTS_H)\config.h \ 177 $(PCCTS_H)\dlgdef.h \ 178 $(SET)\set.h \ 179 $(ANTLR_SRC)\generic.h \ 180 $(ANTLR_SRC)\hash.h \ 181 $(ANTLR_SRC)\proto.h \ 182 $(ANTLR_SRC)\syn.h \ 183 184 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\misc.c 185 186pred.obj: $(ANTLR_SRC)\pred.c \ 187 $(PCCTS_H)\config.h \ 188 $(PCCTS_H)\dlgdef.h \ 189 $(SET)\set.h \ 190 $(ANTLR_SRC)\generic.h \ 191 $(ANTLR_SRC)\hash.h \ 192 $(ANTLR_SRC)\proto.h \ 193 $(ANTLR_SRC)\syn.h \ 194 195 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\pred.c 196 197egman.obj: $(ANTLR_SRC)\egman.c \ 198 $(PCCTS_H)\config.h \ 199 $(SET)\set.h \ 200 $(ANTLR_SRC)\generic.h \ 201 $(ANTLR_SRC)\hash.h \ 202 $(ANTLR_SRC)\proto.h \ 203 $(ANTLR_SRC)\syn.h \ 204 205 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\egman.c 206 207mrhoist.obj: $(ANTLR_SRC)\mrhoist.c \ 208 $(ANTLR_SRC)\generic.h \ 209 $(ANTLR_SRC)\hash.h \ 210 $(ANTLR_SRC)\proto.h \ 211 $(ANTLR_SRC)\syn.h \ 212 213 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\mrhoist.c 214 215fcache.obj: $(ANTLR_SRC)\fcache.c \ 216 $(ANTLR_SRC)\generic.h \ 217 $(ANTLR_SRC)\hash.h \ 218 $(ANTLR_SRC)\proto.h \ 219 $(ANTLR_SRC)\syn.h \ 220 221 $(CC) -c $(CFLAGS) $(ANTLR_SRC)\fcache.c 222 223set.obj: $(SET)\set.c \ 224 $(PCCTS_H)\config.h \ 225 $(SET)\set.h \ 226 227 $(CC) -c $(CFLAGS) $(SET)\set.c 228 229clean: 230 -del *.obj 231 -del *.ilk 232 -del *.pdb 233 234cleanall: 235 -del *.obj 236 -del *.ilk 237 -del *.pdb 238 -del *.exe 239 -del $(EDK_TOOLS_PATH)\Bin\Win32\antlr.exe 240