]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/TianoTools/Pccts/dlg/makefile1
Fix some cleanall issues
[mirror_edk2.git] / Tools / Source / TianoTools / Pccts / dlg / makefile1
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 #
21 # UNIX
22 #
23 CC=cc
24 ANTLR=../bin/antlr
25 DLG=../bin/dlg
26 ANSI=-ansi
27 CFLAGS= -O -I. -I$(SET) -I$(PCCTS_H) -DUSER_ZZSYN $(COTHER) $(ANSI) -DZZLEXBUFSIZE=32000
28 OBJ_EXT=o
29 OUT_OBJ = -o
30 OBJ = dlg_p.o dlg_a.o main.o err.o set.o support.o output.o \
31 relabel.o automata.o
32
33 dlg : $(OBJ) $(SRC)
34 $(CC) $(CFLAGS) -o dlg $(OBJ)
35 mv dlg ../bin
36
37 SRC = dlg_p.c dlg_a.c main.c err.c $(SET)/set.c support.c output.c \
38 relabel.c automata.c
39
40 dlg_p.c parser.dlg err.c tokens.h : dlg_p.g
41 $(ANTLR) dlg_p.g
42
43 dlg_a.c mode.h : parser.dlg
44 $(DLG) -C2 parser.dlg dlg_a.c
45
46 dlg_p.$(OBJ_EXT) : dlg_p.c dlg.h tokens.h mode.h
47 $(CC) $(CFLAGS) -c dlg_p.c
48
49 dlg_a.$(OBJ_EXT) : dlg_a.c dlg.h tokens.h mode.h
50 $(CC) $(CFLAGS) -c dlg_a.c
51
52 main.$(OBJ_EXT) : main.c dlg.h
53 $(CC) $(CFLAGS) -c main.c
54
55 set.$(OBJ_EXT) : $(SET)/set.c
56 $(CC) -c $(CFLAGS) $(SET)/set.c
57
58 lint:
59 lint *.c
60
61 #clean up all the intermediate files
62 clean:
63 rm -f *.$(OBJ_EXT) core