freebsd-dev/lib/csu/i386/Makefile

40 lines
879 B
Makefile
Raw Normal View History

1993-11-04 01:09:18 +00:00
# from: @(#)Makefile 5.6 (Berkeley) 5/22/91
# $Id: Makefile,v 1.7 1993/11/18 00:08:03 ache Exp $
1993-06-12 14:58:17 +00:00
CFLAGS+= -DLIBC_SCCS -DDYNAMIC
OBJS= crt0.o gcrt0.o crt1.so
1993-06-12 14:58:17 +00:00
CLEANFILES+= gmon.o moncrt0.o core a.out
all: ${OBJS}
crt0.o: crt0.c
${CC} ${CFLAGS} -c -DCRT0 ${.ALLSRC} -o ${.TARGET}
${LD} -x -r ${.TARGET}
mv a.out ${.TARGET}
crt1.so: crt1.c
${CC} ${CFLAGS} -fpic -c ${.ALLSRC} -o ${.TARGET}
${LD} -X -r ${.TARGET}
@mv a.out ${.TARGET}
1993-06-12 14:58:17 +00:00
moncrt0.o: crt0.c
${CC} ${CFLAGS} -c -DMCRT0 ${.ALLSRC} -o ${.TARGET}
${LD} -x -r ${.TARGET}
mv a.out ${.TARGET}
1993-06-12 14:58:17 +00:00
gcrt0.o: moncrt0.o gmon.o
${LD} -x -r -o ${.TARGET} moncrt0.o gmon.o
1993-06-12 14:58:17 +00:00
gmon.o: gmon.c gmon.h
${CC} ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
${LD} -x -r ${.TARGET}
mv a.out ${.TARGET}
1993-06-12 14:58:17 +00:00
install:
install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \
1993-06-12 14:58:17 +00:00
${DESTDIR}/usr/lib
depend lint tags:
.include <bsd.prog.mk>