Remove DEC Alpha and PC98 support.
[dragonfly.git] / libexec / rtld-elf / Makefile
1 # $FreeBSD: src/libexec/rtld-elf/Makefile,v 1.10.2.6 2002/06/22 17:03:13 jdp Exp $
2 # $DragonFly: src/libexec/rtld-elf/Makefile,v 1.6 2005/02/04 00:33:49 joerg Exp $
3
4 PROG=           ld-elf.so.1
5 SRCS=           rtld_start.S rtld.c lockdflt.c map_object.c malloc.c \
6                 xmalloc.c debug.c reloc.c
7 MAN=            rtld.1
8 CFLAGS+=        -Wall -I${.CURDIR}/${MACHINE_ARCH} -I${.CURDIR}
9 LDFLAGS+=       -nostdlib -e .rtld_start
10 INSTALLFLAGS=   -fschg -C -b
11 MLINKS=         rtld.1 ld-elf.so.1.1
12
13 .if exists(${.CURDIR}/${MACHINE_ARCH}/Makefile.inc)
14 .include "${.CURDIR}/${MACHINE_ARCH}/Makefile.inc"
15 .endif
16
17 .ifdef LDSCRIPT
18 OBJS+=          dyn_hack.so
19 LDFLAGS+=       -Wl,-T,${LDSCRIPT} -Wl,-E -Wl,-Bstatic
20 DPADD=          ${LIBC}
21 LDADD=          -lc
22 .else
23 CFLAGS+=        -fpic -DPIC
24 LDFLAGS+=       -shared -Wl,-Bsymbolic
25 DPADD=          ${LIBC_PIC}
26 LDADD=          -lc_pic
27 .endif
28
29 dyn_hack.so:
30         ${CC} -shared -nostdlib -o dyn_hack.so -x c /dev/null
31
32 .PATH: ${.CURDIR}/${MACHINE_ARCH}
33
34 .include <bsd.prog.mk>