1994-09-18 19:41:38 +00:00
|
|
|
# $Id: Makefile,v 1.12 1994/08/28 18:48:32 bde Exp $
|
1993-11-03 23:41:59 +00:00
|
|
|
|
|
|
|
PROG= ld.so
|
1994-02-13 20:43:13 +00:00
|
|
|
SRCS= mdprologue.S rtld.c malloc.c shlib.c etc.c md.c
|
1993-11-03 23:41:59 +00:00
|
|
|
NOMAN= noman
|
|
|
|
LDDIR?= $(.CURDIR)/..
|
|
|
|
#PICFLAG=-pic
|
|
|
|
PICFLAG=-fpic
|
1994-02-13 20:43:13 +00:00
|
|
|
CFLAGS+=-I$(LDDIR) -I$(.CURDIR) -I$(LDDIR)/$(MACHINE) $(PICFLAG) -DRTLD
|
|
|
|
LDFLAGS+=-Bshareable -Bsymbolic -assert nosymbolic
|
|
|
|
ASFLAGS+=-k
|
1994-08-28 18:49:06 +00:00
|
|
|
DPADD+= ${LIBC:S/c.a/c_pic.a/} ${LIBC:S/c.a/gcc_pic.a/}
|
1994-03-10 23:19:54 +00:00
|
|
|
LDADD+= -lc_pic -lgcc_pic
|
1993-11-03 23:41:59 +00:00
|
|
|
BINDIR= /usr/libexec
|
1994-08-26 19:11:14 +00:00
|
|
|
INSTALLFLAGS+= -fschg
|
1993-11-03 23:41:59 +00:00
|
|
|
|
|
|
|
.SUFFIXES: .S
|
|
|
|
|
1994-02-13 20:43:13 +00:00
|
|
|
.PATH: $(LDDIR) $(LDDIR)/$(MACHINE)
|
|
|
|
|
1994-08-28 18:49:06 +00:00
|
|
|
$(PROG): ${OBJS} ${DPADD}
|
1994-09-18 19:41:38 +00:00
|
|
|
$(LD) -o $(PROG) $(LDFLAGS) $(OBJS) $(LDDESTDIR) $(LDADD)
|
1993-11-03 23:41:59 +00:00
|
|
|
|
|
|
|
.S.o:
|
1994-09-18 19:41:38 +00:00
|
|
|
.if defined(DESTDIR)
|
|
|
|
${CPP} -I${DESTDIR}/usr/include ${.IMPSRC} | ${AS} ${ASFLAGS} -o ${.TARGET} -
|
|
|
|
.else
|
1994-02-13 20:43:13 +00:00
|
|
|
${CPP} ${.IMPSRC} | ${AS} ${ASFLAGS} -o ${.TARGET} -
|
1994-09-18 19:41:38 +00:00
|
|
|
.endif
|
1993-11-03 23:41:59 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|