1#	@(#)Makefile	8.1 (Berkeley) 06/06/93
2
3all: pcexterns.o
4
5pcexterns.o: ${.CURDIR}/pcexterns.awk ${LIBPC} ${LIBC} ${LIBM}
6	(echo -n ${LIBPC}:; nm -go ${LIBPC}) \
7	    | awk -f ${.CURDIR}/pcexterns.awk \
8	    | sort -t\" +1 -2 -u > pcexterns.s
9	(echo -n ${LIBC}:; nm -go ${LIBC}) \
10	    | awk -f ${.CURDIR}/pcexterns.awk \
11	    | sort -t\" +1 -2 -u >> pcexterns.s
12	(echo -n ${LIBM}:; nm -go ${LIBM}) \
13	    | awk -f ${.CURDIR}/pcexterns.awk \
14	    | sort -t\" +1 -2 -u >> pcexterns.s
15	${AS} pcexterns.s -o ${.TARGET}
16	rm -f pcexterns.s
17
18clean cleandir:
19	rm -f pcexterns.o pcexterns.s
20
21depend lint:
22
23install:
24	install -o ${BINOWN} -g ${BINGRP} -m 444 pcexterns.o \
25	    ${DESTDIR}/usr/lib
26
27.include <bsd.prog.mk>
28