head	1.8;
access;
symbols
	perseant-exfatfs-base-20250801:1.8
	perseant-exfatfs-base-20240630:1.8
	cjep_sun2x:1.8.0.44
	cjep_sun2x-base:1.8
	cjep_staticlib_x-base1:1.8
	cjep_staticlib_x:1.8.0.42
	cjep_staticlib_x-base:1.8
	phil-wifi-20200421:1.8
	phil-wifi-20200411:1.8
	phil-wifi-20200406:1.8
	pgoyette-compat-merge-20190127:1.8
	pgoyette-compat-20190127:1.8
	pgoyette-compat-20190118:1.8
	pgoyette-compat-1226:1.8
	pgoyette-compat-1126:1.8
	pgoyette-compat-1020:1.8
	pgoyette-compat-0930:1.8
	pgoyette-compat-0906:1.8
	pgoyette-compat-0728:1.8
	pgoyette-compat-0625:1.8
	pgoyette-compat-0521:1.8
	pgoyette-compat-0502:1.8
	pgoyette-compat-0422:1.8
	pgoyette-compat-0415:1.8
	pgoyette-compat-0407:1.8
	pgoyette-compat-0330:1.8
	pgoyette-compat-0322:1.8
	pgoyette-compat-0315:1.8
	pgoyette-compat:1.8.0.40
	pgoyette-compat-base:1.8
	perseant-stdc-iso10646:1.8.0.38
	perseant-stdc-iso10646-base:1.8
	prg-localcount2-base3:1.8
	prg-localcount2-base2:1.8
	prg-localcount2-base1:1.8
	prg-localcount2:1.8.0.36
	prg-localcount2-base:1.8
	pgoyette-localcount-20170426:1.8
	bouyer-socketcan-base1:1.8
	pgoyette-localcount-20170320:1.8
	bouyer-socketcan:1.8.0.34
	bouyer-socketcan-base:1.8
	pgoyette-localcount-20170107:1.8
	pgoyette-localcount-20161104:1.8
	localcount-20160914:1.8
	pgoyette-localcount-20160806:1.8
	pgoyette-localcount-20160726:1.8
	pgoyette-localcount:1.8.0.32
	pgoyette-localcount-base:1.8
	netbsd-5-2-3-RELEASE:1.8
	netbsd-5-1-5-RELEASE:1.8
	yamt-pagecache-base9:1.8
	yamt-pagecache-tag8:1.8
	tls-earlyentropy:1.8.0.28
	tls-earlyentropy-base:1.8
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.8
	riastradh-drm2-base3:1.8
	netbsd-5-2-2-RELEASE:1.8
	netbsd-5-1-4-RELEASE:1.8
	netbsd-5-2-1-RELEASE:1.8
	netbsd-5-1-3-RELEASE:1.8
	agc-symver:1.8.0.30
	agc-symver-base:1.8
	tls-maxphys-base:1.8
	yamt-pagecache-base8:1.8
	netbsd-5-2:1.8.0.26
	yamt-pagecache-base7:1.8
	netbsd-5-2-RELEASE:1.8
	netbsd-5-2-RC1:1.8
	yamt-pagecache-base6:1.8
	yamt-pagecache-base5:1.8
	yamt-pagecache-base4:1.8
	netbsd-5-1-2-RELEASE:1.8
	netbsd-5-1-1-RELEASE:1.8
	yamt-pagecache-base3:1.8
	yamt-pagecache-base2:1.8
	yamt-pagecache:1.8.0.24
	yamt-pagecache-base:1.8
	bouyer-quota2-nbase:1.8
	bouyer-quota2:1.8.0.22
	bouyer-quota2-base:1.8
	matt-nb5-pq3:1.8.0.20
	matt-nb5-pq3-base:1.8
	netbsd-5-1:1.8.0.18
	netbsd-5-1-RELEASE:1.8
	netbsd-5-1-RC4:1.8
	netbsd-5-1-RC3:1.8
	netbsd-5-1-RC2:1.8
	netbsd-5-1-RC1:1.8
	netbsd-5-0-2-RELEASE:1.8
	netbsd-5-0-1-RELEASE:1.8
	jym-xensuspend-nbase:1.8
	netbsd-5-0:1.8.0.16
	netbsd-5-0-RELEASE:1.8
	netbsd-5-0-RC4:1.8
	netbsd-5-0-RC3:1.8
	netbsd-5-0-RC2:1.8
	jym-xensuspend:1.8.0.14
	jym-xensuspend-base:1.8
	netbsd-5-0-RC1:1.8
	netbsd-5:1.8.0.12
	netbsd-5-base:1.8
	mjf-devfs2:1.8.0.10
	mjf-devfs2-base:1.8
	yamt-pf42-base4:1.8
	yamt-pf42-base3:1.8
	hpcarm-cleanup-nbase:1.8
	yamt-pf42-base2:1.8
	yamt-pf42:1.8.0.8
	yamt-pf42-base:1.8
	keiichi-mipv6:1.8.0.6
	keiichi-mipv6-base:1.8
	cube-autoconf:1.8.0.4
	cube-autoconf-base:1.8
	hpcarm-cleanup:1.8.0.2
	hpcarm-cleanup-base:1.8
	GWR1:1.1.1.1
	GWR:1.1.1;
