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"
6 # PCCTS_HOME=<your PCCTS_HOME>
7 PCCTS_HOME
=$(WORKSPACE
)\Tools\Source\TianoTools\Pccts
8 ANTLR_SRC
=$(PCCTS_HOME
)\antlr
9 PCCTS_H
=$(PCCTS_HOME
)\h
13 SET
=$(PCCTS_HOME
)\support\set
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
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
25 SUPPORT_OBJS
= set.obj
29 $(WORKSPACE
)\Tools
\bin
\antlr.exe
: $(ANTLR_OBJS
) $(SUPPORT_OBJS
)
30 $(CC
) $(CFLAGS
) -o antlr.exe
$(ANTLR_OBJS
) $(SUPPORT_OBJS
)
32 move antlr.exe
$(WORKSPACE
)\Tools
\bin
35 antlr.obj
: $(ANTLR_SRC
)\antlr.c \
40 $(ANTLR_SRC
)\generic.h \
43 $(ANTLR_SRC
)\proto.h \
45 $(ANTLR_SRC
)\tokens.h \
47 $(CC
) -c
$(CFLAGS
) $(ANTLR_SRC
)\antlr.c
49 scan.obj
: $(ANTLR_SRC
)\scan.c \
52 $(PCCTS_H
)\dlgauto.h \
55 $(ANTLR_SRC
)\generic.h \
58 $(ANTLR_SRC
)\proto.h \
60 $(ANTLR_SRC
)\tokens.h \
62 $(CC
) -c
$(CFLAGS
) $(ANTLR_SRC
)\scan.c
64 err.obj
: $(ANTLR_SRC
)\err.c \
70 $(ANTLR_SRC
)\generic.h \
72 $(ANTLR_SRC
)\proto.h \
74 $(ANTLR_SRC
)\tokens.h \
76 $(CC
) -c
$(CFLAGS
) $(ANTLR_SRC
)\err.c
78 bits.obj
: $(ANTLR_SRC
)\bits.c \
82 $(ANTLR_SRC
)\generic.h \
84 $(ANTLR_SRC
)\proto.h \
87 $(CC
) -c
$(CFLAGS
) $(ANTLR_SRC
)\bits.c
89 build.obj
: $(ANTLR_SRC
)\build.c \
93 $(ANTLR_SRC
)\generic.h \
95 $(ANTLR_SRC
)\proto.h \
98 $(CC
) -c
$(CFLAGS
) $(ANTLR_SRC
)\build.c
100 fset2.obj
: $(ANTLR_SRC
)\fset
2.c \
101 $(PCCTS_H
)\config.h \
102 $(PCCTS_H
)\dlgdef.h \
104 $(ANTLR_SRC
)\generic.h \
105 $(ANTLR_SRC
)\hash.h \
106 $(ANTLR_SRC
)\proto.h \
109 $(CC
) -c
$(CFLAGS
) $(ANTLR_SRC
)\fset
2.c
111 fset.obj
: $(ANTLR_SRC
)\fset.c \
112 $(PCCTS_H
)\config.h \
113 $(PCCTS_H
)\dlgdef.h \
115 $(ANTLR_SRC
)\generic.h \
116 $(ANTLR_SRC
)\hash.h \
117 $(ANTLR_SRC
)\proto.h \
120 $(CC
) -c
$(CFLAGS
) $(ANTLR_SRC
)\fset.c
122 gen.obj
: $(ANTLR_SRC
)\gen.c \
123 $(PCCTS_H
)\config.h \
124 $(PCCTS_H
)\dlgdef.h \
126 $(ANTLR_SRC
)\generic.h \
127 $(ANTLR_SRC
)\hash.h \
128 $(ANTLR_SRC
)\proto.h \
131 $(CC
) -c
$(CFLAGS
) $(ANTLR_SRC
)\gen.c
133 globals.obj
: $(ANTLR_SRC
)\globals.c \
134 $(PCCTS_H
)\config.h \
136 $(ANTLR_SRC
)\generic.h \
137 $(ANTLR_SRC
)\hash.h \
138 $(ANTLR_SRC
)\proto.h \
141 $(CC
) -c
$(CFLAGS
) $(ANTLR_SRC
)\globals.c
143 hash.obj
: $(ANTLR_SRC
)\hash.c \
144 $(PCCTS_H
)\config.h \
145 $(ANTLR_SRC
)\hash.h \
147 $(CC
) -c
$(CFLAGS
) $(ANTLR_SRC
)\hash.c
149 lex.obj
: $(ANTLR_SRC
)\
lex.c \
150 $(PCCTS_H
)\config.h \
152 $(ANTLR_SRC
)\generic.h \
153 $(ANTLR_SRC
)\hash.h \
154 $(ANTLR_SRC
)\proto.h \
157 $(CC
) -c
$(CFLAGS
) $(ANTLR_SRC
)\
lex.c
159 main.obj
: $(ANTLR_SRC
)\main.c \
161 $(PCCTS_H
)\config.h \
162 $(PCCTS_H
)\dlgdef.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 \
170 $(ANTLR_SRC
)\tokens.h \
172 $(CC
) -c
$(CFLAGS
) $(ANTLR_SRC
)\main.c
174 misc.obj
: $(ANTLR_SRC
)\misc.c \
175 $(PCCTS_H
)\config.h \
176 $(PCCTS_H
)\dlgdef.h \
178 $(ANTLR_SRC
)\generic.h \
179 $(ANTLR_SRC
)\hash.h \
180 $(ANTLR_SRC
)\proto.h \
183 $(CC
) -c
$(CFLAGS
) $(ANTLR_SRC
)\misc.c
185 pred.obj
: $(ANTLR_SRC
)\pred.c \
186 $(PCCTS_H
)\config.h \
187 $(PCCTS_H
)\dlgdef.h \
189 $(ANTLR_SRC
)\generic.h \
190 $(ANTLR_SRC
)\hash.h \
191 $(ANTLR_SRC
)\proto.h \
194 $(CC
) -c
$(CFLAGS
) $(ANTLR_SRC
)\pred.c
196 egman.obj
: $(ANTLR_SRC
)\egman.c \
197 $(PCCTS_H
)\config.h \
199 $(ANTLR_SRC
)\generic.h \
200 $(ANTLR_SRC
)\hash.h \
201 $(ANTLR_SRC
)\proto.h \
204 $(CC
) -c
$(CFLAGS
) $(ANTLR_SRC
)\egman.c
206 mrhoist.obj
: $(ANTLR_SRC
)\mrhoist.c \
207 $(ANTLR_SRC
)\generic.h \
208 $(ANTLR_SRC
)\hash.h \
209 $(ANTLR_SRC
)\proto.h \
212 $(CC
) -c
$(CFLAGS
) $(ANTLR_SRC
)\mrhoist.c
214 fcache.obj
: $(ANTLR_SRC
)\fcache.c \
215 $(ANTLR_SRC
)\generic.h \
216 $(ANTLR_SRC
)\hash.h \
217 $(ANTLR_SRC
)\proto.h \
220 $(CC
) -c
$(CFLAGS
) $(ANTLR_SRC
)\fcache.c
222 set.obj
: $(SET
)\set.c \
223 $(PCCTS_H
)\config.h \
226 $(CC
) -c
$(CFLAGS
) $(SET
)\set.c
233 del
$(WORKSPACE
)\Tools
\bin
\antlr.exe