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