1994-01-29 00:01:20 +03:00
|
|
|
# $Id: Makefile,v 1.8 1994/01/28 21:01:20 pk Exp $
|
1993-10-17 00:54:08 +03:00
|
|
|
|
|
|
|
PROG= ld.so
|
1994-01-29 00:01:20 +03:00
|
|
|
SRCS= mdprologue.S rtld.c malloc.c shlib.c etc.c md.c
|
1993-10-17 00:54:08 +03:00
|
|
|
NOMAN= noman
|
|
|
|
LDDIR?= $(.CURDIR)/..
|
|
|
|
#PICFLAG=-pic
|
|
|
|
PICFLAG=-fpic
|
1993-12-10 08:10:22 +03:00
|
|
|
CFLAGS+=-I$(LDDIR) -I$(.CURDIR) -I$(LDDIR)/$(MACHINE_ARCH) $(PICFLAG) -DRTLD
|
|
|
|
LDFLAGS+=-Bshareable -Bsymbolic -assert nosymbolic
|
|
|
|
ASFLAGS+=-k
|
|
|
|
LDADD+= -lc_pic
|
1993-10-17 00:54:08 +03:00
|
|
|
BINDIR= /usr/libexec
|
|
|
|
|
1993-12-08 14:47:17 +03:00
|
|
|
.PATH: $(LDDIR) $(LDDIR)/$(MACHINE_ARCH)
|
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} -
|
1993-10-17 00:54:08 +03:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|