BSD 4_4 release
[unix-history] / usr / src / lib / csu / vax.pcc / Makefile
CommitLineData
1c15e888 1# @(#)Makefile 5.13 (Berkeley) 6/8/90
5481401c 2
b971119e
KB
3CFLAGS= -O -DLIBC_SCCS
4OBJS= crt0.o mcrt0.o gcrt0.o
5CLEANFILES+= gmon.o mon.o moncrt0.o core a.out
5481401c
KB
6
7all: ${OBJS}
8
b971119e
KB
9crt0.o: crt0.c
10 ${CC} -S -DCRT0 ${.ALLSRC}
5481401c 11 ${CPP} crt0.s > x.s
b971119e
KB
12 ${AS} -o x.o x.s
13 ${LD} -x -r -o ${.TARGET} x.o
5481401c
KB
14 rm -f x.s x.o crt0.s
15
16moncrt0.o: crt0.c
b971119e 17 ${CC} -S -DMCRT0 ${.ALLSRC}
5481401c 18 ${CPP} crt0.s > x.s
b971119e
KB
19 ${AS} -o x.o x.s
20 ${LD} -x -r -o ${.TARGET} x.o
5481401c
KB
21 rm -f x.s x.o crt0.s
22
5481401c 23mcrt0.o: moncrt0.o mon.o
b971119e
KB
24 ${LD} -x -r -o ${.TARGET} moncrt0.o mon.o
25
26gcrt0.o: moncrt0.o gmon.o
27 ${LD} -x -r -o ${.TARGET} moncrt0.o gmon.o
5481401c
KB
28
29mon.o: mon.c mon.ex
b971119e
KB
30 ${CC} -S ${DEFS} ${.IMPSRC}
31 ex - mon.s < ${.CURDIR}/mon.ex
32 ${AS} -o x.o mon.s
33 ${LD} -x -r -o ${.TARGET} x.o
5481401c
KB
34 rm -f x.o mon.s
35
36gmon.o: gmon.c gmon.h gmon.ex
b971119e
KB
37 ${CC} -S ${DEFS} ${.IMPSRC}
38 ex - gmon.s < ${.CURDIR}/gmon.ex
39 ${AS} -o x.o gmon.s
40 ${LD} -x -r -o ${.TARGET} x.o
5481401c
KB
41 rm -f x.o gmon.s
42
b971119e
KB
43install:
44 install -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \
45 ${DESTDIR}/usr/lib
5481401c 46
b971119e 47depend lint tags:
5481401c 48
b971119e 49.include <bsd.prog.mk>