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