file reorg, pathnames.h, paths.h
[unix-history] / usr / src / old / pcc / c2.vax / Makefile
CommitLineData
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#
8CFLAGS= -DCOPYCODE -DC2 -O
7abf8d65 9ASDIR= ../../../usr.bin/as/as.${MACHINE}
90d730e6
KB
10SRCS= c20.c c21.c c22.c
11OBJS= c20.o c21.o c22.o
96c5e0f5 12
90d730e6 13all: c2
96c5e0f5 14
90d730e6
KB
15c2: ${OBJS} ${LIBC}
16 ${CC} -o $@ ${OBJS}
96c5e0f5 17
90d730e6
KB
18c22.o: c22.c c2.h instrs.c2
19 ${CC} ${CFLAGS} -R -c c22.c
96c5e0f5 20
90d730e6
KB
21instrs.c2: ${ASDIR}/instrs
22 (echo FLAVOR C2 ; cat ${ASDIR}/instrs) | awk -f ${ASDIR}/instrs > instrs.c2
96c5e0f5
SL
23
24clean:
90d730e6
KB
25 rm -f *.o *.s c2
26
3cc82c14
KB
27cleandir: clean
28 rm -f ${MAN} tags .depend
29
30install: ${MAN}
7abf8d65 31 install -o bin -g bin -m 755 -s c2 ${DESTDIR}/usr/libexec/c2
90d730e6 32
3cc82c14 33tags: ${SRCS}
90d730e6 34 ctags ${SRCS}
96c5e0f5 35
3cc82c14 36depend: ${SRCS}
90d730e6 37 mkdep ${CFLAGS} ${SRCS}
96c5e0f5 38
3cc82c14
KB
39lint: ${SRCS}
40 lint ${CFLAGS} ${SRCS}
96c5e0f5 41