]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/csu/mips/Makefile
bhnd(9): Fix a few mandoc related issues
[FreeBSD/FreeBSD.git] / lib / csu / mips / Makefile
1 # $FreeBSD$
2
3 .PATH: ${.CURDIR:H}/common
4
5 .include <src.opts.mk>
6
7 CFLAGS+=        -DCRT_IRELOC_SUPPRESS
8
9 .if ${MACHINE_ARCH:Mmips64}
10 ELFCLASS=       64
11 .else
12 ELFCLASS=       32
13 .endif
14 .if ${MACHINE_ARCH:Mmips*el}
15 ENDIAN=         l
16 .else
17 ENDIAN=         b
18 .endif
19 .if ${MACHINE_ARCH:Mmipsn32*}
20 SUFFIX=         n32
21 .else
22 SUFFIX=
23 .endif
24
25 # binutils requires an explicit emulation for ld -r
26 LDFLAGS.bfd+=   -Wl,-m -Wl,elf${ELFCLASS}${ENDIAN}tsmip${SUFFIX}_fbsd
27
28 .include <bsd.lib.mk>