Adapt to mknative defs.mk.
This commit is contained in:
parent
f6ec6161ba
commit
841d7fcb1f
@ -1,9 +1,7 @@
|
||||
# $NetBSD: Makefile,v 1.1 2006/05/15 16:31:37 nathanw Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2006/05/29 19:20:05 nathanw Exp $
|
||||
|
||||
.include "../Makefile.inc"
|
||||
|
||||
.if exists(${.CURDIR}/../arch/${MACHINE_ARCH}/defs.mk)
|
||||
|
||||
TOP= ${NETBSDSRCDIR}/gnu
|
||||
DIST= ${TOP}/dist/gdb6
|
||||
|
||||
@ -16,38 +14,25 @@ CPPFLAGS= -I${.CURDIR} \
|
||||
-I${.CURDIR}/../arch/${MACHINE_ARCH} \
|
||||
-I${DIST}/gdb \
|
||||
-I${DIST}/gdb/config \
|
||||
-I${DIST}/include \
|
||||
-I${DIST}/include/opcode \
|
||||
-I${DIST}/bfd \
|
||||
-I${.CURDIR}/../bfd \
|
||||
-I${DIST}/gdb/tui \
|
||||
-I${DIST} \
|
||||
-DHAVE_CONFIG_H \
|
||||
-DLOCALEDIR='"/usr/share/locale"' \
|
||||
-DUSE_INCLUDED_REGEX \
|
||||
-DNETBSD_CORE
|
||||
|
||||
LDADD= -lcurses -lintl -lm -lkvm
|
||||
DPADD= ${LIBCURSES} ${LIBINTL} ${LIBM} ${LIBKVM}
|
||||
|
||||
.if ${SRCS:Mnbsd-thread.c} != ""
|
||||
LDADD+= -lpthread_dbg
|
||||
.endif
|
||||
-I${.CURDIR}/../bfd/arch/${MACHINE_ARCH} \
|
||||
-I${DIST}/bfd \
|
||||
-I${DIST}/include \
|
||||
${GCPPFLAGS:M-D*}
|
||||
|
||||
TEXINFO= gdb.texinfo gdbint.texinfo stabs.texinfo
|
||||
INFOFLAGS= -I${DIST}/gdb/doc -I${DIST}/gdb/mi \
|
||||
-I${DIST}/readline/doc -I${.CURDIR}/..
|
||||
|
||||
.endif
|
||||
|
||||
.include "../../Makefile.inc"
|
||||
.include <bsd.prog.mk>
|
||||
.include <bsd.info.mk>
|
||||
|
||||
LIBOPCODESDIR!= cd ${.CURDIR}/../opcodes && ${PRINTOBJDIR}
|
||||
LIBBFDDIR!= cd ${.CURDIR}/../bfd && ${PRINTOBJDIR}
|
||||
LIBOPCODESDIR!= cd ${.CURDIR}/../opcodes && ${PRINTOBJDIR}
|
||||
LIBBFDDIR!= cd ${.CURDIR}/../bfd && ${PRINTOBJDIR}
|
||||
LIBIBERTYDIR!= cd ${.CURDIR}/../libiberty && ${PRINTOBJDIR}
|
||||
LIBGDBDIR!= cd ${.CURDIR}/../libgdb && ${PRINTOBJDIR}
|
||||
LIBGDBDIR!= cd ${.CURDIR}/../libgdb && ${PRINTOBJDIR}
|
||||
|
||||
.if ${USE_LIBEDIT} == yes
|
||||
LIBEDIT=-ledit
|
||||
@ -59,11 +44,15 @@ LIBEDIT= -L${LIBREADLINEDIR} -lreadline
|
||||
LDADD+= -L${LIBGDBDIR} -lgdb
|
||||
DPADD+= ${LIBGDBDIR}/libgdb.a
|
||||
|
||||
# PSIM support for PowerPC.
|
||||
# Simulator support
|
||||
.if ${MACHINE_ARCH} == powerpc || ${MACHINE_ARCH} == powerpcle
|
||||
PSIMOBJ!= cd ${.CURDIR}/../sim/ppc && ${PRINTOBJDIR}
|
||||
LDADD+= -L${PSIMOBJ} -lsim
|
||||
DPADD+= ${PSIMOBJ}/libsim.a
|
||||
SIMOBJ!= cd ${.CURDIR}/../sim/ppc && ${PRINTOBJDIR}
|
||||
LDADD+= -L${SIMOBJ} -lsim
|
||||
DPADD+= ${SIMOBJ}/libsim.a
|
||||
.elif ${MACHINE_ARCH} == mipseb || ${MACHINE_ARCH} == mipsel
|
||||
SIMOBJ!= cd ${.CURDIR}/../sim/mips && ${PRINTOBJDIR}
|
||||
LDADD+= -L${SIMOBJ} -lsim
|
||||
DPADD+= ${SIMOBJ}/libsim.a
|
||||
.endif
|
||||
|
||||
LDADD+= -L${LIBOPCODESDIR} -lopcodes \
|
||||
@ -78,5 +67,12 @@ DPADD+= ${LIBOPCODESDIR}/libopcodes.a \
|
||||
${LIBTERMCAP} \
|
||||
${LIBIBERTYDIR}/libiberty.a
|
||||
|
||||
LDADD+= -lcurses -lintl -lm -lkvm
|
||||
DPADD+= ${LIBCURSES} ${LIBINTL} ${LIBM} ${LIBKVM}
|
||||
|
||||
.if ${SRCS:Mnbsd-thread.c} != ""
|
||||
LDADD+= -lpthread_dbg
|
||||
.endif
|
||||
|
||||
.PATH: ${DIST}/gdb ${DIST}/gdb/mi ${DIST}/gdb/cli ${DIST}/gdb/tui \
|
||||
${DIST}/gdb/signals ${DIST}/gdb/doc ${.CURDIR}/../arch/${MACHINE_ARCH}
|
||||
|
@ -1,49 +1,38 @@
|
||||
# $NetBSD: Makefile,v 1.1 2006/05/15 16:31:37 nathanw Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2006/05/29 19:20:05 nathanw Exp $
|
||||
|
||||
.include "../Makefile.inc"
|
||||
|
||||
.if exists(${.CURDIR}/../arch/${MACHINE_ARCH}/defs.mk)
|
||||
|
||||
TOP= ${NETBSDSRCDIR}/gnu
|
||||
DIST= ${TOP}/dist/gdb6
|
||||
|
||||
.include "${.CURDIR}/../arch/${MACHINE_ARCH}/defs.mk"
|
||||
|
||||
PROG= gdbtui
|
||||
NOMAN= # defined
|
||||
|
||||
SRCS= tui-main.c
|
||||
CPPFLAGS= -I${.CURDIR} \
|
||||
-I${.CURDIR}/../arch/${MACHINE_ARCH} \
|
||||
-I${DIST}/gdb \
|
||||
-I${DIST}/gdb/config \
|
||||
-I${DIST}/include \
|
||||
-I${DIST}/include/opcode \
|
||||
-I${DIST}/bfd \
|
||||
-I${.CURDIR}/../bfd \
|
||||
-I${DIST}/gdb/tui \
|
||||
-I${DIST} \
|
||||
-DHAVE_CONFIG_H \
|
||||
-DLOCALEDIR='"/usr/share/locale"' \
|
||||
-DUSE_INCLUDED_REGEX \
|
||||
-DNETBSD_CORE
|
||||
-I${.CURDIR}/../bfd/arch/${MACHINE_ARCH} \
|
||||
-I${DIST}/bfd \
|
||||
-I${DIST}/include \
|
||||
${GCPPFLAGS:M-D*}
|
||||
|
||||
LDADD= -lcurses -lintl -lm -lkvm
|
||||
DPADD= ${LIBCURSES} ${LIBINTL} ${LIBM} ${LIBKVM}
|
||||
|
||||
.if ${SRCS:Mnbsd-thread.c} != ""
|
||||
LDADD+= -lpthread_dbg
|
||||
.endif
|
||||
|
||||
.endif
|
||||
NOMAN= # defined
|
||||
|
||||
.include "../../Makefile.inc"
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
LIBOPCODESDIR!= cd ${.CURDIR}/../opcodes && ${PRINTOBJDIR}
|
||||
LIBBFDDIR!= cd ${.CURDIR}/../bfd && ${PRINTOBJDIR}
|
||||
|
||||
|
||||
|
||||
LIBOPCODESDIR!= cd ${.CURDIR}/../opcodes && ${PRINTOBJDIR}
|
||||
LIBBFDDIR!= cd ${.CURDIR}/../bfd && ${PRINTOBJDIR}
|
||||
LIBIBERTYDIR!= cd ${.CURDIR}/../libiberty && ${PRINTOBJDIR}
|
||||
LIBGDBDIR!= cd ${.CURDIR}/../libgdb && ${PRINTOBJDIR}
|
||||
LIBGDBDIR!= cd ${.CURDIR}/../libgdb && ${PRINTOBJDIR}
|
||||
|
||||
.if ${USE_LIBEDIT} == yes
|
||||
LIBEDIT=-ledit
|
||||
@ -55,11 +44,15 @@ LIBEDIT= -L${LIBREADLINEDIR} -lreadline
|
||||
LDADD+= -L${LIBGDBDIR} -lgdb
|
||||
DPADD+= ${LIBGDBDIR}/libgdb.a
|
||||
|
||||
# PSIM support for PowerPC.
|
||||
# Simulator support
|
||||
.if ${MACHINE_ARCH} == powerpc || ${MACHINE_ARCH} == powerpcle
|
||||
PSIMOBJ!= cd ${.CURDIR}/../sim/ppc && ${PRINTOBJDIR}
|
||||
LDADD+= -L${PSIMOBJ} -lsim
|
||||
DPADD+= ${PSIMOBJ}/libsim.a
|
||||
SIMOBJ!= cd ${.CURDIR}/../sim/ppc && ${PRINTOBJDIR}
|
||||
LDADD+= -L${SIMOBJ} -lsim
|
||||
DPADD+= ${SIMOBJ}/libsim.a
|
||||
.elif ${MACHINE_ARCH} == mipseb || ${MACHINE_ARCH} == mipsel
|
||||
SIMOBJ!= cd ${.CURDIR}/../sim/mips && ${PRINTOBJDIR}
|
||||
LDADD+= -L${SIMOBJ} -lsim
|
||||
DPADD+= ${SIMOBJ}/libsim.a
|
||||
.endif
|
||||
|
||||
LDADD+= -L${LIBOPCODESDIR} -lopcodes \
|
||||
@ -68,11 +61,18 @@ LDADD+= -L${LIBOPCODESDIR} -lopcodes \
|
||||
-ltermcap \
|
||||
-L${LIBIBERTYDIR} -liberty
|
||||
|
||||
DPADD+= ${LIBOPCODESDIR}/libopcodes.a \
|
||||
DPADD+= ${LIBOPCODESDIR}/libopcodes.a \
|
||||
${LIBBFDDIR}/libbfd.a \
|
||||
${LIBEDIT} \
|
||||
${LIBTERMCAP} \
|
||||
${LIBIBERTYDIR}/libiberty.a
|
||||
|
||||
LDADD+= -lcurses -lintl -lm -lkvm
|
||||
DPADD+= ${LIBCURSES} ${LIBINTL} ${LIBM} ${LIBKVM}
|
||||
|
||||
.if ${SRCS:Mnbsd-thread.c} != ""
|
||||
LDADD+= -lpthread_dbg
|
||||
.endif
|
||||
|
||||
.PATH: ${DIST}/gdb ${DIST}/gdb/mi ${DIST}/gdb/cli ${DIST}/gdb/tui \
|
||||
${DIST}/gdb/signals ${DIST}/gdb/doc ${.CURDIR}/../arch/${MACHINE_ARCH}
|
||||
|
@ -1,50 +1,35 @@
|
||||
# $NetBSD: Makefile,v 1.1 2006/05/15 16:31:37 nathanw Exp $
|
||||
|
||||
MKPRIVATELIB=yes
|
||||
# $NetBSD: Makefile,v 1.2 2006/05/29 19:20:05 nathanw Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
.include "../Makefile.inc"
|
||||
|
||||
.if exists(${.CURDIR}/../arch/${MACHINE_ARCH}/defs.mk)
|
||||
MKPIC=no
|
||||
MKPROFILE=no
|
||||
MKPRIVATELIB= yes
|
||||
LIB= gdb
|
||||
|
||||
TOP= ${NETBSDSRCDIR}/gnu
|
||||
DIST= ${TOP}/dist/gdb6
|
||||
|
||||
.include "${.CURDIR}/../arch/${MACHINE_ARCH}/defs.mk"
|
||||
|
||||
DIST= ${NETBSDSRCDIR}/gnu/dist/gdb6
|
||||
|
||||
|
||||
SRCS= ${G_GDB_OBJS:.o=.c}
|
||||
SRCS= ${G_LIBGDB_OBS:.o=.c}
|
||||
GCPPFLAGS= ${G_INTERNAL_CFLAGS}
|
||||
CPPFLAGS= -I${.CURDIR} \
|
||||
-I${.CURDIR}/../arch/${MACHINE_ARCH} \
|
||||
-I${DIST}/gdb \
|
||||
-I${DIST}/gdb/config \
|
||||
-I${DIST}/include \
|
||||
-I${DIST}/include/opcode \
|
||||
-I${DIST}/bfd \
|
||||
-I${.CURDIR}/../bfd \
|
||||
-I${DIST}/gdb/tui \
|
||||
-I${DIST} \
|
||||
-DHAVE_CONFIG_H \
|
||||
-DLOCALEDIR='"/usr/share/locale"' \
|
||||
-DUSE_INCLUDED_REGEX \
|
||||
-DNETBSD_CORE
|
||||
-I${.CURDIR}/../bfd/arch/${MACHINE_ARCH} \
|
||||
-I${DIST}/bfd \
|
||||
-I${DIST}/include \
|
||||
${GCPPFLAGS:M-D*}
|
||||
|
||||
.if ${USE_TUI} == "yes"
|
||||
SRCS+= ${G_TUI_OBJS:.o=.c}
|
||||
CPPFLAGS+= -DUSE_TUI
|
||||
.endif
|
||||
|
||||
.endif
|
||||
# XXX inf-ptrace.c has some bogus (PTRACE_TYPE_ARG3) casts, but in
|
||||
# code that's never exercised on NetBSD.
|
||||
CPPFLAGS.inf-ptrace.c= -Wno-error
|
||||
|
||||
.include "../../Makefile.inc"
|
||||
.include <bsd.lib.mk>
|
||||
.include <bsd.info.mk>
|
||||
|
||||
|
||||
.PATH: ${DIST}/gdb ${DIST}/gdb/mi ${DIST}/gdb/cli ${DIST}/gdb/tui \
|
||||
${DIST}/gdb/signals ${DIST}/gdb/doc ${.CURDIR}/../arch/${MACHINE_ARCH}
|
||||
|
Loading…
Reference in New Issue
Block a user