xref: /openbsd/gnu/usr.bin/cc/collect2/Makefile (revision 58ef3a88)
1# $FreeBSD: src/gnu/usr.bin/cc/collect2/Makefile,v 1.9.20.1 2009/04/15 03:14:26 kensmith Exp $
2# $OpenBSD: Makefile,v 1.3 2010/09/25 17:44:34 drahn Exp $
3
4.include <bsd.own.mk>
5
6.include "${.CURDIR}/../Makefile.inc"
7.include "${.CURDIR}/../Makefile.ver"
8
9.PATH: ${GCCDIR}
10
11PROG=	collect2
12SRCS=	collect2.c tlink.c version.c
13NOMAN=	Yes
14BINDIR= /usr/lib/gcc-lib/${GCC_TARGET}/${BASEVER}
15
16LDADD= ${LIBIBERTY}
17
18.if defined(CROSSDIR)
19CFLAGS+=  -DTARGET_MACHINE=\"$(GCC_TARGET)\"
20.endif
21
22.include <bsd.prog.mk>
23