NetBSD/libexec/ld.aout_so/Makefile

26 lines
666 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.12 1996/01/02 08:54:28 thorpej Exp $
PROG= ld.so
1994-09-19 08:49:02 +04:00
SRCS= mdprologue.S rtld.c malloc.c shlib.c etc.c md.c vfprintf.c
1995-08-25 14:08:45 +04:00
#NOMAN= noman
MAN= rtld.1
LDDIR?= $(.CURDIR)/..
#PICFLAG=-pic
PICFLAG=-fpic -fno-function-cse
1994-09-19 08:49:02 +04:00
CFLAGS+=-I$(LDDIR) -I$(.CURDIR) -I$(LDDIR)/$(MACHINE_ARCH) $(PICFLAG) -DRTLD -DLIBC_SCCS
1993-12-10 08:10:22 +03:00
LDFLAGS+=-Bshareable -Bsymbolic -assert nosymbolic
ASFLAGS+=-k
LDADD+= -lc_pic
BINDIR= /usr/libexec
1995-08-25 14:08:45 +04:00
MLINKS= rtld.1 ld.so.1
1994-09-19 08:49:02 +04:00
.PATH: $(LDDIR) $(LDDIR)/$(MACHINE_ARCH) ${.CURDIR}/../../../../lib/libc/stdio
$(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>