2001-03-12 00:01:55 +03:00
|
|
|
# $NetBSD: Makefile,v 1.47 2001/03/11 21:01:55 matt Exp $
|
1997-10-18 22:37:37 +04:00
|
|
|
|
1999-02-11 01:04:51 +03:00
|
|
|
# for OBJECT_FMT
|
1999-02-07 20:35:28 +03:00
|
|
|
.include <bsd.own.mk>
|
1997-10-18 22:37:37 +04:00
|
|
|
|
1999-03-17 03:46:35 +03:00
|
|
|
.if (${OBJECT_FMT} == "ELF") || defined(BOOTSTRAP_ELF)
|
|
|
|
ELF_PLEASE=
|
|
|
|
.endif
|
|
|
|
|
1999-02-11 01:04:51 +03:00
|
|
|
PROG= gdb
|
|
|
|
MAN= gdb.1
|
|
|
|
SRCS= main.c ${COMMON_SRCS} annotate.c inflow.c gnu-regex.c
|
|
|
|
OBJS= init.o
|
|
|
|
DPSRCS= nm.h tm.h
|
1999-02-17 00:21:09 +03:00
|
|
|
CLEANFILES= init.c
|
2001-01-09 11:52:56 +03:00
|
|
|
PARALLEL= yes
|
1999-02-11 01:04:51 +03:00
|
|
|
|
|
|
|
CPPFLAGS+= -I. -I${.CURDIR} -I${DIST}/gdb/config -I${DIST}/gdb \
|
|
|
|
-I${BFDOBJ} -I${DIST}/bfd -I${DIST}/include \
|
2001-01-06 00:17:11 +03:00
|
|
|
-I${DESTDIR}/usr/include/readline \
|
1999-02-11 01:04:51 +03:00
|
|
|
-DHOST_NAME=\"${MACHINE_GNU_ARCH}--netbsd\" \
|
|
|
|
-DTARGET_NAME=\"${MACHINE_GNU_ARCH}--netbsd\"
|
1999-03-17 03:46:35 +03:00
|
|
|
.if defined(ELF_PLEASE)
|
1999-02-11 01:04:51 +03:00
|
|
|
CPPFLAGS+= -DSVR4_SHARED_LIBS
|
1999-02-07 20:35:28 +03:00
|
|
|
.endif
|
|
|
|
|
2000-08-03 02:25:13 +04:00
|
|
|
.if (${MACHINE_ARCH} == "sh3") && (${OBJECT_FMT} != "ELF")
|
2000-08-02 21:46:20 +04:00
|
|
|
CPPFLAGS+= -DNO_SOLIB
|
|
|
|
.endif
|
|
|
|
|
1999-02-11 01:04:51 +03:00
|
|
|
LDADD+= -ledit -lkvm -ltermcap -L${BFDOBJ} -lbfd
|
|
|
|
DPADD+= ${LIBEDIT} ${LIBKVM} ${LIBTERMCAP} ${BFDOBJ}/libbfd_pic.a
|
1997-10-18 22:37:37 +04:00
|
|
|
|
1999-02-11 19:53:39 +03:00
|
|
|
TEXINFO= gdb.info gdbint.info stabs.info
|
|
|
|
INFOFLAGS= -I${DIST}/gdb/doc -I${.CURDIR} -I${DIST}/readline/doc
|
|
|
|
|
1997-10-18 22:37:37 +04:00
|
|
|
# This exists only for easy comparison with the GNU Makefile.
|
1999-09-25 17:13:42 +04:00
|
|
|
COMMON_SRCS= version.c blockframe.c breakpoint.c findvar.c stack.c thread.c \
|
1997-10-18 22:37:37 +04:00
|
|
|
source.c values.c eval.c valops.c valarith.c valprint.c printcmd.c \
|
|
|
|
symtab.c symfile.c symmisc.c infcmd.c infrun.c command.c \
|
1999-02-11 01:04:51 +03:00
|
|
|
expprint.c environ.c gdbtypes.c copying.c ${DEPFILES} \
|
|
|
|
mem-break.c target.c parse.c language.c ${YYSRCS} buildsym.c \
|
1997-10-18 22:37:37 +04:00
|
|
|
exec.c bcache.c objfiles.c minsyms.c maint.c demangle.c \
|
|
|
|
dbxread.c coffread.c elfread.c \
|
1999-02-11 01:04:51 +03:00
|
|
|
dwarfread.c dwarf2read.c mipsread.c stabsread.c corefile.c \
|
|
|
|
c-lang.c ch-exp.c ch-lang.c f-lang.c \
|
|
|
|
jv-lang.c jv-valprint.c jv-typeprint.o m2-lang.c \
|
1997-10-18 22:37:37 +04:00
|
|
|
scm-exp.c scm-lang.c scm-valprint.c complaints.c typeprint.c \
|
|
|
|
c-typeprint.c ch-typeprint.c f-typeprint.c m2-typeprint.c \
|
|
|
|
c-valprint.c cp-valprint.c ch-valprint.c f-valprint.c m2-valprint.c \
|
1999-02-11 01:04:51 +03:00
|
|
|
nlmread.c serial.c mdebugread.c os9kread.c top.c utils.c
|
|
|
|
YYSRCS= c-exp.y f-exp.y jv-exp.y m2-exp.y
|
2000-03-23 23:44:40 +03:00
|
|
|
REMOTE_SRCS= remote.c dcache.c remote-utils.c tracepoint.c remote-ipkdb.c
|
1999-09-25 17:13:42 +04:00
|
|
|
DEPFILES= ${TDEPFILES.${MACHINE_ARCH}} ${XDEPFILES} ${SER_HARDWIRE} \
|
|
|
|
${NATDEPFILES} ${REMOTE_SRCS} ${SIM_SRCS}
|
1999-02-11 01:04:51 +03:00
|
|
|
|
|
|
|
XDEPFILES= ser-tcp.c
|
1999-09-25 17:13:42 +04:00
|
|
|
SER_HARDWIRE= ser-unix.c
|
|
|
|
NATDEPFILES= infptrace.c inftarg.c fork-child.c corelow.c \
|
|
|
|
${NATDEPFILES.${MACHINE_ARCH}}
|
2001-03-12 00:01:55 +03:00
|
|
|
.if (${MACHINE_CPU} != "arm") && (${MACHINE_CPU} != "sh3")
|
1999-02-11 01:04:51 +03:00
|
|
|
NATDEPFILES+= kcore-nbsd.c
|
|
|
|
.endif
|
|
|
|
NATDEPFILES+= solib.c
|
1997-10-18 22:37:37 +04:00
|
|
|
|
1999-02-11 01:04:51 +03:00
|
|
|
NATDEPFILES.alpha= alphanbsd-nat.c
|
|
|
|
TDEPFILES.alpha= alpha-tdep.c
|
1997-10-18 22:37:37 +04:00
|
|
|
|
1999-02-11 01:04:51 +03:00
|
|
|
NATDEPFILES.arm32= armb-nat.c arm-convert.s
|
|
|
|
TDEPFILES.arm32= arm-tdep.c
|
1997-10-18 22:37:37 +04:00
|
|
|
|
1999-02-11 01:04:51 +03:00
|
|
|
NATDEPFILES.i386= i386nbsd-nat.c
|
|
|
|
TDEPFILES.i386= i386-tdep.c i387-tdep.c
|
1997-10-18 22:37:37 +04:00
|
|
|
|
1999-02-11 01:04:51 +03:00
|
|
|
NATDEPFILES.m68k= m68knbsd-nat.c
|
|
|
|
TDEPFILES.m68k= m68k-tdep.c
|
1997-10-18 22:37:37 +04:00
|
|
|
|
1999-02-11 01:04:51 +03:00
|
|
|
NATDEPFILES.mipseb= mipsnbsd-nat.c
|
|
|
|
TDEPFILES.mipseb= mips-tdep.c
|
1997-10-18 22:37:37 +04:00
|
|
|
|
1999-02-11 01:04:51 +03:00
|
|
|
NATDEPFILES.mipsel= mipsnbsd-nat.c
|
|
|
|
TDEPFILES.mipsel= mips-tdep.c
|
1997-10-18 22:37:37 +04:00
|
|
|
|
1999-02-11 01:04:51 +03:00
|
|
|
NATDEPFILES.ns32k= ns32knbsd-nat.c
|
|
|
|
TDEPFILES.ns32k= ns32k-tdep.c
|
1998-03-16 21:30:44 +03:00
|
|
|
|
1999-05-03 14:27:23 +04:00
|
|
|
NATDEPFILES.powerpc= ppcnbsd-nat.c
|
1999-02-11 01:04:51 +03:00
|
|
|
TDEPFILES.powerpc= rs6000-tdep.c
|
|
|
|
|
2001-01-04 13:43:24 +03:00
|
|
|
NATDEPFILES.sh3eb= shnbsd-nat.c
|
|
|
|
TDEPFILES.sh3eb= sh-tdep.c
|
|
|
|
|
|
|
|
NATDEPFILES.sh3el= shnbsd-nat.c
|
|
|
|
TDEPFILES.sh3el= sh-tdep.c
|
1999-11-26 17:39:47 +03:00
|
|
|
|
1999-02-11 01:04:51 +03:00
|
|
|
NATDEPFILES.sparc= sparcnbsd-nat.c
|
|
|
|
TDEPFILES.sparc= sparc-tdep.c
|
|
|
|
|
1999-04-04 23:02:31 +04:00
|
|
|
NATDEPFILES.sparc64= sp64nbsd-nat.c
|
|
|
|
TDEPFILES.sparc64= sparc-tdep.c
|
|
|
|
|
1999-02-11 01:04:51 +03:00
|
|
|
NATDEPFILES.vax= vaxnbsd-nat.c
|
|
|
|
TDEPFILES.vax= vax-tdep.c
|
|
|
|
|
|
|
|
DIST= ${.CURDIR}/../../dist
|
2001-01-09 11:52:56 +03:00
|
|
|
BFDOBJ!= cd ${.CURDIR}/../../lib/libbfd && ${PRINTOBJDIR}
|
1999-02-11 01:04:51 +03:00
|
|
|
|
1999-02-11 19:53:39 +03:00
|
|
|
.PATH: ${DIST}/gdb ${DIST}/gdb/doc
|
1998-03-16 21:30:44 +03:00
|
|
|
|
1999-02-11 19:53:39 +03:00
|
|
|
.include <bsd.info.mk>
|
1997-10-18 22:37:37 +04:00
|
|
|
.include <bsd.prog.mk>
|
|
|
|
|
1999-02-11 01:04:51 +03:00
|
|
|
init.o: ${OBJS:Ninit.o} Makefile
|
|
|
|
@-rm -f init.c
|
1999-09-25 09:27:42 +04:00
|
|
|
NM=${NM} sh ${.CURDIR}/mkinit.sh ${OBJS:Ninit.o} >init.c
|
1997-10-18 22:37:37 +04:00
|
|
|
${COMPILE.c} init.c
|
|
|
|
|
1999-02-11 01:04:51 +03:00
|
|
|
${OBJS}: nm.h tm.h xm.h
|
1997-10-18 22:37:37 +04:00
|
|
|
|
2001-01-04 13:43:24 +03:00
|
|
|
ARCHSUBDIR= ${MACHINE_GNU_ARCH:C/mipse[bl]/mips/:C/sparc64/sparc/:C/sh3e[bl]/sh3/}
|
1999-03-13 13:57:38 +03:00
|
|
|
|
|
|
|
nm.h: ${DIST}/gdb/config/${ARCHSUBDIR}/nm-nbsd.h
|
1999-02-11 01:04:51 +03:00
|
|
|
@-rm -f $@
|
|
|
|
cp $> $@
|
1997-10-18 22:37:37 +04:00
|
|
|
|
1999-03-13 13:57:38 +03:00
|
|
|
tm.h: ${DIST}/gdb/config/${ARCHSUBDIR}/tm-nbsd.h
|
1999-02-11 01:04:51 +03:00
|
|
|
@-rm -f $@
|
|
|
|
cp $> $@
|