]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/TianoTools/Pccts/dlg/makefile
Fix some cleanall issues
[mirror_edk2.git] / Tools / Source / TianoTools / Pccts / dlg / makefile
1 #
2 # Makefile for DLG 1.33
3 # Terence Parr
4 # Purdue University, U of MN, Parr Research Corporation
5 # 1989-1994
6 #
7 # Ported to IBM C-Set/2 and Microsoft 6.0 by
8 # Ed Harfmann
9 # Micro Data Base Systems
10 # Lafayette, Indiana
11 #
12 SET=../support/set
13 PCCTS_H=../h
14
15 ##
16 ## Uncomment the appropriate section to build
17 ##
18
19 #
20 # OS/2 & DOS 16 bit using MSC 6.0
21 #
22 #CC=cl
23 #ANTLR=..\bin\antlr
24 #DLG=..\bin\dlg
25 #CFLAGS= -I. -I$(SET) -I$(PCCTS_H) /AL /Za /W3 -DPC -DUSER_ZZSYN
26 #OUT_OBJ = -Fo
27 #LIBS=/NOD:LLIBCE LLIBCEP
28 #OBJ_EXT = obj
29 #
30 #dlg.exe : dlg_p.obj dlg_a.obj main.obj err.obj set.obj support.obj \
31 # output.obj relabel.obj automata.obj
32 # link @<<
33 #$** /NOI
34 #$@ /STACK:16384
35 #
36 #$(LIBS: = +^
37 #)
38 #$(DEF_FILE) $(LFLAGS) ;
39 #<<
40 # bind $@ c:\os2\doscalls.lib
41 # copy *.exe ..\bin
42 #
43
44 #
45 # Borland C++ for DOS
46 #
47 #CC=bcc
48 #ANTLR=..\bin\antlr
49 #DLG=..\bin\dlg
50 #CFLAGS= -I. -I$(SET) -I$(PCCTS_H) -ml -ff- -w- -DPC -DUSER_ZZSYN
51 #OUT_OBJ = -o
52 #LIBS= emu mathl cl
53 #OBJ_EXT = obj
54 #
55 #dlg.exe : dlg_p.obj dlg_a.obj main.obj err.obj set.obj support.obj \
56 # output.obj relabel.obj automata.obj
57 # tlink @&&|
58 #C0L $**
59 #$@ /Tde /c
60 #
61 #$(LIBS)
62 #$(DEF_FILE) $(LFLAGS) ;
63 #|
64 # copy *.exe ..\bin
65 #
66
67 #
68 # C-Set/2 for OS/2
69 #
70 #CC=icc
71 #CFLAGS= -I. -I$(SET) -I$(PCCTS_H) /Sa /W3 /DUSER_ZZSYN
72 #OUT_OBJ = -Fo
73 #LIBS=
74 #ANTLR=..\bin\antlr
75 #DLG=..\bin\dlg
76 #OBJ_EXT=obj
77 #
78 #dlg.exe : dlg_p.obj dlg_a.obj main.obj err.obj set.obj support.obj \
79 # output.obj relabel.obj automata.obj
80 # link386 @<<
81 #$** /NOI
82 #$@ /STACK:32768
83 #
84 #$(LIBS: = +^
85 #)
86 #$(DEF_FILE) $(LFLAGS) ;
87 #<<
88 # copy *.exe ..\bin
89 #
90
91 #
92 # Borland C++ for OS/2
93 #
94 #CC=bcc
95 #CFLAGS= -I. -I$(SET) -I$(PCCTS_H) -w- -DUSER_ZZSYN
96 #OUT_OBJ = -o
97 #LIBS= c2 os2
98 #
99 #ANTLR=..\bin\antlr
100 #DLG=..\bin\dlg
101 #OBJ_EXT = obj
102 #dlg.exe : dlg_p.obj dlg_a.obj main.obj err.obj set.obj support.obj \
103 # output.obj relabel.obj automata.obj
104 # tlink @&&|
105 #c02 $** -c
106 #dlg.exe
107 #
108 #C2 os2
109 #
110 #|
111 # copy *.exe ..\bin
112 #
113
114 #
115 # UNIX
116 #
117 CC=cc
118 COPT=-O
119 ANTLR=../bin/antlr
120 DLG=../bin/dlg
121 CFLAGS= $(COPT) -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN -DZZLEXBUFSIZE=65536
122 OBJ_EXT=o
123 OUT_OBJ = -o
124 OBJ = dlg_p.o dlg_a.o main.o err.o set.o support.o output.o \
125 relabel.o automata.o
126
127 dlg : $(OBJ) $(SRC)
128 $(CC) $(CFLAGS) -o ${WORKSPACE}/Tools/bin/dlg $(OBJ)
129
130 SRC = dlg_p.c dlg_a.c main.c err.c $(SET)/set.c support.c output.c \
131 relabel.c automata.c
132
133 #dlg_p.c parser.dlg err.c tokens.h : dlg_p.g
134 # $(ANTLR) dlg_p.g
135
136 #dlg_a.c mode.h : parser.dlg
137 # $(DLG) -C2 parser.dlg dlg_a.c
138
139 dlg_p.$(OBJ_EXT) : dlg_p.c dlg.h tokens.h mode.h
140 $(CC) $(CFLAGS) -c dlg_p.c
141
142 dlg_a.$(OBJ_EXT) : dlg_a.c dlg.h tokens.h mode.h
143 $(CC) $(CFLAGS) -c dlg_a.c
144
145 main.$(OBJ_EXT) : main.c dlg.h
146 $(CC) $(CFLAGS) -c main.c
147
148 set.$(OBJ_EXT) : $(SET)/set.c
149 $(CC) -c $(CFLAGS) $(SET)/set.c
150
151 lint:
152 lint *.c
153
154 #clean up all the intermediate files
155 clean:
156 rm -f *.$(OBJ_EXT) core