head	1.54;
access;
symbols
	perseant-exfatfs-base-20250801:1.54
	perseant-exfatfs-base-20240630:1.54
	cjep_sun2x:1.54.0.44
	cjep_sun2x-base:1.54
	cjep_staticlib_x-base1:1.54
	cjep_staticlib_x:1.54.0.42
	cjep_staticlib_x-base:1.54
	phil-wifi-20200421:1.54
	phil-wifi-20200411:1.54
	phil-wifi-20200406:1.54
	pgoyette-compat-merge-20190127:1.54
	pgoyette-compat-20190127:1.54
	pgoyette-compat-20190118:1.54
	pgoyette-compat-1226:1.54
	pgoyette-compat-1126:1.54
	pgoyette-compat-1020:1.54
	pgoyette-compat-0930:1.54
	pgoyette-compat-0906:1.54
	pgoyette-compat-0728:1.54
	pgoyette-compat-0625:1.54
	pgoyette-compat-0521:1.54
	pgoyette-compat-0502:1.54
	pgoyette-compat-0422:1.54
	pgoyette-compat-0415:1.54
	pgoyette-compat-0407:1.54
	pgoyette-compat-0330:1.54
	pgoyette-compat-0322:1.54
	pgoyette-compat-0315:1.54
	pgoyette-compat:1.54.0.40
	pgoyette-compat-base:1.54
	perseant-stdc-iso10646:1.54.0.38
	perseant-stdc-iso10646-base:1.54
	prg-localcount2-base3:1.54
	prg-localcount2-base2:1.54
	prg-localcount2-base1:1.54
	prg-localcount2:1.54.0.36
	prg-localcount2-base:1.54
	pgoyette-localcount-20170426:1.54
	bouyer-socketcan-base1:1.54
	pgoyette-localcount-20170320:1.54
	bouyer-socketcan:1.54.0.34
	bouyer-socketcan-base:1.54
	pgoyette-localcount-20170107:1.54
	pgoyette-localcount-20161104:1.54
	localcount-20160914:1.54
	pgoyette-localcount-20160806:1.54
	pgoyette-localcount-20160726:1.54
	pgoyette-localcount:1.54.0.32
	pgoyette-localcount-base:1.54
	netbsd-5-2-3-RELEASE:1.54
	netbsd-5-1-5-RELEASE:1.54
	yamt-pagecache-base9:1.54
	yamt-pagecache-tag8:1.54
	tls-earlyentropy:1.54.0.28
	tls-earlyentropy-base:1.54
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.54
	riastradh-drm2-base3:1.54
	netbsd-5-2-2-RELEASE:1.54
	netbsd-5-1-4-RELEASE:1.54
	netbsd-5-2-1-RELEASE:1.54
	netbsd-5-1-3-RELEASE:1.54
	agc-symver:1.54.0.30
	agc-symver-base:1.54
	tls-maxphys-base:1.54
	yamt-pagecache-base8:1.54
	netbsd-5-2:1.54.0.26
	yamt-pagecache-base7:1.54
	netbsd-5-2-RELEASE:1.54
	netbsd-5-2-RC1:1.54
	yamt-pagecache-base6:1.54
	yamt-pagecache-base5:1.54
	yamt-pagecache-base4:1.54
	netbsd-5-1-2-RELEASE:1.54
	netbsd-5-1-1-RELEASE:1.54
	yamt-pagecache-base3:1.54
	yamt-pagecache-base2:1.54
	yamt-pagecache:1.54.0.24
	yamt-pagecache-base:1.54
	bouyer-quota2-nbase:1.54
	bouyer-quota2:1.54.0.22
	bouyer-quota2-base:1.54
	matt-nb5-pq3:1.54.0.20
	matt-nb5-pq3-base:1.54
	netbsd-5-1:1.54.0.18
	netbsd-5-1-RELEASE:1.54
	netbsd-5-1-RC4:1.54
	netbsd-5-1-RC3:1.54
	netbsd-5-1-RC2:1.54
	netbsd-5-1-RC1:1.54
	netbsd-5-0-2-RELEASE:1.54
	netbsd-5-0-1-RELEASE:1.54
	jym-xensuspend-nbase:1.54
	netbsd-5-0:1.54.0.16
	netbsd-5-0-RELEASE:1.54
	netbsd-5-0-RC4:1.54
	netbsd-5-0-RC3:1.54
	netbsd-5-0-RC2:1.54
	jym-xensuspend:1.54.0.14
	jym-xensuspend-base:1.54
	netbsd-5-0-RC1:1.54
	netbsd-5:1.54.0.12
	netbsd-5-base:1.54
	mjf-devfs2:1.54.0.10
	mjf-devfs2-base:1.54
	yamt-pf42-base4:1.54
	yamt-pf42-base3:1.54
	hpcarm-cleanup-nbase:1.54
	yamt-pf42-base2:1.54
	yamt-pf42:1.54.0.8
	yamt-pf42-base:1.54
	keiichi-mipv6:1.54.0.6
	keiichi-mipv6-base:1.54
	cube-autoconf:1.54.0.4
	cube-autoconf-base:1.54
	hpcarm-cleanup:1.54.0.2
	hpcarm-cleanup-base:1.54
	netbsd-1-6-PATCH002-RELEASE:1.51
	netbsd-1-6-PATCH002:1.51
	netbsd-1-6-PATCH002-RC4:1.51
	netbsd-1-6-PATCH002-RC3:1.51
	netbsd-1-6-PATCH002-RC2:1.51
	netbsd-1-6-PATCH002-RC1:1.51
	netbsd-1-6-PATCH001:1.51
	netbsd-1-6-PATCH001-RELEASE:1.51
	netbsd-1-6-PATCH001-RC3:1.51
	netbsd-1-6-PATCH001-RC2:1.51
	netbsd-1-6-PATCH001-RC1:1.51
	nathanw_sa_end:1.51.4.3
	nathanw_sa_before_merge:1.53
	fvdl_fs64_base:1.53
	netbsd-1-6-RELEASE:1.51
	netbsd-1-6-RC3:1.51
	netbsd-1-6-RC2:1.51
	nathanw_sa:1.51.0.4
	nathanw_sa_base:1.52
	netbsd-1-6-RC1:1.51
	netbsd-1-6:1.51.0.2
	netbsd-1-6-base:1.51
	netbsd-1-5-PATCH003:1.39.2.2
	netbsd-1-5-PATCH002:1.39.2.2
	netbsd-1-5-PATCH001:1.39.2.2
	netbsd-1-5-RELEASE:1.39.2.1
	netbsd-1-5-BETA2:1.39.2.1
	netbsd-1-5-BETA:1.39.2.1
	netbsd-1-4-PATCH003:1.30.2.1
	netbsd-1-5-ALPHA2:1.39
	netbsd-1-5:1.39.0.2
	netbsd-1-5-base:1.39
	netbsd-1-4-PATCH002:1.30.2.1
	wrstuden-devbsize-19991221:1.35
	wrstuden-devbsize:1.32.0.2
	wrstuden-devbsize-base:1.35
	comdex-fall-1999:1.34.0.2
	comdex-fall-1999-base:1.34
	netbsd-1-4-PATCH001:1.30
	netbsd-1-4-RELEASE:1.30
	netbsd-1-4:1.30.0.2
	netbsd-1-4-base:1.30
	netbsd-1-3-PATCH003:1.10.2.1
	netbsd-1-3-PATCH003-CANDIDATE2:1.10.2.1
	netbsd-1-3-PATCH003-CANDIDATE1:1.10.2.1
	netbsd-1-3-PATCH003-CANDIDATE0:1.10.2.1
	netbsd-1-3-PATCH002:1.10.2.1
	netbsd-1-3-PATCH001:1.10.2.1
	netbsd-1-3-RELEASE:1.10.2.1
	netbsd-1-3-BETA:1.10.2.1
	netbsd-1-3:1.10.0.2
	netbsd-1-3-base:1.10
	netbsd-1-2-PATCH001:1.7
	netbsd-1-2-RELEASE:1.7
	netbsd-1-2-BETA:1.7
	netbsd-1-2-base:1.7
	netbsd-1-2:1.7.0.6
	netbsd-1-1-PATCH001:1.7
	netbsd-1-1-RELEASE:1.7
	netbsd-1-1:1.7.0.2
	netbsd-1-1-base:1.7
	netbsd-1-0-PATCH06:1.6
	netbsd-1-0-PATCH05:1.6
	netbsd-1-0-PATCH04:1.6
	netbsd-1-0-PATCH03:1.6
	netbsd-1-0-PATCH02:1.6
	netbsd-1-0-PATCH1:1.6
	netbsd-1-0-PATCH0:1.6
	netbsd-1-0-RELEASE:1.6
	netbsd-1-0:1.6.0.2
	netbsd-1-0-base:1.6
	netbsd-0-9-RELEASE:1.1.1.1
	netbsd-0-9-BETA:1.1.1.1
	netbsd-0-9-ALPHA2:1.1.1.1
	netbsd-0-9-ALPHA:1.1.1.1
	netbsd-0-9:1.1.1.1.0.2
	netbsd-0-9-base:1.1.1.1
	netbsd-0-8:1.1.1.1
	netbsd-alpha-1:1.1.1.1
	patchkit-0-2-2:1.1.1.1
	WFJ-386bsd-01:1.1.1.1
	WFJ-920714:1.1.1;
