1998-03-07 19:24:35 +00:00
|
|
|
#
|
1998-09-04 19:03:57 +00:00
|
|
|
# $Id: Makefile,v 1.3 1998/08/17 04:59:15 jdp Exp $
|
1998-03-07 19:24:35 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
PROG= ld-elf.so.1
|
1998-09-04 19:03:57 +00:00
|
|
|
SRCS= rtld_start.S rtld.c map_object.c malloc.c xmalloc.c debug.c \
|
|
|
|
reloc.c
|
1998-03-07 19:24:35 +00:00
|
|
|
NOMAN= true
|
1998-09-04 19:03:57 +00:00
|
|
|
CFLAGS+= -fpic -Wall -DFREEBSD_ELF -I${.CURDIR}
|
1998-03-07 19:24:35 +00:00
|
|
|
LDADD+= -lc_pic
|
1998-09-04 19:03:57 +00:00
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "alpha"
|
|
|
|
CFLAGS+= -mno-fp-regs
|
|
|
|
LDFLAGS+= -nostdlib -Wl,-Bshareable,-Bsymbolic -e .rtld_start
|
|
|
|
.elif ${MACHINE_ARCH} == "i386"
|
|
|
|
CFLAGS+= -elf
|
|
|
|
LDFLAGS+= -elf -nostdlib -Wl,-Bshareable,-Bsymbolic
|
|
|
|
.endif
|
|
|
|
|
1998-08-17 04:59:15 +00:00
|
|
|
# Atomic installation with "-C" is very important for this program.
|
|
|
|
INSTALLFLAGS+= -C
|
1998-03-07 19:24:35 +00:00
|
|
|
|
1998-09-04 19:03:57 +00:00
|
|
|
.PATH: ${.CURDIR}/${MACHINE_ARCH}
|
1998-03-07 19:24:35 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|