Fixed dependencies for scrt0.o.

Build a static gcrt0.o (sgcrt0.o) too.  Currently only the dynamic gcrt0.o
is used, although -pg forces -static.
Sorted the .o targets.
This commit is contained in:
Bruce Evans 1995-10-22 18:36:47 +00:00
parent 178d6c8706
commit ccbc94648a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11676

View File

@ -1,8 +1,8 @@
# from: @(#)Makefile 5.6 (Berkeley) 5/22/91
# $Id: Makefile,v 1.19 1995/10/18 04:19:00 davidg Exp $
# $Id: Makefile,v 1.20 1995/10/20 20:05:15 phk Exp $
CFLAGS+= -DLIBC_SCCS -fno-omit-frame-pointer
OBJS= scrt0.o crt0.o gcrt0.o c++rt0.o
OBJS= crt0.o c++rt0.o gcrt0.o scrt0.o sgcrt0.o
CLEANFILES+= a.out
MAN3+= dlopen.3
MLINKS+= dlopen.3 dlsym.3 \
@ -11,11 +11,6 @@ MLINKS+= dlopen.3 dlsym.3 \
all: ${OBJS}
scrt0.o: crt0.c
${CC} ${CFLAGS} -c -DCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}
${LD} -x -r ${.TARGET}
mv a.out ${.TARGET}
crt0.o: crt0.c
${CC} ${CFLAGS} -c -DCRT0 -DDYNAMIC ${.CURDIR}/crt0.c -o ${.TARGET}
${LD} -x -r ${.TARGET}
@ -35,6 +30,18 @@ gcrt0.o: crt0.o
${LD} -x -r ${.TARGET}
mv a.out ${.TARGET}
# dependencies fudged as for gcrt0.o
scrt0.o: crt0.o
${CC} ${CFLAGS} -c -DCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}
${LD} -x -r ${.TARGET}
mv a.out ${.TARGET}
# dependencies fudged as for gcrt0.o
sgcrt0.o: scrt0.o
${CC} ${CFLAGS} -c -DMCRT0 ${.CURDIR}/crt0.c -o ${.TARGET}
${LD} -x -r ${.TARGET}
mv a.out ${.TARGET}
beforeinstall:
cmp -s ${.CURDIR}/dlfcn.h ${DESTDIR}/usr/include/dlfcn.h || \
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \