Commit | Line | Data |
---|---|---|
96c5e0f5 | 1 | # |
90d730e6 KB |
2 | # Copyright (c) 1987 Regents of the University of California. |
3 | # All rights reserved. The Berkeley software License Agreement | |
4 | # specifies the terms and conditions for redistribution. | |
5 | # | |
7abf8d65 | 6 | # @(#)Makefile 4.8 (Berkeley) %G% |
90d730e6 KB |
7 | # |
8 | CFLAGS= -DCOPYCODE -DC2 -O | |
7abf8d65 | 9 | ASDIR= ../../../usr.bin/as/as.${MACHINE} |
90d730e6 KB |
10 | SRCS= c20.c c21.c c22.c |
11 | OBJS= c20.o c21.o c22.o | |
96c5e0f5 | 12 | |
90d730e6 | 13 | all: c2 |
96c5e0f5 | 14 | |
90d730e6 KB |
15 | c2: ${OBJS} ${LIBC} |
16 | ${CC} -o $@ ${OBJS} | |
96c5e0f5 | 17 | |
90d730e6 KB |
18 | c22.o: c22.c c2.h instrs.c2 |
19 | ${CC} ${CFLAGS} -R -c c22.c | |
96c5e0f5 | 20 | |
90d730e6 KB |
21 | instrs.c2: ${ASDIR}/instrs |
22 | (echo FLAVOR C2 ; cat ${ASDIR}/instrs) | awk -f ${ASDIR}/instrs > instrs.c2 | |
96c5e0f5 SL |
23 | |
24 | clean: | |
90d730e6 KB |
25 | rm -f *.o *.s c2 |
26 | ||
3cc82c14 KB |
27 | cleandir: clean |
28 | rm -f ${MAN} tags .depend | |
29 | ||
30 | install: ${MAN} | |
7abf8d65 | 31 | install -o bin -g bin -m 755 -s c2 ${DESTDIR}/usr/libexec/c2 |
90d730e6 | 32 | |
3cc82c14 | 33 | tags: ${SRCS} |
90d730e6 | 34 | ctags ${SRCS} |
96c5e0f5 | 35 | |
3cc82c14 | 36 | depend: ${SRCS} |
90d730e6 | 37 | mkdep ${CFLAGS} ${SRCS} |
96c5e0f5 | 38 | |
3cc82c14 KB |
39 | lint: ${SRCS} |
40 | lint ${CFLAGS} ${SRCS} | |
96c5e0f5 | 41 |