freebsd-nq/libexec/rtld-elf/Makefile
Doug Rabson 13575fc46f Add alpha support.
Submitted by: John Birrell <jb@cimlogic.com.au> (with extra hacks by me)
Obtained from: Probably NetBSD
1998-09-04 19:03:57 +00:00

26 lines
600 B
Makefile

#
# $Id: Makefile,v 1.3 1998/08/17 04:59:15 jdp Exp $
#
PROG= ld-elf.so.1
SRCS= rtld_start.S rtld.c map_object.c malloc.c xmalloc.c debug.c \
reloc.c
NOMAN= true
CFLAGS+= -fpic -Wall -DFREEBSD_ELF -I${.CURDIR}
LDADD+= -lc_pic
.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
# Atomic installation with "-C" is very important for this program.
INSTALLFLAGS+= -C
.PATH: ${.CURDIR}/${MACHINE_ARCH}
.include <bsd.prog.mk>