locks; strict;
comment	@# @;


1.54
date	2003.11.27.10.52.03;	author mrg;	state dead;
branches;
next	1.53;

1.53
date	2002.09.22.12.58.23;	author wiz;	state Exp;
branches;
next	1.52;

1.52
date	2002.09.16.16.24.22;	author thorpej;	state Exp;
branches;
next	1.51;

1.51
date	2001.12.19.23.54.29;	author tv;	state Exp;
branches
	1.51.4.1;
next	1.50;

1.50
date	2001.08.06.23.28.53;	author tv;	state Exp;
branches;
next	1.49;

1.49
date	2001.08.06.19.36.58;	author tv;	state Exp;
branches;
next	1.48;

1.48
date	2001.04.10.11.10.09;	author mrg;	state Exp;
branches;
next	1.47;

1.47
date	2001.03.11.21.01.55;	author matt;	state Exp;
branches;
next	1.46;

1.46
date	2001.02.23.23.16.44;	author matt;	state Exp;
branches;
next	1.45;

1.45
date	2001.01.09.08.52.57;	author enami;	state Exp;
branches;
next	1.44;

1.44
date	2001.01.05.21.17.11;	author jdolecek;	state Exp;
branches;
next	1.43;

1.43
date	2001.01.04.10.43.25;	author itojun;	state Exp;
branches;
next	1.42;

1.42
date	2000.08.02.22.25.13;	author pooka;	state Exp;
branches;
next	1.41;

1.41
date	2000.08.02.17.46.20;	author msaitoh;	state Exp;
branches;
next	1.40;

1.40
date	2000.07.08.19.18.19;	author eeh;	state Exp;
branches;
next	1.39;

1.39
date	2000.04.14.17.58.40;	author nathanw;	state Exp;
branches
	1.39.2.1;
next	1.38;

1.38
date	2000.04.14.15.49.07;	author msaitoh;	state Exp;
branches;
next	1.37;

1.37
date	2000.04.13.16.08.20;	author msaitoh;	state Exp;
branches;
next	1.36;

1.36
date	2000.03.23.20.44.40;	author ws;	state Exp;
branches;
next	1.35;

1.35
date	99.11.26.14.39.47;	author msaitoh;	state Exp;
branches;
next	1.34;

1.34
date	99.09.25.13.13.42;	author enami;	state Exp;
branches;
next	1.33;

1.33
date	99.09.25.05.27.42;	author enami;	state Exp;
branches;
next	1.32;

1.32
date	99.05.03.10.27.23;	author tsubai;	state Exp;
branches
	1.32.2.1;
next	1.31;

1.31
date	99.04.04.19.02.31;	author eeh;	state Exp;
branches;
next	1.30;

1.30
date	99.03.17.00.46.35;	author thorpej;	state Exp;
branches
	1.30.2.1;
