head	1.5;
access;
symbols
	RELEASE_6_0_0:1.4
	RELEASE_5_4_0:1.4
	RELEASE_4_11_0:1.4
	RELEASE_5_3_0:1.4
	RELEASE_4_10_0:1.3
	RELEASE_5_2_1:1.3
	RELEASE_5_2_0:1.3
	RELEASE_4_9_0:1.3
	RELEASE_5_1_0:1.3
	RELEASE_4_8_0:1.3
	RELEASE_5_0_0:1.3
	RELEASE_4_7_0:1.3
	RELEASE_4_6_2:1.3
	RELEASE_4_6_1:1.3
	RELEASE_4_6_0:1.3
	RELEASE_5_0_DP1:1.3
	RELEASE_4_5_0:1.3
	RELEASE_4_4_0:1.3
	RELEASE_4_3_0:1.3
	RELEASE_4_2_0:1.3
	RELEASE_4_1_1:1.3
	RELEASE_4_1_0:1.3
	RELEASE_3_5_0:1.3
	RELEASE_4_0_0:1.3
	RELEASE_3_4_0:1.3
	RELEASE_3_3_0:1.3
	RELEASE_3_2_0:1.1.1.1
	wagner_4_17:1.1.1.1
	WAGNER:1.1.1;
locks; strict;
comment	@# @;


1.5
date	2006.02.03.17.27.41;	author vs;	state dead;
branches;
next	1.4;

1.4
date	2004.09.21.17.18.56;	author leeym;	state Exp;
branches;
next	1.3;

1.3
date	99.09.10.00.40.04;	author jdp;	state Exp;
branches;
next	1.2;

1.2
date	99.09.08.18.02.33;	author jdp;	state Exp;
branches;
next	1.1;

1.1
date	99.03.01.04.11.23;	author jdp;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	99.03.01.04.11.23;	author jdp;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Remove expired port
@
text
@--- Makefile.orig	Wed Feb 17 09:55:20 1999
+++ Makefile	Wed Sep  8 09:35:39 1999
@@@@ -2,22 +2,24 @@@@
 
-PROG = m3gdb
+PROG= 		m3gdb
 
-GDBDIR=	${.CURDIR}/../../../../contrib/gdb
-.if ${OBJFORMAT} == elf
-BFDDIR= ${.CURDIR}/../../binutils/libbfd/${MACHINE_ARCH}
-BINDIR=	/usr/local/bin
+FBSDGDBDIR=	${.CURDIR}/src/gnu/usr.bin/gdb/gdb
+
+GDBDIR=		${FBSDGDBDIR}/../../../../contrib/gdb
+
+.if ${PORTOBJFORMAT} == elf
+BFDDIR= ${FBSDGDBDIR}/../../binutils/libbfd/${MACHINE_ARCH}
 .else
-BFDDIR= ${.CURDIR}/../bfd
-BINDIR=	/usr/local/bin/aout
+BFDDIR= ${FBSDGDBDIR}/../bfd
 .endif
-MANDIR= /usr/local/man/man
 
-FBSDGDB=${.CURDIR}/../gdb
-.PATH:	${FBSDGDB}
+BINDIR=	${PREFIX}/bin
+MANDIR= ${PREFIX}/man/man
+
+.PATH:	${FBSDGDBDIR}
 .PATH:	${GDBDIR}/gdb
 .PATH:	${GDBDIR}/opcodes
 
-.if ${OBJFORMAT} == elf
+.if ${PORTOBJFORMAT} == elf
 CFLAGS+=	-DFREEBSD_ELF
 .endif
 CFLAGS+=	-DNEED_DECLARATION_FREE
@@@@ -50,6 +52,9 @@@@
 	m3-lang.c m3-token.c m3-uid.c
 SRCS=	init.c ${XSRCS}
 
+.PHONY: show check libdepend libbuild beforedepend afterdepend
+.PHONY: links localclean
+
 show:
 	@@echo ${XSRCS}
 
@@@@ -60,7 +65,34 @@@@
 	@@cd ${.CURDIR} && wc *-files
 	@@echo ""
 
-beforedepend:
+beforedepend: libdepend
+#afterdepend: libbuild # too ugly, call it explicitly in pre-build
+
+.if ${PORTOBJFORMAT} == elf
+LIBBFDDIR=	${FBSDGDBDIR}/../../binutils/libbfd
+LIBIBERTYDIR=	${FBSDGDBDIR}/../../binutils/libiberty
+.else
+LIBBFDDIR=	${FBSDGDBDIR}/../bfd
+LIBIBERTYDIR=	${FBSDGDBDIR}/../libiberty
+.endif
+
+LIBBFDOBJ=	${.CURDIR}/../libbfd
+LIBIBERTYOBJ=	${.CURDIR}/../libiberty
+
+libdepend:
+	@@echo building dependencies in ${LIBBFDDIR}
+	@@mkdir -p ${LIBBFDOBJ}
+	@@cd ${LIBBFDDIR} && MAKEOBJDIR=${LIBBFDOBJ} make depend
+	@@echo building dependencies in ${LIBIBERTYDIR}
+	@@mkdir -p ${LIBIBERTYOBJ}
+	@@cd ${LIBIBERTYDIR} && MAKEOBJDIR=${LIBIBERTYOBJ} make depend
+
+libbuild:
+	@@echo building libbfd.a
+	@@cd ${LIBBFDDIR} && MAKEOBJDIR=${LIBBFDOBJ} make all
+	@@echo building libiberty.a
+	@@cd ${LIBIBERTYDIR} && MAKEOBJDIR=${LIBIBERTYOBJ} make all
+
 
 links:
 	@@cd ${.CURDIR} && ${.CURDIR}/link-non-local-files.sh