locks; strict;
comment	@# @;


1.8
date	97.10.18.18.58.01;	author gwr;	state dead;
branches;
next	1.7;

1.7
date	97.09.29.15.41.09;	author gwr;	state Exp;
branches;
next	1.6;

1.6
date	97.09.29.15.30.46;	author gwr;	state Exp;
branches;
next	1.5;

1.5
date	97.09.26.21.18.07;	author gwr;	state Exp;
branches;
next	1.4;

1.4
date	97.09.26.18.12.09;	author gwr;	state Exp;
branches;
next	1.3;

1.3
date	97.09.26.18.09.58;	author gwr;	state Exp;
branches;
next	1.2;

1.2
date	97.09.26.16.38.37;	author gwr;	state Exp;
branches;
next	1.1;

1.1
date	97.09.26.04.37.02;	author gwr;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	97.09.26.04.37.02;	author gwr;	state Exp;
branches;
next	;


desc
@@


1.8
log
@This was temporary - now in ../gdb
@
text
@# $NetBSD: Makefile,v 1.7 1997/09/29 15:41:09 gwr Exp $

PROG=	gdb

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

.PATH:	$(srcdir)

# Override this to build a cross-debugger.
TARGET_ARCH?=$(MACHINE_ARCH)

# Debugging?
# CFLAGS=-g

# Find out where libreadline.a lives.
RL_CURDIR=$(TOP)/lib/readline
RL_OBJDIR!=cd $(RL_CURDIR); $(MAKE) echo_objdir
LIBREADLINE=$(RL_OBJDIR)/libreadline.a

# 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$(TOP)/lib/bfd
INCLS+= -I$(dist)/bfd
INCLS+= -I$(dist)/include

# misc. -DHAVE_TERMIOS
# KERNEL_DEBUG no longer used.  See ADDITIONAL_OPTIONS*
DEFS= -DNO_MMALLOC

CFLAGS+= $(INCLS) $(DEFS)

.include "_$(TARGET_ARCH).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.tab.c f-exp.tab.c m2-exp.tab.c

# 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 mipsread.c stabsread.c corefile.c \
	c-lang.c ch-exp.c ch-lang.c f-lang.c 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 callback.c

SRCS=	main.c $(COMMON_SRCS) annotate.c inflow.c gnu-regex.c
OBJS=	init.o

LDADD+= $(LIBREADLINE)
DPADD+= $(LIBREADLINE)

LDADD+= -lbfd
DPADD+= $(LIBBFD)

LDADD+= -lkvm
DPADD+= $(LIBKVM)

LDADD+= -ltermcap
DPADD+= $(LIBTERMCAP)

DPSRCS+= nm.h tm.h

.include <bsd.prog.mk>

# 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
	${COMPILE.c} init.c

# Need these headers before any objects.
$(OBJS) : nm.h tm.h xm.h

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_ARCH)-netbsd\" \
	  -DTARGET_NAME=\"$(TARGET_ARCH)-netbsd\" \
	  -c $(.IMPSRC)

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


1.7
log
@Use $(LIBBFD)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 1997/09/29 15:30:46 gwr Exp $
@


1.6
log
@Improvements from Bernd Ernesti
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 1997/09/26 21:18:07 gwr Exp $
d77 1
a77 1
DPADD+= ${DESTDIR}/usr/lib/libbfd.a
@


1.5
log
@Avoid nuking nm.h tm.h in clean, so .depend stays up-to-date.
Kill the yacc rules.  (were not being used, and did not work)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 1997/09/26 18:12:09 gwr Exp $
d3 1
a3 3
# PROG=	gdb # No, this needs custom rules.
# Use <bsd.prog.mk> somehow?
PROGNAME=gdb
d41 1
a41 1
CPPFLAGS= $(INCLS) $(DEFS)
d46 3
a48 3
NDEP_CMN?= infptrace.o inftarg.o fork-child.o corelow.o kcore-nbsd.o
XDEP_FILES= ser-tcp.o ser-unix.o
REMOTE_OBS = remote.o dcache.o remote-utils.o
d51 1
a51 1
 $(NDEP_CMN) $(NDEP_FILES) $(REMOTE_OBS)
