Makefile revision 38816
1#
2#	$Id: Makefile,v 1.3 1998/08/17 04:59:15 jdp Exp $
3#
4
5PROG=		ld-elf.so.1
6SRCS=		rtld_start.S rtld.c map_object.c malloc.c xmalloc.c debug.c \
7		reloc.c
8NOMAN=		true
9CFLAGS+=	-fpic -Wall -DFREEBSD_ELF -I${.CURDIR}
10LDADD+=		-lc_pic
11
12.if	${MACHINE_ARCH} == "alpha"
13CFLAGS+=	-mno-fp-regs
14LDFLAGS+=	-nostdlib -Wl,-Bshareable,-Bsymbolic -e .rtld_start
15.elif	${MACHINE_ARCH} == "i386"
16CFLAGS+=	-elf
17LDFLAGS+=	-elf -nostdlib -Wl,-Bshareable,-Bsymbolic
18.endif
19
20# Atomic installation with "-C" is very important for this program.
21INSTALLFLAGS+=	-C
22
23.PATH: ${.CURDIR}/${MACHINE_ARCH}
24
25.include <bsd.prog.mk>
26