blob: c9364b5c2c3bb0d0258819fdb0ca7669532d50b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# $OpenBSD: Makefile,v 1.3 1998/05/11 20:27:13 niklas Exp $
# $NetBSD: Makefile,v 1.13 1995/04/23 07:58:46 cgd Exp $
TARGET_MACHINE_ARCH?= $(MACHINE_ARCH)
PROG= ld
SRCS= ld.c symbol.c lib.c shlib.c warnings.c etc.c rrs.c xbits.c md.c
CFLAGS+=-g
CPPFLAGS+= -I$(.CURDIR) -I$(.CURDIR)/$(TARGET_MACHINE_ARCH)
.if ($(TARGET_MACHINE_ARCH) != $(MACHINE_ARCH))
CPPFLAGS+= -DCROSS_LINKER -DXHOST=$(MACHINE_ARCH) \
-I${.CURDIR}/../../../sys/arch/${TARGET_MACHINE_ARCH}/include \
-I${.CURDIR}/../../../include -I${.CURDIR}/../../..
.else
SUBDIR= ldconfig ldd
.endif
.PATH: $(.CURDIR)/$(TARGET_MACHINE_ARCH)
.include <bsd.prog.mk>
.if !defined(NOPIC) && ($(TARGET_MACHINE_ARCH) == $(MACHINE_ARCH))
SUBDIR+= rtld
.endif
|