1994-02-13 20:43:13 +00:00
|
|
|
# $Id: Makefile,v 1.8 1994/01/28 21:01:20 pk 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
|
|
|
|
LDADD+= -lc_pic
|
1993-11-03 23:41:59 +00:00
|
|
|
BINDIR= /usr/libexec
|
|
|
|
|
|
|
|
.SUFFIXES: .S
|
|
|
|
|
1994-02-13 20:43:13 +00:00
|
|
|
.PATH: $(LDDIR) $(LDDIR)/$(MACHINE)
|
|
|
|
|
1993-11-03 23:41:59 +00:00
|
|
|
$(PROG):
|
1994-02-13 20:43:13 +00:00
|
|
|
$(LD) -o $(PROG) $(LDFLAGS) $(OBJS) $(LDADD)
|
1993-11-03 23:41:59 +00:00
|
|
|
|
|
|
|
.S.o:
|
1994-02-13 20:43:13 +00:00
|
|
|
${CPP} ${.IMPSRC} | ${AS} ${ASFLAGS} -o ${.TARGET} -
|
1993-11-03 23:41:59 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|