1999-02-09 22:21:53 +03:00
|
|
|
# $NetBSD: Makefile.inc,v 1.7 1999/02/09 19:21:53 tv Exp $
|
1997-12-18 10:37:37 +03:00
|
|
|
|
|
|
|
.if !defined(__MAKEFILE_INC_INCLUDED__)
|
|
|
|
__MAKEFILE_INC_INCLUDED__=1
|
|
|
|
|
1999-02-09 22:21:53 +03:00
|
|
|
CPPFLAGS+= -I${.OBJDIR} -I${.CURDIR} -I${.CURDIR}/../common \
|
|
|
|
-I${BFDOBJ} -I${DIST}/bfd -I${DIST}/binutils -I${DIST}/include \
|
|
|
|
-DHAVE_CONFIG_H
|
|
|
|
DPADD+= ${LIBCOMMONDIR}/libcommon.a ${BFDOBJ}/libbfd_pic.a
|
|
|
|
LDADD+= -L${LIBCOMMONDIR} -lcommon -L${BFDOBJ} -lbfd
|
1997-12-18 10:37:37 +03:00
|
|
|
|
1999-02-09 22:21:53 +03:00
|
|
|
DIST= ${.CURDIR}/../../../dist
|
|
|
|
.if !make(print-objdir)
|
|
|
|
BFDOBJ!= cd ${.CURDIR}/../../../lib/libbfd && ${MAKE} print-objdir
|
|
|
|
LIBCOMMONDIR!= cd ${.CURDIR}/../common && ${MAKE} print-objdir
|
|
|
|
.endif
|
1997-12-18 10:37:37 +03:00
|
|
|
|
1999-02-09 22:21:53 +03:00
|
|
|
.PATH: ${DIST}/binutils
|
1997-12-18 10:37:37 +03:00
|
|
|
|
|
|
|
.if exists(${.CURDIR}/../../Makefile.inc)
|
|
|
|
.include "${.CURDIR}/../../Makefile.inc"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.endif # __MAKEFILE_INC_INCLUDED__
|