1996-09-12 05:42:54 +02:00
|
|
|
# $Id: Makefile,v 1.19 1996/05/07 23:15:58 wosch Exp $
|
1993-11-04 00:41:59 +01:00
|
|
|
|
|
|
|
PROG= ld.so
|
1994-02-13 21:43:13 +01:00
|
|
|
SRCS= mdprologue.S rtld.c malloc.c shlib.c etc.c md.c
|
1995-08-26 15:17:39 +02:00
|
|
|
MAN1= rtld.1
|
1993-11-04 00:41:59 +01:00
|
|
|
LDDIR?= $(.CURDIR)/..
|
|
|
|
PICFLAG=-fpic
|
1994-02-13 21:43:13 +01:00
|
|
|
CFLAGS+=-I$(LDDIR) -I$(.CURDIR) -I$(LDDIR)/$(MACHINE) $(PICFLAG) -DRTLD
|
|
|
|
LDFLAGS+=-Bshareable -Bsymbolic -assert nosymbolic
|
|
|
|
ASFLAGS+=-k
|
1994-08-28 20:49:06 +02:00
|
|
|
DPADD+= ${LIBC:S/c.a/c_pic.a/} ${LIBC:S/c.a/gcc_pic.a/}
|
1994-03-11 00:19:54 +01:00
|
|
|
LDADD+= -lc_pic -lgcc_pic
|
1993-11-04 00:41:59 +01:00
|
|
|
BINDIR= /usr/libexec
|
1996-09-12 05:42:54 +02:00
|
|
|
INSTALLFLAGS+= -fschg -C # -C to install as atomically as possible
|
1995-08-26 15:17:39 +02:00
|
|
|
MLINKS= rtld.1 ld.so.1
|
1993-11-04 00:41:59 +01:00
|
|
|
|
1994-02-13 21:43:13 +01:00
|
|
|
.PATH: $(LDDIR) $(LDDIR)/$(MACHINE)
|
|
|
|
|
1994-08-28 20:49:06 +02:00
|
|
|
$(PROG): ${OBJS} ${DPADD}
|
1995-03-04 18:49:20 +01:00
|
|
|
$(LD) -o $(PROG) $(LDFLAGS) $(OBJS) $(LDADD)
|
1993-11-04 00:41:59 +01:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|