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