d53 1
a53 1
YYOBJ= c-exp.tab.o f-exp.tab.o m2-exp.tab.o
d56 13
a68 13
COMMON_OBS = version.o blockframe.o breakpoint.o findvar.o stack.o thread.o \
	source.o values.o eval.o valops.o valarith.o valprint.o printcmd.o \
	symtab.o symfile.o symmisc.o infcmd.o infrun.o command.o \
	expprint.o environ.o gdbtypes.o copying.o $(DEPFILES) \
	mem-break.o target.o parse.o language.o $(YYOBJ) buildsym.o \
	exec.o bcache.o objfiles.o minsyms.o maint.o demangle.o \
	dbxread.o coffread.o elfread.o \
	dwarfread.o mipsread.o stabsread.o corefile.o \
	c-lang.o ch-exp.o ch-lang.o f-lang.o m2-lang.o \
	scm-exp.o scm-lang.o scm-valprint.o complaints.o typeprint.o \
	c-typeprint.o ch-typeprint.o f-typeprint.o m2-typeprint.o \
	c-valprint.o cp-valprint.o ch-valprint.o f-valprint.o m2-valprint.o \
	nlmread.o serial.o mdebugread.o os9kread.o top.o utils.o callback.o
d70 2
a71 1
OBJS =	main.o $(COMMON_OBS) annotate.o inflow.o gnu-regex.o
d85 1
a85 3
# Note custom rules - did NOT set PROG
CLEANFILES+= gdb
all: gdb
a88 2
.NOPATH: ${OBJS}

d92 2
a93 2
CLEANFILES+= init.c init.o
gdb : $(OBJS) $(DPADD)
d95 2
a96 3
	sh $(.CURDIR)/mkinit.sh $(OBJS) > init.c
	$(CC) $(CFLAGS) $(CPPFLAGS) -c init.c
	$(CC) -o $@@ $(OBJS) init.o $(LDADD)
a100 1
DPSRCS+= nm.h
a104 1
DPSRCS+= tm.h
d115 2
a116 23
# YACC rules for YYOBJS?

cleandepend:
	-rm -f .depend ${DPSRCS}

depend: .depend
.depend: ${DPSRCS} ${OBJS:.o=.c}
	${CC} -MM $(CPPFLAGS) ${.ALLSRC:M*.c} > .depend.tmp
	-mv -f .depend.tmp $@@

proginstall:: ${DESTDIR}${BINDIR}/${PROGNAME}
.if !defined(UPDATE)
.PHONY: ${DESTDIR}${BINDIR}/${PROGNAME}
.endif
.if !defined(BUILD)
${DESTDIR}${BINDIR}/${PROGNAME}: .MADE
.endif

.PRECIOUS: ${DESTDIR}${BINDIR}/${PROGNAME}
${DESTDIR}${BINDIR}/${PROGNAME}: ${PROGNAME}
	${INSTALL} ${COPY} ${STRIPFLAG} -o ${BINOWN} -g ${BINGRP} \
	    -m ${BINMODE} ${.ALLSRC} ${.TARGET}

@


1.4
log
@Forgot to remove CFLAGS=-g
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 1997/09/26 18:09:58 gwr Exp $
d92 5
d107 1
a107 1
CLEANFILES+= nm.h
d112 1
a112 1
CLEANFILES+= tm.h
d123 1
a123 17
CLEANFILES+= c-exp.tab.h c-exp.c
c-exp.c c-exp.tab.h : c-exp.y
	${YACC} -d -p c_ -b c-exp $(.IMPSRC)
c-exp.o : c-exp.c
	$(CC) $(CFLAGS) $(CPPFLAGS) -c $(.IMPSRC)

CLEANFILES+= f-exp.tab.h f-exp.c
f-exp.c f-exp.tab.h : f-exp.y
	${YACC} -d -p f_ -b f-exp $(.IMPSRC)
f-exp.o : f-exp.c
	$(CC) $(CFLAGS) $(CPPFLAGS) -c $(.IMPSRC)

CLEANFILES+= m2-exp.tab.h m2-exp.c
m2-exp.c m2-exp.tab.h : m2-exp.y
	${YACC} -d -p m2_ -b m2-exp $(.IMPSRC)
m2-exp.o : m2-exp.c
	$(CC) $(CFLAGS) $(CPPFLAGS) -c $(.IMPSRC)
d126 1
a126 1
	-rm -f .depend
a127 1
DPSRCS = ${OBJS:.o=.c} nm.h tm.h
d129 1
a129 1
.depend: ${DPSRCS}
@


1.3
log
@More changes now that this uses bsd.prog.mk
(clean, cleandir, .depend)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 1997/09/26 16:38:37 gwr Exp $
d16 2
a17 2
# Compiler options.
CFLAGS=-g
@


1.2
log
@make depend needs: nm.h tm.h
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1.1.1 1997/09/26 04:37:02 gwr Exp $
d87 1
d136 2
a137 4
clean:
	-rm -f gdb
	-rm -f $(CLEANFILES)
	-rm -f $(OBJS)
a156 4

.if exists(.depend)
.include ".depend"
.endif
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $NetBSD$
d140 1
a140 1
DPSRCS = ${OBJS:.o=.c}
d143 1
a143 1
	${CC} -MM $(CPPFLAGS) ${.ALLSRC} > .depend.tmp
@


1.1.1.1
log
@BSD-style build infrastructure for gdb-4.16
(Will replace ../gdb later on.)
@
text
@@