next	1.29;

1.29
date	99.03.13.10.57.38;	author drochner;	state Exp;
branches;
next	1.28;

1.28
date	99.02.16.21.21.09;	author tv;	state Exp;
branches;
next	1.27;

1.27
date	99.02.16.20.19.04;	author tv;	state Exp;
branches;
next	1.26;

1.26
date	99.02.13.19.31.45;	author christos;	state Exp;
branches;
next	1.25;

1.25
date	99.02.13.02.54.25;	author lukem;	state Exp;
branches;
next	1.24;

1.24
date	99.02.11.16.53.39;	author tv;	state Exp;
branches;
next	1.23;

1.23
date	99.02.10.22.04.51;	author tv;	state Exp;
branches;
next	1.22;

1.22
date	99.02.10.16.15.21;	author tron;	state Exp;
branches;
next	1.21;

1.21
date	99.02.07.17.35.28;	author christos;	state Exp;
branches;
next	1.20;

1.20
date	98.09.06.15.07.01;	author tv;	state Exp;
branches;
next	1.19;

1.19
date	98.08.22.20.43.56;	author tv;	state Exp;
branches;
next	1.18;

1.18
date	98.07.27.02.35.13;	author tv;	state Exp;
branches;
next	1.17;

1.17
date	98.07.25.11.19.24;	author mycroft;	state Exp;
branches;
next	1.16;

1.16
date	98.05.22.17.18.02;	author tv;	state Exp;
branches;
next	1.15;

1.15
date	98.05.07.00.31.51;	author mycroft;	state Exp;
branches;
next	1.14;

1.14
date	98.04.09.00.32.35;	author tv;	state Exp;
branches;
next	1.13;

1.13
date	98.03.16.18.30.45;	author cgd;	state Exp;
branches;
next	1.12;

1.12
date	98.02.14.20.58.23;	author mycroft;	state Exp;
branches;
next	1.11;

1.11
date	97.10.25.10.11.18;	author lukem;	state Exp;
branches;
next	1.10;

1.10
date	97.10.18.18.37.37;	author gwr;	state Exp;
branches
	1.10.2.1;
next	1.9;

1.9
date	97.06.25.07.22.19;	author mikel;	state Exp;
branches;
next	1.8;

1.8
date	97.06.23.13.25.50;	author mrg;	state Exp;
branches;
next	1.7;

1.7
date	95.04.23.07.58.40;	author cgd;	state Exp;
branches;
next	1.6;

1.6
date	94.01.28.12.36.46;	author pk;	state Exp;
branches;
next	1.5;

1.5
date	93.12.05.00.58.46;	author cgd;	state Exp;
branches;
next	1.4;

1.4
date	93.10.07.07.24.47;	author cgd;	state Exp;
branches;
next	1.3;

1.3
date	93.08.01.05.42.13;	author mycroft;	state Exp;
branches;
next	1.2;

1.2
date	93.07.30.03.13.07;	author mycroft;	state Exp;
branches;
next	1.1;

1.1
date	93.03.21.09.45.37;	author cgd;	state Exp;
branches
	1.1.1.1;
next	;

1.51.4.1
date	2001.12.19.23.54.29;	author thorpej;	state dead;
branches;
next	1.51.4.2;

1.51.4.2
date	2002.09.19.21.18.42;	author thorpej;	state Exp;
branches;
next	1.51.4.3;

1.51.4.3
date	2002.11.22.20.19.46;	author nathanw;	state Exp;
branches;
next	;

1.39.2.1
date	2000.08.16.22.54.54;	author msaitoh;	state Exp;
branches;
next	1.39.2.2;

1.39.2.2
date	2001.04.22.17.45.48;	author he;	state Exp;
branches;
next	;

1.32.2.1
date	99.12.27.18.29.19;	author wrstuden;	state Exp;
branches;
next	;

1.30.2.1
date	2000.02.29.23.40.02;	author he;	state Exp;
branches;
next	;

1.10.2.1
date	97.11.08.06.53.22;	author lukem;	state Exp;
branches;
next	;

1.1.1.1
date	93.03.21.09.45.37;	author cgd;	state Exp;
branches;
next	;


desc
@@


1.54
log
@gdb 5.0 is gone.
@
text
@#	$NetBSD: Makefile,v 1.53 2002/09/22 12:58:23 wiz Exp $

SUBDIR=		gdb # gdbreplay gdbserver

.include <bsd.subdir.mk>
@


1.53
log
@Now that the old toolchain is gone, rename gdb.new to gdb, as requested
in a comment in gdb.new's Makefile. Remove that comment.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.52 2002/09/16 16:24:22 thorpej Exp $
@


1.52
log
@Delete the egcs/binutils 2.9 toolchain.  Remove USE_NEW_TOOLCHAIN
conditionals.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.51 2001/12/19 23:54:29 tv Exp $
d3 1
a3 1
SUBDIR=		gdb.new # gdbreplay gdbserver
@


1.51
log
@* Add protoize and unprotoize.  (Closes PR 6894.)

* Regen files with proper OS names and version numbers.

