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 | # | |
6 | # @(#)Makefile 4.6 (Berkeley) %G% | |
7 | # | |
8 | CFLAGS= -DCOPYCODE -DC2 -O | |
9 | ASDIR= ../../../bin/as/as.${MACHINE} | |
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 | ||
27 | install: | |
28 | install -o bin -g bin -m 755 -s c2 ${DESTDIR}/lib/c2 | |
29 | ||
30 | tags: | |
31 | ctags ${SRCS} | |
96c5e0f5 | 32 | |
90d730e6 KB |
33 | depend: |
34 | mkdep ${CFLAGS} ${SRCS} | |
96c5e0f5 | 35 | |
90d730e6 KB |
36 | # DO NOT DELETE THIS LINE -- mkdep uses it. |
37 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
96c5e0f5 | 38 | |
90d730e6 KB |
39 | c20.o: c20.c |
40 | c20.o:c2.h | |
41 | c20.o: /usr/include/stdio.h /usr/include/ctype.h /usr/include/sys/types.h | |
42 | c21.o: c21.c | |
43 | c21.o:c2.h | |
44 | c21.o: /usr/include/stdio.h /usr/include/ctype.h | |
45 | c22.o: c22.c | |
46 | c22.o:c2.h | |
47 | c22.o:./instrs.c2 | |
96c5e0f5 | 48 | |
90d730e6 | 49 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |