Makefile
727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
include $(ROOT)/usr/include/make/PRdefs
OPTIMIZER = -g
TARGETS=ic
LC++OPTS = -woff 3203,3262,3255
#LC++OPTS = -mips2 -fullwarn -G 0
LC++INCS = -I. -I$(ROOT)/usr/include/PR -I ../lib
LLDLIBS= -L $(ROOT)/usr/lib -L ../lib -lbank
YFLAGS = -vdl
C++FILES = \
main.c++
ic.y.o: ic.y y.tab.h y.tab.c
$(C++F) -c y.tab.c -o ic.y.o
ic.l.o: ic.l y.tab.h
lex ic.l
$(C++F) -c lex.yy.c -o ic.l.o
y.tab.h y.tab.c: ic.y
rm -f y.tab.h y.output
$(YACCF) ic.y
main.o: y.tab.h
y.tab.c: y.tab.h
ic: Makefile y.tab.h $(OBJECTS) ic.y.o ic.l.o
$(C++F) $(OBJECTS) ic.y.o ic.l.o $(LDFLAGS) -o $@
default: $(TARGETS)
include $(COMMONRULES)
headers exports:
install: default
exports install: default
$(INSTALL) -F /usr/sbin ic