Line | |
---|
1 | # Makefile for Berkeley yacc.
|
---|
2 |
|
---|
3 | BINDIR = /usr/bin
|
---|
4 |
|
---|
5 | HDRS = defs.h
|
---|
6 |
|
---|
7 | CFLAGS = -DNDEBUG -D_MINIX -D_POSIX_SOURCE -wo $(OPT)
|
---|
8 |
|
---|
9 | LDFLAGS = -i
|
---|
10 |
|
---|
11 | LIBS =
|
---|
12 |
|
---|
13 | CC = exec cc
|
---|
14 |
|
---|
15 | LINKER = $(CC)
|
---|
16 |
|
---|
17 | MAKEFILE = Makefile
|
---|
18 |
|
---|
19 | OBJS = closure.o \
|
---|
20 | error.o \
|
---|
21 | lalr.o \
|
---|
22 | lr0.o \
|
---|
23 | main.o \
|
---|
24 | mkpar.o \
|
---|
25 | output.o \
|
---|
26 | reader.o \
|
---|
27 | skeleton.o \
|
---|
28 | symtab.o \
|
---|
29 | verbose.o \
|
---|
30 | warshall.o
|
---|
31 |
|
---|
32 | PRINT = pr -f -l88
|
---|
33 |
|
---|
34 | PROGRAM = yacc
|
---|
35 |
|
---|
36 | SRCS = closure.c \
|
---|
37 | error.c \
|
---|
38 | lalr.c \
|
---|
39 | lr0.c \
|
---|
40 | main.c \
|
---|
41 | mkpar.c \
|
---|
42 | output.c \
|
---|
43 | reader.c \
|
---|
44 | skeleton.c \
|
---|
45 | symtab.c \
|
---|
46 | verbose.c \
|
---|
47 | warshall.c
|
---|
48 |
|
---|
49 | all: $(PROGRAM)
|
---|
50 |
|
---|
51 | $(PROGRAM): $(OBJS) $(LIBS)
|
---|
52 | $(LINKER) $(LDFLAGS) -o $(PROGRAM) $(OBJS) $(LIBS)
|
---|
53 | install -S 484k $(PROGRAM)
|
---|
54 |
|
---|
55 | install: $(BINDIR)/yacc
|
---|
56 |
|
---|
57 | $(BINDIR)/yacc: $(PROGRAM)
|
---|
58 | install -cs -o bin $(PROGRAM) $@
|
---|
59 |
|
---|
60 | clean:; rm -f $(OBJS) $(PROGRAM) core
|
---|
61 |
|
---|
62 | #depend:; @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
|
---|
63 | #
|
---|
64 | #index:; @ctags -wx $(HDRS) $(SRCS)
|
---|
65 | #
|
---|
66 | #listing:; @$(PRINT) Makefile $(HDRS) $(SRCS) | lpr
|
---|
67 | #
|
---|
68 | #lint:; @lint $(SRCS)
|
---|
69 | #
|
---|
70 | #program: $(PROGRAM)
|
---|
71 | #
|
---|
72 | #tags: $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
|
---|
73 |
|
---|
74 | ###
|
---|
75 | closure.o: defs.h
|
---|
76 | error.o: defs.h
|
---|
77 | lalr.o: defs.h
|
---|
78 | lr0.o: defs.h
|
---|
79 | main.o: defs.h
|
---|
80 | mkpar.o: defs.h
|
---|
81 | output.o: defs.h
|
---|
82 | reader.o: defs.h
|
---|
83 | skeleton.o: defs.h
|
---|
84 | symtab.o: defs.h
|
---|
85 | verbose.o: defs.h
|
---|
86 | warshall.o: defs.h
|
---|
Note:
See
TracBrowser
for help on using the repository browser.