freebsd-nq/libexec/rtld-aout/Makefile

28 lines
657 B
Makefile
Raw Normal View History

# $Id: Makefile,v 1.11 1994/08/26 19:11:14 wollman Exp $
1993-11-03 23:41:59 +00:00
PROG= ld.so
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
CFLAGS+=-I$(LDDIR) -I$(.CURDIR) -I$(LDDIR)/$(MACHINE) $(PICFLAG) -DRTLD
LDFLAGS+=-Bshareable -Bsymbolic -assert nosymbolic
ASFLAGS+=-k
DPADD+= ${LIBC:S/c.a/c_pic.a/} ${LIBC:S/c.a/gcc_pic.a/}
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
.PATH: $(LDDIR) $(LDDIR)/$(MACHINE)
$(PROG): ${OBJS} ${DPADD}
$(LD) -o $(PROG) $(LDFLAGS) $(OBJS) $(LDADD)
1993-11-03 23:41:59 +00:00
.S.o:
${CPP} ${.IMPSRC} | ${AS} ${ASFLAGS} -o ${.TARGET} -
1993-11-03 23:41:59 +00:00
.include <bsd.prog.mk>