added tags/depend labels
[unix-history] / usr / src / old / pcc / c2.vax / Makefile
CommitLineData
69c48bf8 1# @(#)Makefile 4.5 (Berkeley) 87/05/28
96c5e0f5 2#
2e47c807 3CFLAGS=-DCOPYCODE -DC2 -O
96c5e0f5 4LDFLAGS=
69c48bf8 5ASDIR = /usr/src/bin/as/as.${MACHINE}
96c5e0f5
SL
6
7SRCS = makefile c2.h c20.c c21.c c22.c
8
9c2: c20.o c21.o c22.o
2e47c807 10 $(CC) $(LDFLAGS) -o c2 c2?.o
96c5e0f5
SL
11
12c20.o: c20.c c2.h
13c21.o: c21.c c2.h
14c22.o: c22.c c2.h instrs.c2
2e47c807 15 $(CC) $(CFLAGS) -R -c c22.c
96c5e0f5
SL
16
17instrs.c2: $(ASDIR)/instrs
e19f9ab6 18 (echo FLAVOR C2 ; cat $(ASDIR)/instrs) | awk -f $(ASDIR)/instrs > instrs.c2
96c5e0f5
SL
19
20clean:
21 rm -f *.o *.s
22
23install: c2
24 install -s c2 $(DESTDIR)/lib
25
26sources: $(SRCS)
27
28$(ASDIR)/instrs:
29 (cd $(ASDIR); sccs get instrs)
30
31$(SRCS):
32 sccs get $@