mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-29 12:03:03 +00:00
504e8b978b
Add -I${DESTDIR}/usr/include to cpp command.
32 lines
779 B
Makefile
32 lines
779 B
Makefile
# $Id: Makefile,v 1.12 1994/08/28 18:48:32 bde Exp $
|
|
|
|
PROG= ld.so
|
|
SRCS= mdprologue.S rtld.c malloc.c shlib.c etc.c md.c
|
|
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
|
|
BINDIR= /usr/libexec
|
|
INSTALLFLAGS+= -fschg
|
|
|
|
.SUFFIXES: .S
|
|
|
|
.PATH: $(LDDIR) $(LDDIR)/$(MACHINE)
|
|
|
|
$(PROG): ${OBJS} ${DPADD}
|
|
$(LD) -o $(PROG) $(LDFLAGS) $(OBJS) $(LDDESTDIR) $(LDADD)
|
|
|
|
.S.o:
|
|
.if defined(DESTDIR)
|
|
${CPP} -I${DESTDIR}/usr/include ${.IMPSRC} | ${AS} ${ASFLAGS} -o ${.TARGET} -
|
|
.else
|
|
${CPP} ${.IMPSRC} | ${AS} ${ASFLAGS} -o ${.TARGET} -
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|