* Clean up toolchain2netbsd somewhat, to get it ready to be cross-host
  compatible (more work to be done here, but it's getting closer).

* Add framework for gdbreplay and gdbserver, but hold off on enabling these
  by default until low-nbsd.c is verified to work everywhere.
@
text
@d1 1
a1 5
#	$NetBSD: Makefile,v 1.50 2001/08/06 23:28:53 tv Exp $

.include <bsd.own.mk>

.if defined(USE_NEW_TOOLCHAIN)
a5 136

.else
#
# XXX - BEGIN - Old toolchain build goop - delete when everything migrated - XXX
#
.if (${OBJECT_FMT} == "ELF") || defined(BOOTSTRAP_ELF)
ELF_PLEASE=
.endif

MAN=		gdb.1
.if (${MACHINE_ARCH} != "sparc64")
PROG=		gdb
SRCS=		main.c ${COMMON_SRCS} annotate.c inflow.c gnu-regex.c
OBJS=		init.o
DPSRCS=		nm.h tm.h
CLEANFILES=	init.c
PARALLEL=	yes

CPPFLAGS+=	-I. -I${.CURDIR} -I${DIST}/gdb/config -I${DIST}/gdb \
		-I${BFDOBJ} -I${DIST}/bfd -I${DIST}/include \
		-I${DESTDIR}/usr/include/readline \
		-DHOST_NAME=\"${MACHINE_GNU_ARCH}--netbsd\" \
		-DTARGET_NAME=\"${MACHINE_GNU_ARCH}--netbsd\"
.if defined(ELF_PLEASE)
CPPFLAGS+=	-DSVR4_SHARED_LIBS
.endif

.if (${MACHINE_ARCH} == "sh3") && (${OBJECT_FMT} != "ELF")
CPPFLAGS+=	-DNO_SOLIB
.endif

LDADD+=		-ledit -lkvm -ltermcap -L${BFDOBJ} -lbfd
DPADD+=		${LIBEDIT} ${LIBKVM} ${LIBTERMCAP} ${BFDOBJ}/libbfd_pic.a

TEXINFO=	gdb.info gdbint.info stabs.info
INFOFLAGS=	-I${DIST}/gdb/doc -I${.CURDIR} -I${DIST}/readline/doc

# This exists only for easy comparison with the GNU Makefile.
COMMON_SRCS= version.c blockframe.c breakpoint.c findvar.c stack.c thread.c \
	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 \
	expprint.c environ.c gdbtypes.c copying.c ${DEPFILES} \
	mem-break.c target.c parse.c language.c ${YYSRCS} buildsym.c \
	exec.c bcache.c objfiles.c minsyms.c maint.c demangle.c \
	dbxread.c coffread.c elfread.c \
	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 \
	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 \
	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
REMOTE_SRCS= remote.c dcache.c remote-utils.c tracepoint.c remote-ipkdb.c
DEPFILES= ${TDEPFILES.${MACHINE_ARCH}} ${XDEPFILES} ${SER_HARDWIRE} \
	${NATDEPFILES} ${REMOTE_SRCS} ${SIM_SRCS}

XDEPFILES= ser-tcp.c
SER_HARDWIRE= ser-unix.c
NATDEPFILES= infptrace.c inftarg.c fork-child.c corelow.c \
	${NATDEPFILES.${MACHINE_ARCH}}
.if (${MACHINE_CPU} != "arm") && (${MACHINE_CPU} != "sh3")
NATDEPFILES+= kcore-nbsd.c
.endif
NATDEPFILES+= solib.c

NATDEPFILES.alpha=	alphanbsd-nat.c
TDEPFILES.alpha=	alpha-tdep.c

NATDEPFILES.arm32=	armb-nat.c arm-convert.s
TDEPFILES.arm32=	arm-tdep.c

NATDEPFILES.i386=	i386nbsd-nat.c
TDEPFILES.i386=		i386-tdep.c i387-tdep.c

NATDEPFILES.m68k=	m68knbsd-nat.c
TDEPFILES.m68k=		m68k-tdep.c

NATDEPFILES.mipseb=	mipsnbsd-nat.c
TDEPFILES.mipseb=	mips-tdep.c

NATDEPFILES.mipsel=	mipsnbsd-nat.c
TDEPFILES.mipsel=	mips-tdep.c

NATDEPFILES.ns32k=	ns32knbsd-nat.c
TDEPFILES.ns32k=	ns32k-tdep.c

NATDEPFILES.powerpc=	ppcnbsd-nat.c
TDEPFILES.powerpc=	rs6000-tdep.c

NATDEPFILES.sh3eb=	shnbsd-nat.c
TDEPFILES.sh3eb=	sh-tdep.c

NATDEPFILES.sh3el=	shnbsd-nat.c
TDEPFILES.sh3el=	sh-tdep.c

NATDEPFILES.sparc=	sparcnbsd-nat.c
TDEPFILES.sparc=	sparc-tdep.c

NATDEPFILES.sparc64=	sp64nbsd-nat.c
TDEPFILES.sparc64=	sparc-tdep.c

NATDEPFILES.vax=	vaxnbsd-nat.c
TDEPFILES.vax=		vax-tdep.c

BFDOBJ!=	cd ${.CURDIR}/../../lib/libbfd && ${PRINTOBJDIR}
.endif
DIST=		${.CURDIR}/../../dist

.PATH: ${DIST}/gdb ${DIST}/gdb/doc

.include <bsd.info.mk>
.include <bsd.prog.mk>

.if (${MACHINE_ARCH} != "sparc64")
init.o: ${OBJS:Ninit.o} Makefile
	@@-rm -f init.c
	NM=${NM} sh ${.CURDIR}/mkinit.sh ${OBJS:Ninit.o} >init.c
	${COMPILE.c} init.c

${OBJS}: nm.h tm.h xm.h

ARCHSUBDIR= ${MACHINE_GNU_ARCH:C/mipse[bl]/mips/:C/sparc64/sparc/:C/sh3e[bl]/sh3/}

nm.h: ${DIST}/gdb/config/${ARCHSUBDIR}/nm-nbsd.h
	@@-rm -f $@@
	cp $> $@@

tm.h: ${DIST}/gdb/config/${ARCHSUBDIR}/tm-nbsd.h
	@@-rm -f $@@
	cp $> $@@
.endif
#
# XXX - END - Old toolchain build goop - delete when everything migrated - XXX
#
.endif
@


1.51.4.1
log
@file Makefile was added on branch nathanw_sa on 2002-09-19 21:18:42 +0000
@
text
@d1 145
@


1.51.4.2
log
@Sync with HEAD.
@
text
@a0 5
#	$NetBSD: Makefile,v 1.51.4.1 2002/09/19 21:18:42 thorpej Exp $

SUBDIR=		gdb.new # gdbreplay gdbserver

.include <bsd.subdir.mk>
@


1.51.4.3
log
@Catch up to -current (use gdb subdir, not gdb.new).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.51.4.2 2002/11/22 20:19:46 nathanw Exp $
d3 1
a3 1
SUBDIR=		gdb # gdbreplay gdbserver
@


1.50
log
@Add new toolchain gdb build structure, in new subdir to go along with
gdbserver and gdbreplay in the future.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.49 2001/08/06 19:36:58 tv Exp $
d7 1
a7 1
SUBDIR=		gdb.new
@


1.49
log
@Turn this off on USE_NEW_TOOLCHAIN temporarily.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.48 2001/04/10 11:10:09 mrg Exp $
a2 1
# for OBJECT_FMT
d5 10
a14 1
.if !defined(USE_NEW_TOOLCHAIN)
d142 3
a144 2
.else
.include <bsd.prog.mk>
@


1.48
log
@don't build on sparc64.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.47 2001/03/11 21:01:55 matt Exp $
d6 1
d133 3
@


1.47
log
@Use MACHINE_CPU instead of MACHINE_ARCH.  Ony disable gdb for arm & sh3
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.46 2001/02/23 23:16:44 matt Exp $
d10 2
a12 1
MAN=		gdb.1
d106 2
a108 1
BFDOBJ!=	cd ${.CURDIR}/../../lib/libbfd && ${PRINTOBJDIR}
d115 1
d132 1
@


1.46
log
@Enable kcore-nbsd.c for powerpc.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.45 2001/01/09 08:52:57 enami Exp $
d61 1
a61 2
.if (${MACHINE_ARCH} != "arm32") \
	&& (${MACHINE_ARCH} != "sh3eb") && (${MACHINE_ARCH} != "sh3el")
@


1.45
log
@- Use PRINTOBJDIR and .WAIT where appropriate.
- Define PARALLEL in gdb/Makefile since multiple yacc might run.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.44 2001/01/05 21:17:11 jdolecek Exp $
d61 1
a61 1
.if (${MACHINE_ARCH} != "arm32") && (${MACHINE_ARCH} != "powerpc") \
@


1.44
log
@adapt CPPFLAGS so that readline.h is properly found after it's move
to /usr/include/readline/
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.43 2001/01/04 10:43:25 itojun Exp $
d16 1
d107 1
a107 1
BFDOBJ!=	cd ${.CURDIR}/../../lib/libbfd && ${MAKE} -s print-objdir
@


1.43
log
@sh3 split
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.42 2000/08/02 22:25:13 pooka Exp $
d19 1
@


1.42
log
@Add missing $ from {MACHINE_ARCH}
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.41 2000/08/02 17:46:20 msaitoh Exp $
d60 1
a60 1
	&& (${MACHINE_ARCH} != "sh3")
d89 5
a93 2
NATDEPFILES.sh3=	shnbsd-nat.c
TDEPFILES.sh3=		sh-tdep.c
d119 1
a119 1
ARCHSUBDIR= ${MACHINE_GNU_ARCH:C/mipse[bl]/mips/:C/sparc64/sparc/}
@


1.41
log
@don't include solib.h if the system is sh3&&(!ELF)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.40 2000/07/08 19:18:19 eeh Exp $
d25 1
a25 1
.if ({MACHINE_ARCH} == "sh3") && (${OBJECT_FMT} != "ELF")
@


1.40
log
@solib.o is required for linking even on MKPIC="no".
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.39 2000/04/14 17:58:40 nathanw Exp $
d23 4
@


1.39
log
@Just one backslash at the end of a line, please.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.38 2000/04/14 15:49:07 msaitoh Exp $
a58 1
.if ${MKPIC} != "no"
a59 1
.endif
@


1.39.2.1
log
@Pullup revision 1.40-1.42 (approved by thorpej):

	don't include solib.h if the system is sh3&&(!ELF)
	because the COFF based NetBSD/sh3 doesn't support
	shared library.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.42 2000/08/02 22:25:13 pooka Exp $
a24 4
.if (${MACHINE_ARCH} == "sh3") && (${OBJECT_FMT} != "ELF")
CPPFLAGS+=	-DNO_SOLIB
.endif

d59 1
d61 1
@


1.39.2.2
log
@Pull up revision 1.48 (via patch, requested by mrg):
  Don't build these (binutils 2.9.1) on sparc64.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.39.2.1 2000/08/16 22:54:54 msaitoh Exp $
d10 1
a11 2
.if (${MACHINE_ARCH} != "sparc64")
PROG=		gdb
d101 1
a102 2
.endif
DIST=		${.CURDIR}/../../dist
a108 1
.if (${MACHINE_ARCH} != "sparc64")
a124 1
.endif
@


1.38
log
@Don't compile kcore-nbsd.c when MACHINE_ARCH==sh3
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.37 2000/04/13 16:08:20 msaitoh Exp $
d55 1
a55 1
.if (${MACHINE_ARCH} != "arm32") && (${MACHINE_ARCH} != "powerpc") \\
@


1.37
log
@gdb for sh3 (broken)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.36 2000/03/23 20:44:40 ws Exp $
d55 2
a56 1
.if (${MACHINE_ARCH} != "arm32") && (${MACHINE_ARCH} != "powerpc")
@


1.36
log
@Add IPKDB support to GDB.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.35 1999/11/26 14:39:47 msaitoh Exp $
d86 1
a86 1
#NATDEPFILES.sh3=	sh-nat.c
@


1.35
log
@add TDEPFILES.sh3
TODO: add NATDEPFILES.sh3
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.34 1999/09/25 13:13:42 enami Exp $
d47 1
a47 1
REMOTE_SRCS= remote.c dcache.c remote-utils.c tracepoint.c
@


1.34
log
@Cosmetic changes:
- fold long lines.
- remove white space between make variable and assignment operator.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.33 1999/09/25 05:27:42 enami Exp $
d85 3
@


1.33
log
@Pass down the value of NM to mkinit.sh as environment variable.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.32 1999/05/03 10:27:23 tsubai Exp $
d32 1
a32 1
COMMON_SRCS = version.c blockframe.c breakpoint.c findvar.c stack.c thread.c \
d47 3
a49 3
REMOTE_SRCS = remote.c dcache.c remote-utils.c tracepoint.c
DEPFILES = ${TDEPFILES.${MACHINE_ARCH}} ${XDEPFILES} ${SER_HARDWIRE} ${NATDEPFILES} \
	   ${REMOTE_SRCS} ${SIM_SRCS}
d52 3
a54 2
SER_HARDWIRE = ser-unix.c
NATDEPFILES= infptrace.c inftarg.c fork-child.c corelow.c ${NATDEPFILES.${MACHINE_ARCH}}
@


1.32
log
@Support NetBSD/powerpc.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.31 1999/04/04 19:02:31 eeh Exp $
d104 1
a104 1
	sh ${.CURDIR}/mkinit.sh ${OBJS:Ninit.o} >init.c
@


1.32.2.1
log
@Pull up to last week's -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.35 1999/11/26 14:39:47 msaitoh Exp $
d32 1
a32 1
COMMON_SRCS= version.c blockframe.c breakpoint.c findvar.c stack.c thread.c \
d47 3
a49 3
REMOTE_SRCS= remote.c dcache.c remote-utils.c tracepoint.c
DEPFILES= ${TDEPFILES.${MACHINE_ARCH}} ${XDEPFILES} ${SER_HARDWIRE} \
	${NATDEPFILES} ${REMOTE_SRCS} ${SIM_SRCS}
d52 2
a53 3
SER_HARDWIRE= ser-unix.c
NATDEPFILES= infptrace.c inftarg.c fork-child.c corelow.c \
	${NATDEPFILES.${MACHINE_ARCH}}
a84 3
#NATDEPFILES.sh3=	sh-nat.c
TDEPFILES.sh3=		sh-tdep.c

d104 1
a104 1
	NM=${NM} sh ${.CURDIR}/mkinit.sh ${OBJS:Ninit.o} >init.c
@


1.31
log
@Make gdb compile on sparc64.  (Actually work correctly is another thing....)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.30 1999/03/17 00:46:35 thorpej Exp $
d82 1
a82 1
NATDEPFILES.powerpc=	rs6000-nat.c
@


1.30
log
@Make it a tad bit easier to bootstrap an a.out system to ELF.  Introduce
a BOOTSTRAP_ELF Makefile variable that, when set (e.g. in the environment),
builds a targeted-to-ELF toolchain without requiring OBJECT_FMT to be set
to "ELF" (which affects how e.g. libraries are built).

This basically means you don't need fake crtbegin.o and crtend.o files to
be present in /usr/lib while bootstrapping the toolchain.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.29 1999/03/13 10:57:38 drochner Exp $
d88 3
d109 1
a109 1
ARCHSUBDIR= ${MACHINE_GNU_ARCH:C/mipse[bl]/mips/}
@


1.30.2.1
log
@Apply patch (requested by toddpw):
  Work around problems with gcc optimization on vax.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.30 1999/03/17 00:46:35 thorpej Exp $
a114 7

# Nasty hack to avoid internal gcc errors for 1.4.1
#
.if ${MACHINE} == "vax"
infrun.o:
	 ${CC} ${CPPFLAGS} -c ${.IMPSRC}
.endif
@


1.29
log
@one more mipse[bl]->mips substitution, from Jonathan Stone
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28 1999/02/16 21:21:09 tv Exp $
d6 4
d21 1
a21 1
.if (${OBJECT_FMT} == "ELF")
@


1.28
log
@Remove .texi's from CLEANFILES.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.27 1999/02/16 20:19:04 tv Exp $
d102 3
a104 1
nm.h: ${DIST}/gdb/config/${MACHINE_GNU_ARCH}/nm-nbsd.h
d108 1
a108 1
tm.h: ${DIST}/gdb/config/${MACHINE_GNU_ARCH}/tm-nbsd.h
@


1.27
log
@Add files not committed during update.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 1999/02/13 19:31:45 christos Exp $
d11 1
a11 1
CLEANFILES=	init.c GDBvn.texi gdb-cfg.texi
@


1.26
log
@Create necessary files for info build.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 1999/02/13 02:54:25 lukem Exp $
a108 9

gdb.info: gdb-cfg.texi GDBvn.texi

gdb-cfg.texi: all-cfg.texi
	@@-rm -f ${.TARGET}
	ln -s ${.ALLSRC} ${.TARGET}

GDBvn.texi:
	echo 4.17 > ${.TARGET}
@


1.25
log
@convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 1999/02/11 16:53:39 tv Exp $
d11 1
a11 1
CLEANFILES=	init.c
d109 9
@


1.24
log
@Add Texinfo doc.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 1999/02/10 22:04:51 tv Exp $
d53 1
a53 1
.if !defined(NOPIC)
@


1.23
log
@Update build to 4.17.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 1999/02/10 16:15:21 tron Exp $
d24 3
d90 1
a90 1
.PATH: ${DIST}/gdb
d92 1
@


1.22
log
@BFD library is in "src/gnu/lib/libbfd" now.
@
text
@d1 1
a1 29
# $NetBSD: Makefile,v 1.21 1999/02/07 17:35:28 christos Exp $

TOP=	$(.CURDIR)/../..
dist=	$(TOP)/dist
srcdir= $(dist)/gdb

.PATH:	$(srcdir)

.if	(${MACHINE_ARCH} != "powerpc") && (${MACHINE_ARCH} != "mipseb")

PROG=	gdb

BFDOBJ!=cd ${TOP}/lib/libbfd; \
        printf "xxx: .MAKE\n\t@@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-

# Note: nm.h, tm.h are in $(.OBJDIR),
# and config.h, xm.h are in $(.CURDIR)
INCLS+= -I$(.OBJDIR) -I$(.CURDIR)

# GDB_CFLAGS
INCLS+= -I$(srcdir) -I$(srcdir)/config

# READLINE_CFLAGS
INCLS+= -I$(dist)/readline

# BFD_CFLAGS: Make sure we get the installed bfd.h
INCLS+= -I${BFDOBJ}
INCLS+= -I$(dist)/bfd
INCLS+= -I$(dist)/include
d3 1
a4 3
# misc. -DHAVE_TERMIOS
# KERNEL_DEBUG no longer used.  See ADDITIONAL_OPTIONS*
DEFS= -DNO_MMALLOC
d6 13
a18 2
.if ${OBJECT_FMT} == "ELF"
DEFS+= -DSVR4_SHARED_LIBS
d21 2
a22 13
CPPFLAGS+= $(INCLS) $(DEFS)

.include "_${MACHINE_ARCH:S/^mips$/mipsel/}.mk"

# Any NetBSD: (i386 m68k ns32k sparc vax)
NDEP_CMN?= infptrace.c inftarg.c fork-child.c corelow.c kcore-nbsd.c
XDEP_FILES= ser-tcp.c ser-unix.c
REMOTE_SRCS = remote.c dcache.c remote-utils.c

DEPFILES = $(TDEP_FILES) $(XDEP_FILES) \
 $(NDEP_CMN) $(NDEP_FILES) $(REMOTE_SRCS)

YYSRCS= c-exp.y f-exp.y m2-exp.y
d28 2
a29 2
	expprint.c environ.c gdbtypes.c copying.c $(DEPFILES) \
	mem-break.c target.c parse.c language.c $(YYSRCS) buildsym.c \
d32 3
a34 2
	dwarfread.c mipsread.c stabsread.c corefile.c \
	c-lang.c ch-exp.c ch-lang.c f-lang.c m2-lang.c \
d38 15
a52 1
	nlmread.c serial.c mdebugread.c os9kread.c top.c utils.c callback.c
d54 2
a55 2
SRCS=	main.c $(COMMON_SRCS) annotate.c inflow.c gnu-regex.c
OBJS=	init.o
d57 2
a58 2
LDADD+= -ledit
DPADD+= $(LIBEDIT)
d60 2
a61 2
LDADD+= -L${BFDOBJ} -lbfd
DPADD+= ${BFDOBJ}/libbfd.a
d63 2
a64 2
LDADD+= -lkvm
DPADD+= $(LIBKVM)
d66 2
a67 2
LDADD+= -ltermcap
DPADD+= $(LIBTERMCAP)
d69 2
a70 1
DPSRCS+= nm.h tm.h
d72 14
a85 1
.endif
d87 1
a87 1
MAN=	gdb.1
d91 3
a93 7
# Note: this rule does something similar to the gcc "collect" program,
# by scanning all the objects for initialization functions, collecting
# them all into the generated init.c file, which is called by main.
CLEANFILES+= init.c
init.o : $(OBJS:S/init.o//)
	-rm -f init.c
	sh $(.CURDIR)/mkinit.sh $(OBJS:S/init.o//) > init.c
d96 1
a96 2
# Need these headers before any objects.
$(OBJS) : nm.h tm.h xm.h
d98 7
a104 13
nm.h : $(srcdir)/$(NM_FILE)
	-rm -f $@@
	cp -p $(srcdir)/$(NM_FILE) $@@

tm.h : $(srcdir)/$(TM_FILE)
	-rm -f $@@
	cp -p $(srcdir)/$(TM_FILE) $@@

version.o : version.c
	$(CC) $(CFLAGS) $(CPPFLAGS) \
	  -DHOST_NAME=\"${MACHINE_GNU_ARCH}--netbsd\" \
	  -DTARGET_NAME=\"${MACHINE_GNU_ARCH}--netbsd\" \
	  -c $(.IMPSRC)
@


1.21
log
@Add -DSVR4_SHARED_LIBS if elf.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 1998/09/06 15:07:01 tv Exp $
d13 1
a13 1
BFDOBJ!=cd ${TOP}/lib/bfd; \
@


1.20
log
@Stopgap fix for mips until this make procedure is overhauled.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 1998/08/22 20:43:56 tv Exp $
d31 1
d35 4
@


1.19
log
@Fix target naming.  Needs more cleanup.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 1998/07/27 02:35:13 tv Exp $
d37 1
a37 1
.include "_${MACHINE_ARCH}.mk"
@


1.18
log
@Change mips to mipsel, and disable mipseb until a suitable _mipseb.mk
exists with the proper defines to default to big-endian.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 1998/07/25 11:19:24 mycroft Exp $
d13 2
a14 5
# Override this to build a cross-debugger.
TARGET_ARCH?=$(MACHINE_ARCH:S/^mips$/mipsel/)

# Debugging?
# CPPFLAGS=-g
d27 1
a27 1
INCLS+= -I$(TOP)/lib/bfd
d37 1
a37 1
.include "_$(TARGET_ARCH).mk"
d70 2
a71 2
LDADD+= -lbfd
DPADD+= $(LIBBFD)
d109 2
a110 2
	  -DHOST_NAME=\"${MACHINE_GNU_ARCH}-netbsd\" \
	  -DTARGET_NAME=\"${GNU_ARCH.${TARGET_ARCH}}-netbsd\" \
@


1.17
log
@Use the readline emulation in libedit.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 1998/05/22 17:18:02 tv Exp $
d9 1
a9 1
.if	(${MACHINE_ARCH} != "powerpc")
d14 1
a14 1
TARGET_ARCH?=$(MACHINE_ARCH)
@


1.16
log
@Integrate NetBSD arm32 diffs for gdb.  Now compiles and works `out of the
box'.  Use new GNU_ARCH remapper.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 1998/05/07 00:31:51 mycroft Exp $
a18 4
# Find out where libreadline.a lives.
LIBREADLINE!=cd ${TOP}/lib/readline; \
	printf "xxx: .MAKE\n\t@@echo \$${.OBJDIR}/libreadline.a\n" | ${MAKE} -s -f-

d70 2
a71 2
LDADD+= $(LIBREADLINE)
DPADD+= $(LIBREADLINE)
@


1.15
log
@This hasn't been fully ported to the PowerPC yet.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 1998/04/09 00:32:35 tv Exp $
d9 1
a9 1
.if	(${MACHINE_ARCH} != "arm32") && (${MACHINE_ARCH} != "powerpc")
d88 1
a88 1
.endif					# XXX arm32 doesn't use in-tree gdb yet
d116 2
a117 2
	  -DHOST_NAME=\"$(MACHINE_ARCH)-netbsd\" \
	  -DTARGET_NAME=\"$(TARGET_ARCH)-netbsd\" \
@


1.14
log
@.y.c <sys.mk> rule fixes.  Don't create a y.tab.h file unless asked for,
and use smarter creation of the header file.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 1998/03/16 18:30:45 cgd Exp $
d9 1
a9 1
.if	(${MACHINE_ARCH} != "arm32")	# XXX arm32 doesn't use in-tree gdb yet
@


1.13
log
@thise gdb doesn't build on the arm32, so don't build it or its libraries.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 1998/02/14 20:58:23 mycroft Exp $
d54 1
a54 1
YYSRCS= c-exp.tab.c f-exp.tab.c m2-exp.tab.c
a118 3

# YACC rules for YYSRCS?  Our yacc did not work for me, so
# this makefile uses the FSF-provided YYSRCS for now.
@


1.12
log
@Do the OBJDIR hackery just like everything else does it.
Fixes several bugs.
@
text
@d1 1
a1 3
# $NetBSD: Makefile,v 1.11 1997/10/25 10:11:18 lukem Exp $

PROG=	gdb
d9 4
d87 4
@


1.11
log
@use CPPFLAGS instead of CFLAGS
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 1997/10/18 18:37:37 gwr Exp $
d18 2
a19 3
RL_CURDIR=$(TOP)/lib/readline
RL_OBJDIR!=cd $(RL_CURDIR); $(MAKE) echo_objdir
LIBREADLINE=$(RL_OBJDIR)/libreadline.a
@


1.10
log
@... and in with the new!  (other files added via repository copy)
@
text
@d1 1
a1 1
# $NetBSD$
d15 1
a15 1
# CFLAGS=-g
d41 1
a41 1
CFLAGS+= $(INCLS) $(DEFS)
@


1.10.2.1
log
@sync with trunk (approved by thorpej)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 1997/10/25 10:11:18 lukem Exp $
d15 1
a15 1
# CPPFLAGS=-g
d41 1
a41 1
CPPFLAGS+= $(INCLS) $(DEFS)
@


1.9
log
@don't clobber SUBDIR set within conditional
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 1997/06/23 13:25:50 mrg Exp $
d3 1
a3 9
.if	(${MACHINE_ARCH} == "i386") || \
	(${MACHINE_ARCH} == "m68k") || \
	(${MACHINE_ARCH} == "ns32k") || \
	(${MACHINE_ARCH} == "sparc") || \
	(${MACHINE_ARCH} == "vax")
SUBDIR=	bfd readline libiberty gdb
.else
SUBDIR=	gdb
.endif
d5 112
a116 1
.include <bsd.subdir.mk>
@


1.8
log
@install all man pages.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 1995/04/23 07:58:40 cgd Exp $
d8 3
a10 1
SUBDIR=	bfd readline libiberty
a11 2

SUBDIR=	gdb
@


1.7
log
@NetBSD RCS Id format
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 1994/01/28 12:36:46 pk Exp $
d3 9
a11 1
SUBDIR=	bfd readline libiberty gdb
@


1.6
log
@Upgrade to gdb version 4.11
@
text
@d1 1
a1 1
#	$Id$
@


1.5
log
@MACHINE_ARCH support
@
text
@d1 1
a1 2
#	from: @@(#)Makefile	6.4 (Berkley) 5/6/91
#	$Id: Makefile,v 1.4 1993/10/07 07:24:47 cgd Exp $
d3 1
a3 16
PROG=		gdb
GDBSRCS=	blockframe.c breakpoint.c command.c copying.c core.c \
		cplus-dem.c dbxread.c environ.c eval.c expprint.c \
		expread.y findvar.c infcmd.c inflow.c infrun.c \
		main.c obstack.c printcmd.c regex.c remote.c \
		remote-sl.c source.c stack.c symmisc.c symtab.c \
		utils.c valarith.c valops.c valprint.c values.c \
		version.c
READLINESRCS=	funmap.c history.c keymaps.c readline.c
SRCS=		param.h $(CONFIGSRCS) $(GDBSRCS) $(READLINESRCS) init.c
CFLAGS+=	-I. -I$(.CURDIR) -I$(.CURDIR)/config -I$(.CURDIR)/readline \
		-DHAVE_VPRINTF -DVI_MODE -DKERNELDEBUG -DNEWVM
LDADD+=		-ltermcap -gnumalloc
DPADD+=		${LIBTERMCAP} /usr/lib/libgnumalloc.a
YFLAGS=
.PATH: $(.CURDIR)/config $(.CURDIR)/readline
d5 1
a5 18
.include "config/Makefile.$(MACHINE_ARCH)"
.include <bsd.prog.mk>

$(OBJS):	param.h

#
# Generate the constructor
#
init.c:		$(CONFIGSRCS) $(GDBSRCS) $(READLINESRCS)
	-((cd $(.CURDIR)/config; \
		egrep -h '^_initialize_[^ ]* *\(\)' $(CONFIGSRCS)); \
	  (cd $(.CURDIR); egrep -h '^_initialize_[^ ]* *\(\)' $(GDBSRCS)); \
	  (cd $(.CURDIR)/readline; \
		egrep -h '^_initialize_[^ ]* *\(\)' $(READLINESRCS))) | \
	(echo 'void initialize_all_files () {'; sed -e 's/$$/;/'; echo '}') \
		> init.c

CLEANFILES+=	init.c param.h
@


1.4
log
@converted to use gnu malloc, and depend on it correctly
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.3 1993/08/01 05:42:13 mycroft Exp $
d21 1
a21 1
.include "config/Makefile.$(MACHINE)"
@


1.3
log
@Add RCS identifiers.
@
text
@d2 1
a2 1
#	$Id: $
d16 2
a17 2
LDADD+=		-ltermcap
DPADD+=		/usr/lib/libtermcap.a
@


1.2
log
@Add param.h to SRCS so it will get built before depending.
Remove bogus empty depend target.
@
text
@d1 2
a2 1
#	@@(#)Makefile	6.4 (Berkley) 5/6/91
@


1.1
log
@Initial revision
@
text
@d12 1
a12 1
SRCS=		$(CONFIGSRCS) $(GDBSRCS) $(READLINESRCS) init.c
d15 2
a16 1
LDADD=		-ltermcap
a18 2

depend:
@


1.1.1.1
log
@initial import of 386bsd-0.1 sources
@
text
@@
