source: trunk/minix/commands/byacc/Makefile@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 1.3 KB
Line 
1# Makefile for Berkeley yacc.
2
3BINDIR = /usr/bin
4
5HDRS = defs.h
6
7CFLAGS = -DNDEBUG -D_MINIX -D_POSIX_SOURCE -wo $(OPT)
8
9LDFLAGS = -i
10
11LIBS =
12
13CC = exec cc
14
15LINKER = $(CC)
16
17MAKEFILE = Makefile
18
19OBJS = 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
32PRINT = pr -f -l88
33
34PROGRAM = yacc
35
36SRCS = 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
49all: $(PROGRAM)
50
51$(PROGRAM): $(OBJS) $(LIBS)
52 $(LINKER) $(LDFLAGS) -o $(PROGRAM) $(OBJS) $(LIBS)
53 install -S 484k $(PROGRAM)
54
55install: $(BINDIR)/yacc
56
57$(BINDIR)/yacc: $(PROGRAM)
58 install -cs -o bin $(PROGRAM) $@
59
60clean:; 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###
75closure.o: defs.h
76error.o: defs.h
77lalr.o: defs.h
78lr0.o: defs.h
79main.o: defs.h
80mkpar.o: defs.h
81output.o: defs.h
82reader.o: defs.h
83skeleton.o: defs.h
84symtab.o: defs.h
85verbose.o: defs.h
86warshall.o: defs.h
Note: See TracBrowser for help on using the repository browser.