xref: /original-bsd/lib/csu/tahoe/Makefile (revision f8c91da1)
1#	@(#)Makefile	5.14 (Berkeley) 07/03/91
2
3CFLAGS=	-O -DLIBC_SCCS
4OBJS=	crt0.o gcrt0.o
5CLEANFILES+=	gmon.o moncrt0.o core a.out
6
7all: ${OBJS}
8
9crt0.o: crt0.c
10	${CC} ${CFLAGS} -c -DCRT0 ${.ALLSRC}
11	${LD} -x -r ${.TARGET}
12	mv a.out ${.TARGET}
13
14moncrt0.o: crt0.c
15	${CC} ${CFLAGS} -c -DMCRT0 ${.ALLSRC} -o ${.TARGET}
16	${LD} -x -r ${.TARGET}
17	mv a.out ${.TARGET}
18
19gcrt0.o: moncrt0.o gmon.o
20	${LD} -x -r -o ${.TARGET} moncrt0.o gmon.o
21
22gmon.o: gmon.c gmon.h
23	${CC} ${CFLAGS} -c ${DEFS} ${.IMPSRC}
24	${LD} -x -r ${.TARGET}
25	mv a.out ${.TARGET}
26
27install:
28	install -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \
29	    ${DESTDIR}/usr/lib
30
31depend lint tags:
32
33.include <bsd.prog.mk>
34