@@@@ -69,7 +101,12 @@@@
 	@@cd ${.CURDIR} && ${.CURDIR}/rm-all-links.sh
 	cd ${.CURDIR} && rm -f ${.CURDIR}/*.core ${.CURDIR}/*~
 
-CFLAGS+= -I- -I$(.CURDIR) -I${FBSDGDB} -I${DESTDIR}/usr/include/readline -I${BFDDIR}
+CFLAGS+= -I- -I$(.CURDIR) -I${FBSDGDBDIR} 
+CFLAGS+= -I${DESTDIR}/usr/include/readline -I${BFDDIR}
+CFLAGS+= -I${GDBDIR}/include -I${GDBDIR}/gdb -I${GDBDIR}/bfd
+CFLAGS+= -I${GDBDIR}/libiberty -I${GDBDIR}/gdb/config
+CFLAGS+= -DHAVE_CONFIG_H
+
 # use phkmalloc
 CFLAGS+= -DNO_MMALLOC
 # uncomment the next line if you want to debug gdb
@@@@ -78,35 +115,8 @@@@
 
 CLEANFILES=	init.c init.c-tmp
 
-.if ${OBJFORMAT} == elf
-
-.if exists(${.OBJDIR}/../../binutils/libbfd)
-LIBBFD=	${.OBJDIR}/../../binutils/libbfd/libbfd.a
-.else
-LIBBFD=	${.CURDIR}/../../binutils/libbfd/libbfd.a
-.endif
-
-.if exists(${.OBJDIR}/../../binutils/libiberty)
-LIBIBERTY=	${.OBJDIR}/../../binutils/libiberty/libiberty.a
-.else
-LIBIBERTY=	${.CURDIR}/../../binutils/libiberty/libiberty.a
-.endif
-
-.else
-
-.if exists(${.OBJDIR}/../bfd)
-LIBBFD=	${.OBJDIR}/../bfd/libbfd.a
-.else
-LIBBFD=	${.CURDIR}/../bfd/libbfd.a
-.endif
-
-.if exists(${.OBJDIR}/../libiberty)
-LIBIBERTY= ${.OBJDIR}/../libiberty/libiberty.a
-.else
-LIBIBERTY= ${.CURDIR}/../libiberty/libiberty.a
-.endif
-
-.endif # OBJFORMAT
+LIBBFD=		${LIBBFDOBJ}/libbfd.a
+LIBIBERTY=	${LIBIBERTYOBJ}/libiberty.a
 
 DPADD=	${LIBBFD} ${LIBREADLINE} ${LIBGNUREGEX} ${LIBIBERTY} ${LIBTERMCAP}
 LDADD=	${LIBBFD} -lreadline     -lgnuregex     ${LIBIBERTY} -ltermcap
@


1.4
log
@- unbreak this port on 5.x
- utilize PORTNAME and PORTVERSION

PR:		71839
Submitted by:	leeym
Approved by:	portmgr (marcus), jdp (maintainer)
@
text
@@


1.3
log
@Add a last-minute fix to a pathname which I unfortunately left out
of the previous commit.
@
text
@d3 1
a3 2
@@@@ -1,23 +1,25 @@@@
 #	$Id: Makefile,v 1.38 1998/10/15 14:15:09 bde Exp $
@


1.2
log
@Make this port build again under both 3.x-stable and 4.x-current.
It used to depend on a bunch of files from the FreeBSD source tree.
But the import of gdb-4.18 and the restructuring connected with
that broke the port.  I have created a second distfile containing
the needed files, and this port now gets them from there.

Also mark this port broken for everything except i386/elf.  I don't
have time to fix the other platforms before the 3.3-RELEASE ports
freeze.
@
text
@d13 1
a13 1
+FBSDGDBDIR=	${.CURDIR}/../src/gnu/usr.bin/gdb/gdb
@


1.1
log
@Initial revision
@
text
@d2 1
a2 1
+++ Makefile	Sun Feb 28 19:23:16 1999
d13 1
a13 1
+FBSDGDBDIR=	/usr/src/gnu/usr.bin/gdb/gdb
@


1.1.1.1
log
@Import the "m3gdb" port.  It is a modified version of gdb-4.17 which
supports debugging Modula-3 programs.

Submitted by:	Olaf Wagner <wagner@@luthien.in-berlin.de>
@
text
@@
