1# 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) 06/06/87 7# 8CFLAGS= -DCOPYCODE -DC2 -O 9ASDIR= ../../../bin/as/as.${MACHINE} 10SRCS= c20.c c21.c c22.c 11OBJS= c20.o c21.o c22.o 12 13all: c2 14 15c2: ${OBJS} ${LIBC} 16 ${CC} -o $@ ${OBJS} 17 18c22.o: c22.c c2.h instrs.c2 19 ${CC} ${CFLAGS} -R -c c22.c 20 21instrs.c2: ${ASDIR}/instrs 22 (echo FLAVOR C2 ; cat ${ASDIR}/instrs) | awk -f ${ASDIR}/instrs > instrs.c2 23 24clean: 25 rm -f *.o *.s c2 26 27install: 28 install -o bin -g bin -m 755 -s c2 ${DESTDIR}/lib/c2 29 30tags: 31 ctags ${SRCS} 32 33depend: 34 mkdep ${CFLAGS} ${SRCS} 35 36# DO NOT DELETE THIS LINE -- mkdep uses it. 37# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. 38 39c20.o: c20.c 40c20.o:c2.h 41c20.o: /usr/include/stdio.h /usr/include/ctype.h /usr/include/sys/types.h 42c21.o: c21.c 43c21.o:c2.h 44c21.o: /usr/include/stdio.h /usr/include/ctype.h 45c22.o: c22.c 46c22.o:c2.h 47c22.o:./instrs.c2 48 49# IF YOU PUT ANYTHING HERE IT WILL GO AWAY 50