• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
8DLG_SRC=$(PCCTS_HOME)\dlg
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" /W3 /Zi \
20        /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE
21
22DLG_OBJS = dlg_p.obj dlg_a.obj main.obj err.obj support.obj \
23           output.obj relabel.obj automata.obj
24
25SUPPORT_OBJS = set.obj
26
27# Dependencies
28
29$(EDK_TOOLS_PATH)\Bin\Win32\dlg.exe: $(DLG_OBJS) $(SUPPORT_OBJS)
30    $(CC) $(CFLAGS) -Fedlg.exe $(DLG_OBJS) $(SUPPORT_OBJS)
31    -@if not exist $(EDK_TOOLS_PATH)\Bin\Win32 mkdir $(EDK_TOOLS_PATH)\Bin\Win32
32		copy dlg.exe $(EDK_TOOLS_PATH)\Bin\Win32
33
34dlg_p.obj: $(DLG_SRC)\dlg_p.c \
35					$(PCCTS_H)\antlr.h \
36					$(PCCTS_H)\config.h \
37					$(PCCTS_H)\dlgdef.h \
38					$(SET)\set.h \
39                	$(DLG_SRC)\dlg.h \
40                	$(DLG_SRC)\mode.h \
41                	$(DLG_SRC)\tokens.h \
42
43    $(CC) -c $(CFLAGS) $(DLG_SRC)\dlg_p.c
44
45dlg_a.obj: $(DLG_SRC)\dlg_a.c \
46					$(PCCTS_H)\antlr.h \
47					$(PCCTS_H)\config.h \
48					$(PCCTS_H)\dlgauto.h \
49					$(PCCTS_H)\dlgdef.h \
50					$(SET)\set.h \
51                	$(DLG_SRC)\dlg.h \
52                	$(DLG_SRC)\mode.h \
53                	$(DLG_SRC)\tokens.h \
54
55    $(CC) -c $(CFLAGS) $(DLG_SRC)\dlg_a.c
56
57main.obj: $(DLG_SRC)\main.c \
58					$(PCCTS_H)\antlr.h \
59					$(PCCTS_H)\config.h \
60					$(PCCTS_H)\dlgdef.h \
61					$(SET)\set.h \
62                	$(DLG_SRC)\dlg.h \
63                	$(DLG_SRC)\mode.h \
64                	$(DLG_SRC)\stdpccts.h \
65                	$(DLG_SRC)\tokens.h \
66
67    $(CC) -c $(CFLAGS) $(DLG_SRC)\main.c
68
69err.obj: $(DLG_SRC)\err.c \
70					$(PCCTS_H)\antlr.h \
71					$(PCCTS_H)\config.h \
72					$(PCCTS_H)\dlgdef.h \
73					$(PCCTS_H)\err.h \
74					$(SET)\set.h \
75                	$(DLG_SRC)\dlg.h \
76                	$(DLG_SRC)\tokens.h \
77
78    $(CC) -c $(CFLAGS) $(DLG_SRC)\err.c
79
80support.obj: $(DLG_SRC)\support.c \
81					$(PCCTS_H)\config.h \
82					$(SET)\set.h \
83                	$(DLG_SRC)\dlg.h \
84
85    $(CC) -c $(CFLAGS) $(DLG_SRC)\support.c
86
87output.obj: $(DLG_SRC)\output.c \
88					$(PCCTS_H)\config.h \
89					$(SET)\set.h \
90                	$(DLG_SRC)\dlg.h \
91
92    $(CC) -c $(CFLAGS) $(DLG_SRC)\output.c
93
94relabel.obj: $(DLG_SRC)\relabel.c \
95					$(PCCTS_H)\config.h \
96					$(SET)\set.h \
97                	$(DLG_SRC)\dlg.h \
98
99    $(CC) -c $(CFLAGS) $(DLG_SRC)\relabel.c
100
101automata.obj: $(DLG_SRC)\automata.c \
102					$(PCCTS_H)\config.h \
103					$(SET)\set.h \
104                	$(DLG_SRC)\dlg.h \
105
106    $(CC) -c $(CFLAGS) $(DLG_SRC)\automata.c
107
108
109set.obj: $(SET)\set.c \
110					$(PCCTS_H)\config.h \
111					$(SET)\set.h \
112
113    $(CC) -c $(CFLAGS) $(SET)\set.c
114
115clean:
116    -del *.obj
117    -del *.ilk
118    -del *.pdb
119
120cleanall:
121    -del *.obj
122    -del *.ilk
123    -del *.pdb
124		-del *.exe
125    -del $(EDK_TOOLS_PATH)\Bin\Win32\dlg.exe
126
127