blob: 052f9fe7253f9a9369881efb1086af9294dd3597 (
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
25
26
27
28
|
# $FreeBSD$
.include "../Makefile.inc0"
.include <bsd.own.mk>
.PATH: ${SRCDIR}/binutils ${SRCDIR}/binutils/doc
PROGNAME= gnu-ranlib
MAN= gnu-ranlib.1
gnu-ranlib.1: ranlib.1
cat ${.ALLSRC} > ${.TARGET}
CLEANFILES+= gnu-ranlib.1
PROG= ranlib
SRCS= ar.c is-ranlib.c
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbinutils
CFLAGS+= -I${SRCDIR}/binutils
CFLAGS+= -I${SRCDIR}/bfd
.if ${MK_SHARED_TOOLCHAIN} == "no"
NO_SHARED?= yes
.endif
DPADD= ${RELTOP}/libbinutils/libbinutils.a
DPADD+= ${RELTOP}/libbfd/libbfd.a
DPADD+= ${RELTOP}/libiberty/libiberty.a
LDADD= ${DPADD}
.include <bsd.prog.mk>
|