NetBSD/libexec/ld.aout_so/Makefile

30 lines
668 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.16 1997/04/16 16:49:43 christos Exp $
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
1995-08-25 14:08:45 +04:00
MAN= rtld.1
PICFLAG=-fpic -fno-function-cse
CFLAGS+=$(PICFLAG) -DRTLD -DLIBC_SCCS
1993-12-10 08:10:22 +03:00
ASFLAGS+=-k
LDFLAGS+=-Bshareable -Bsymbolic -assert nosymbolic
.if defined(DESTDIR)
LDFLAGS+= -nostdlib -L${DESTDIR}/usr/lib
.endif
1993-12-10 08:10:22 +03:00
LDADD+= -lc_pic
1997-03-25 01:02:40 +03:00
DPADD+= ${LIBC_PIC}
BINDIR= /usr/libexec
HDRS= link.h
1995-08-25 14:08:45 +04:00
MLINKS= rtld.1 ld.so.1
1997-03-25 01:02:40 +03:00
INCS=${HDRS}
INCSDIR=/usr/include
.PATH: ${.CURDIR}/../../../../lib/libc/stdio
$(PROG):
1993-12-10 08:10:22 +03:00
$(LD) -o $(PROG) $(LDFLAGS) $(OBJS) $(LDADD)
.S.o:
1993-12-10 08:10:22 +03:00
${CPP} ${.IMPSRC} | ${AS} ${ASFLAGS} -o ${.TARGET} -
.include <bsd.prog.mk>