Makefile
860 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
49
50
51
52
53
54
55
56
57
58
include $(ROOT)/usr/include/make/PRdefs
OPTIMIZER = -g
TARGETS=ic
LCOPTS = -mips2 -fullwarn -G 0
LCINCS = -I. -I$(ROOT)/usr/include/PR
LLDLIBS= -L $(ROOT)/usr/lib -L $(ROOT)/usr/lib/PR
YFLAGS = -vd
OPTIMIZER=-g
CFILES = \
bank.c \
bankfile.c \
instrument.c \
sound.c \
keymap.c \
wavetable.c \
loop.c \
book.c \
envelope.c \
declreps.c \
hash.c \
list.c \
symtab.c \
output.c \
main.c
ic.y.o: ic.y y.tab.h y.tab.c
$(CCF) -c ${INCLUDES} $(CFLAGS) y.tab.c -o ic.y.o
ic.l.o: ic.l y.tab.h
lex ic.l
$(CCF) -c lex.yy.c -o ic.l.o
y.tab.h y.tab.c: ic.y
rm -f y.tab.h
yacc $(YFLAGS) ic.y
y.tab.c: y.tab.h
ic: Makefile y.tab.h $(OBJECTS) ic.y.o ic.l.o
$(CCF) $(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