NetBSD/gnu/usr.bin/ld/rtld/Makefile

24 lines
544 B
Makefile
Raw Normal View History

1993-12-10 08:10:22 +03:00
# $Id: Makefile,v 1.7 1993/12/10 05:10:30 mycroft Exp $
PROG= ld.so
SRCS= mdprologue.S rtld.c sbrk.c shlib.c etc.c md.c
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
BINDIR= /usr/libexec
1993-12-08 14:47:17 +03:00
.PATH: $(LDDIR) $(LDDIR)/$(MACHINE_ARCH)
$(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>