Initial import.
[mirror_edk2.git] / Tools / Source / TianoTools / Pccts / dlg / DlgMS.mak
CommitLineData
878ddf1f 1# PCCTS directory\r
2\r
3# You will need to set the LIB variable similar to this.\r
4# LIB="C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/lib;c:/Microsoft Visual Studio .NET 2003/Vc7/PlatformSDK/Lib"\r
5\r
6# PCCTS_HOME=<your PCCTS_HOME>\r
7PCCTS_HOME=$(WORKSPACE)\Tools\Source\TianoTools\Pccts\r
8DLG_SRC=$(PCCTS_HOME)\dlg\r
9PCCTS_H=$(PCCTS_HOME)\h\r
10\r
11\r
12# Support directories\r
13SET=$(PCCTS_HOME)\support\set\r
14\r
15\r
16# Compiler stuff\r
17CC = cl\r
18CFLAGS = /nologo -I "." -I "$(PCCTS_H)" -I "$(SET)" -D "USER_ZZSYN" -D "PC" \\r
19 -D "ZZLEXBUFSIZE=65536" /D "LONGFILENAMES" /W3 /Zi\r
20\r
21DLG_OBJS = dlg_p.obj dlg_a.obj main.obj err.obj support.obj \\r
22 output.obj relabel.obj automata.obj\r
23\r
24SUPPORT_OBJS = set.obj\r
25\r
26# Dependencies\r
27\r
28dlg.exe: $(DLG_OBJS) $(SUPPORT_OBJS)\r
29 $(CC) $(CFLAGS) -o dlg.exe $(DLG_OBJS) $(SUPPORT_OBJS)\r
30 del *.obj\r
31 del *.ilk\r
32 del *.pdb\r
33 move dlg.exe $(WORKSPACE)\Tools\bin\.\r
34\r
35dlg_p.obj: $(DLG_SRC)\dlg_p.c \\r
36 $(PCCTS_H)\antlr.h \\r
37 $(PCCTS_H)\config.h \\r
38 $(PCCTS_H)\dlgdef.h \\r
39 $(SET)\set.h \\r
40 $(DLG_SRC)\dlg.h \\r
41 $(DLG_SRC)\mode.h \\r
42 $(DLG_SRC)\tokens.h \\r
43\r
44 $(CC) -c $(CFLAGS) $(DLG_SRC)\dlg_p.c\r
45\r
46dlg_a.obj: $(DLG_SRC)\dlg_a.c \\r
47 $(PCCTS_H)\antlr.h \\r
48 $(PCCTS_H)\config.h \\r
49 $(PCCTS_H)\dlgauto.h \\r
50 $(PCCTS_H)\dlgdef.h \\r
51 $(SET)\set.h \\r
52 $(DLG_SRC)\dlg.h \\r
53 $(DLG_SRC)\mode.h \\r
54 $(DLG_SRC)\tokens.h \\r
55\r
56 $(CC) -c $(CFLAGS) $(DLG_SRC)\dlg_a.c\r
57\r
58main.obj: $(DLG_SRC)\main.c \\r
59 $(PCCTS_H)\antlr.h \\r
60 $(PCCTS_H)\config.h \\r
61 $(PCCTS_H)\dlgdef.h \\r
62 $(SET)\set.h \\r
63 $(DLG_SRC)\dlg.h \\r
64 $(DLG_SRC)\mode.h \\r
65 $(DLG_SRC)\stdpccts.h \\r
66 $(DLG_SRC)\tokens.h \\r
67\r
68 $(CC) -c $(CFLAGS) $(DLG_SRC)\main.c\r
69\r
70err.obj: $(DLG_SRC)\err.c \\r
71 $(PCCTS_H)\antlr.h \\r
72 $(PCCTS_H)\config.h \\r
73 $(PCCTS_H)\dlgdef.h \\r
74 $(PCCTS_H)\err.h \\r
75 $(SET)\set.h \\r
76 $(DLG_SRC)\dlg.h \\r
77 $(DLG_SRC)\tokens.h \\r
78\r
79 $(CC) -c $(CFLAGS) $(DLG_SRC)\err.c\r
80\r
81support.obj: $(DLG_SRC)\support.c \\r
82 $(PCCTS_H)\config.h \\r
83 $(SET)\set.h \\r
84 $(DLG_SRC)\dlg.h \\r
85\r
86 $(CC) -c $(CFLAGS) $(DLG_SRC)\support.c\r
87\r
88output.obj: $(DLG_SRC)\output.c \\r
89 $(PCCTS_H)\config.h \\r
90 $(SET)\set.h \\r
91 $(DLG_SRC)\dlg.h \\r
92\r
93 $(CC) -c $(CFLAGS) $(DLG_SRC)\output.c\r
94\r
95relabel.obj: $(DLG_SRC)\relabel.c \\r
96 $(PCCTS_H)\config.h \\r
97 $(SET)\set.h \\r
98 $(DLG_SRC)\dlg.h \\r
99\r
100 $(CC) -c $(CFLAGS) $(DLG_SRC)\relabel.c\r
101\r
102automata.obj: $(DLG_SRC)\automata.c \\r
103 $(PCCTS_H)\config.h \\r
104 $(SET)\set.h \\r
105 $(DLG_SRC)\dlg.h \\r
106\r
107 $(CC) -c $(CFLAGS) $(DLG_SRC)\automata.c\r
108\r
109\r
110set.obj: $(SET)\set.c \\r
111 $(PCCTS_H)\config.h \\r
112 $(SET)\set.h \\r
113\r
114 $(CC) -c $(CFLAGS) $(SET)\set.c\r
115\r
116clean: \r
117 del *.obj\r
118\r
119distclean:\r
120 del *.obj\r
121 del $(WORKSPACE)\Tools\bin\dlg.exe\r