1997-10-25 14:10:19 +04:00
|
|
|
# $NetBSD: Makefile,v 1.22 1997/10/25 10:12:46 lukem Exp $
|
1993-10-17 00:54:08 +03:00
|
|
|
|
1997-06-23 17:25:41 +04:00
|
|
|
.if (${MACHINE_ARCH} == "i386") || \
|
|
|
|
(${MACHINE_ARCH} == "m68k") || \
|
|
|
|
(${MACHINE_ARCH} == "ns32k") || \
|
|
|
|
(${MACHINE_ARCH} == "sparc") || \
|
|
|
|
(${MACHINE_ARCH} == "vax") || \
|
|
|
|
(${MACHINE_ARCH} == "arm32")
|
1993-10-17 00:54:08 +03:00
|
|
|
PROG= ld.so
|
1994-09-19 08:49:02 +04:00
|
|
|
SRCS= mdprologue.S rtld.c malloc.c shlib.c etc.c md.c vfprintf.c
|
1997-07-14 06:56:54 +04:00
|
|
|
CLIB= ${.CURDIR}/../../../../lib/libc
|
1996-01-02 11:54:28 +03:00
|
|
|
PICFLAG=-fpic -fno-function-cse
|
1997-10-25 14:10:19 +04:00
|
|
|
CPPFLAGS+=$(PICFLAG) -DRTLD -DLIBC_SCCS -I${CLIB}/include
|
1993-12-10 08:10:22 +03:00
|
|
|
ASFLAGS+=-k
|
1996-06-09 02:22:26 +04:00
|
|
|
LDFLAGS+=-Bshareable -Bsymbolic -assert nosymbolic
|
1997-06-01 01:21:13 +04:00
|
|
|
.if defined(DESTDIR)
|
|
|
|
LDFLAGS+= -nostdlib -L${DESTDIR}/usr/lib
|
1996-06-09 02:22:26 +04:00
|
|
|
.endif
|
1993-12-10 08:10:22 +03:00
|
|
|
LDADD+= -lc_pic
|
1997-03-25 01:02:40 +03:00
|
|
|
DPADD+= ${LIBC_PIC}
|
1993-10-17 00:54:08 +03:00
|
|
|
BINDIR= /usr/libexec
|
1996-12-24 01:13:03 +03:00
|
|
|
HDRS= link.h
|
1997-03-25 01:02:40 +03:00
|
|
|
INCS=${HDRS}
|
|
|
|
INCSDIR=/usr/include
|
1993-10-17 00:54:08 +03:00
|
|
|
|
1997-07-14 06:56:54 +04:00
|
|
|
.PATH: ${CLIB}/stdio
|
1993-10-17 00:54:08 +03:00
|
|
|
|
|
|
|
$(PROG):
|
1993-12-10 08:10:22 +03:00
|
|
|
$(LD) -o $(PROG) $(LDFLAGS) $(OBJS) $(LDADD)
|
1993-10-17 00:54:08 +03:00
|
|
|
|
|
|
|
.S.o:
|
1993-12-10 08:10:22 +03:00
|
|
|
${CPP} ${.IMPSRC} | ${AS} ${ASFLAGS} -o ${.TARGET} -
|
1997-06-23 17:25:41 +04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
MAN= rtld.1
|
|
|
|
MLINKS= rtld.1 ld.so.1
|
1993-10-17 00:54:08 +03:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|