1 # $NetBSD: Makefile,v 1.2 2006/05/15 19:11:51 nathanw Exp $
7 TOP
= ${NETBSDSRCDIR}/gnu
14 -I
${DIST}/sim
/ppc
-I
${DIST}/include \
15 -I
${.CURDIR
}/..
/..
/arch
/${MACHINE_ARCH} \
16 -I
${.CURDIR
}/..
/..
/bfd
/arch
/${MACHINE_ARCH} \
18 -I
${.CURDIR
}/..
/..
/gdb \
20 -I
${DIST}/gdb
/config \
22 -I
${.CURDIR
}/..
/arch
/${MACHINE_ARCH} \
24 PSIM_DEFINES
= -DHAVE_CONFIG_H \
25 -DDEFAULT_INLINE
=PSIM_INLINE_LOCALS \
26 -DWITH_HOST_BYTE_ORDER
=BYTE_ORDER \
28 -DHAVE_TERMIOS_STRUCTURE \
30 CPPFLAGS
+= ${HOST_CPPFLAGS} ${PSIM_DEFINES}
32 .
include "../../../Makefile.inc"
33 .
include <bsd.prog.mk
>
35 SIMDIR
!= cd
${.CURDIR
}/..
/ppc
&& ${PRINTOBJDIR}
37 LDADD
+= -L
${SIMDIR} -lsim
38 DPADD
+= ${SIMDIR}/libsim.a
40 LIBBFDDIR
!= cd
${.CURDIR
}/..
/..
/bfd
&& ${PRINTOBJDIR}
41 LDADD
+= -L
${LIBBFDDIR} -lbfd
42 DPADD
+= ${LIBBFDDIR}/libbfd.a
44 LIBIBERTYDIR
!= cd
${.CURDIR
}/..
/..
/libiberty
&& ${PRINTOBJDIR}
45 LDADD
+= -L
${LIBIBERTYDIR} -liberty
46 DPADD
+= ${LIBIBERTYDIR}/libiberty.a
48 .PATH
: ${DIST}/sim
/ppc