xref: /original-bsd/lib/csu/vax/Makefile (revision 87c91b73)
1#	@(#)Makefile	5.12 (Berkeley) 05/11/90
2
3CFLAGS=	-O -DLIBC_SCCS
4OBJS=	crt0.o mcrt0.o gcrt0.o
5
6all: ${OBJS}
7
8crt0.o: crt0.c
9	${CC} -S -DCRT0 ${.ALLSRC}
10	${CPP} crt0.s > x.s
11	${AS} -o x.o x.s
12	${LD} -x -r -o ${.TARGET} x.o
13	rm -f x.s x.o crt0.s
14
15moncrt0.o: crt0.c
16	${CC} -S -DMCRT0 ${.ALLSRC}
17	${CPP} crt0.s > x.s
18	${AS} -o x.o x.s
19	${LD} -x -r -o ${.TARGET} x.o
20	rm -f x.s x.o crt0.s
21
22mcrt0.o: moncrt0.o mon.o
23	${LD} -x -r -o ${.TARGET} moncrt0.o mon.o
24
25gcrt0.o: moncrt0.o gmon.o
26	${LD} -x -r -o ${.TARGET} moncrt0.o gmon.o
27
28mon.o: mon.c mon.ex
29	${CC} -S ${DEFS} ${.IMPSRC}
30	ex - mon.s < ${.CURDIR}/mon.ex
31	${AS} -o x.o mon.s
32	${LD} -x -r -o ${.TARGET} x.o
33	rm -f x.o mon.s
34
35gmon.o: gmon.c gmon.h gmon.ex
36	${CC} -S ${DEFS} ${.IMPSRC}
37	ex - gmon.s < ${.CURDIR}/gmon.ex
38	${AS} -o x.o gmon.s
39	${LD} -x -r -o ${.TARGET} x.o
40	rm -f x.o gmon.s
41
42install:
43	install -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \
44	    ${DESTDIR}/usr/lib
45
46cleandir clean:
47	rm -f ${OBJS} gmon.o mon.o moncrt0.o core a.out
48
49depend lint tags:
50
51.include <bsd.own.mk>
52