Clean up and use stuff from src/gnu/lib/libbfd.
This commit is contained in:
parent
9a8b75daeb
commit
b81603da91
@ -1,35 +1,21 @@
|
||||
# $NetBSD: Makefile.inc,v 1.6 1999/02/06 05:27:42 tv Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.7 1999/02/09 19:21:53 tv Exp $
|
||||
|
||||
.if !defined(__MAKEFILE_INC_INCLUDED__)
|
||||
__MAKEFILE_INC_INCLUDED__=1
|
||||
|
||||
TOP= ${.CURDIR}/../../..
|
||||
dist= ${TOP}/dist
|
||||
srcdir= ${dist}/binutils
|
||||
BFDOBJ!=cd ${TOP}/lib/bfd; \
|
||||
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-
|
||||
CPPFLAGS+= -I${.OBJDIR} -I${.CURDIR} -I${.CURDIR}/../common \
|
||||
-I${BFDOBJ} -I${DIST}/bfd -I${DIST}/binutils -I${DIST}/include \
|
||||
-DHAVE_CONFIG_H
|
||||
DPADD+= ${LIBCOMMONDIR}/libcommon.a ${BFDOBJ}/libbfd_pic.a
|
||||
LDADD+= -L${LIBCOMMONDIR} -lcommon -L${BFDOBJ} -lbfd
|
||||
|
||||
.PATH: ${srcdir}
|
||||
DIST= ${.CURDIR}/../../../dist
|
||||
.if !make(print-objdir)
|
||||
BFDOBJ!= cd ${.CURDIR}/../../../lib/libbfd && ${MAKE} print-objdir
|
||||
LIBCOMMONDIR!= cd ${.CURDIR}/../common && ${MAKE} print-objdir
|
||||
.endif
|
||||
|
||||
.include <bsd.own.mk>
|
||||
TARGET=${MACHINE_GNU_ARCH}--netbsd
|
||||
|
||||
INCLS+= -I${.OBJDIR} -I${.CURDIR} -I${.CURDIR}/../common
|
||||
|
||||
INCLS+= -I${BFDOBJ}
|
||||
INCLS+= -I${dist}/bfd
|
||||
INCLS+= -I${dist}/binutils
|
||||
INCLS+= -I${dist}/include
|
||||
|
||||
CPPFLAGS+=${INCLS} -DHAVE_CONFIG_H
|
||||
|
||||
LIBCOMMONDIR != cd ${.CURDIR}/../common; \
|
||||
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-
|
||||
LIBCOMMON= ${LIBCOMMONDIR}/libcommon.a
|
||||
COMMONLIB= -L${LIBCOMMONDIR} -lcommon
|
||||
|
||||
DPADD= ${LIBCOMMON} ${BFDOBJ}/libbfd.a
|
||||
LDADD= ${COMMONLIB} -L${BFDOBJ} -lbfd
|
||||
.PATH: ${DIST}/binutils
|
||||
|
||||
.if exists(${.CURDIR}/../../Makefile.inc)
|
||||
.include "${.CURDIR}/../../Makefile.inc"
|
||||
|
@ -1,7 +1,7 @@
|
||||
# $NetBSD: Makefile,v 1.3 1999/02/02 22:05:58 tv Exp $
|
||||
# $NetBSD: Makefile,v 1.4 1999/02/09 19:21:54 tv Exp $
|
||||
|
||||
PROG= addr2line
|
||||
SRCS= addr2line.c
|
||||
MAN= addr2line.1
|
||||
PROG= addr2line
|
||||
SRCS= addr2line.c
|
||||
MAN= addr2line.1
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -1,7 +1,7 @@
|
||||
# $NetBSD: Makefile,v 1.3 1999/02/02 22:05:59 tv Exp $
|
||||
# $NetBSD: Makefile,v 1.4 1999/02/09 19:21:54 tv Exp $
|
||||
|
||||
PROG= ar
|
||||
SRCS= ar.c not-ranlib.c
|
||||
MAN= ar.1
|
||||
PROG= ar
|
||||
SRCS= ar.c not-ranlib.c
|
||||
MAN= ar.1
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -1,16 +1,14 @@
|
||||
# $NetBSD: Makefile,v 1.8 1999/02/06 05:27:43 tv Exp $
|
||||
# $NetBSD: Makefile,v 1.9 1999/02/09 19:21:54 tv Exp $
|
||||
|
||||
PROG= c++filt
|
||||
SRCS= cplus-dem.c underscore.c
|
||||
MAN= c++filt.1
|
||||
|
||||
CPPFLAGS+=-DMAIN
|
||||
|
||||
CLEANFILES+=${PROG}.1
|
||||
PROG= c++filt
|
||||
SRCS= cplus-dem.c underscore.c
|
||||
MAN= c++filt.1
|
||||
CPPFLAGS+= -DMAIN
|
||||
CLEANFILES+= ${MAN}
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
.PATH: ${dist}/libiberty
|
||||
.PATH: ${DIST}/libiberty
|
||||
|
||||
${PROG}.1: ${srcdir}/cxxfilt.man
|
||||
sed -e "s/@PROGRAM@/${PROG}/" < ${srcdir}/cxxfilt.man > ${.TARGET}
|
||||
${MAN}: ${DIST}/binutils/cxxfilt.man
|
||||
sed -e "s/@PROGRAM@/${PROG}/" < $> > $@
|
||||
|
@ -1,13 +1,12 @@
|
||||
# $NetBSD: Makefile,v 1.5 1999/02/06 05:27:43 tv Exp $
|
||||
# $NetBSD: Makefile,v 1.6 1999/02/09 19:21:54 tv Exp $
|
||||
|
||||
LIB= common
|
||||
LIB= common
|
||||
|
||||
SRCS= arparse.y arlex.l arsup.c bucomm.c version.c filemode.c rddbg.c \
|
||||
debug.c stabs.c ieee.c rdcoff.c wrstabs.c
|
||||
SRCS= arparse.y arlex.l arsup.c bucomm.c version.c filemode.c \
|
||||
rddbg.c debug.c stabs.c ieee.c rdcoff.c wrstabs.c
|
||||
CPPFLAGS+= -DTARGET='"${MACHINE_GNU_ARCH}--netbsd"'
|
||||
YHEADER=1
|
||||
|
||||
CPPFLAGS+=-DTARGET='"${TARGET}"'
|
||||
|
||||
NOPROFILE=
|
||||
NOPIC=
|
||||
NOLINT=
|
||||
|
@ -1,7 +1,7 @@
|
||||
# $NetBSD: Makefile,v 1.3 1999/02/02 22:06:00 tv Exp $
|
||||
# $NetBSD: Makefile,v 1.4 1999/02/09 19:21:54 tv Exp $
|
||||
|
||||
PROG= nm
|
||||
SRCS= nm.c
|
||||
MAN= nm.1
|
||||
PROG= nm
|
||||
SRCS= nm.c
|
||||
MAN= nm.1
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -1,7 +1,7 @@
|
||||
# $NetBSD: Makefile,v 1.3 1999/02/02 22:06:00 tv Exp $
|
||||
# $NetBSD: Makefile,v 1.4 1999/02/09 19:21:54 tv Exp $
|
||||
|
||||
PROG= objcopy
|
||||
SRCS= objcopy.c not-strip.c
|
||||
MAN= objcopy.1
|
||||
PROG= objcopy
|
||||
SRCS= objcopy.c not-strip.c
|
||||
MAN= objcopy.1
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -1,7 +1,7 @@
|
||||
# $NetBSD: Makefile,v 1.3 1999/02/02 22:06:00 tv Exp $
|
||||
# $NetBSD: Makefile,v 1.4 1999/02/09 19:21:55 tv Exp $
|
||||
|
||||
PROG= objdump
|
||||
SRCS= objdump.c prdbg.c
|
||||
MAN= objdump.1
|
||||
PROG= objdump
|
||||
SRCS= objdump.c prdbg.c
|
||||
MAN= objdump.1
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -1,7 +1,7 @@
|
||||
# $NetBSD: Makefile,v 1.3 1999/02/02 22:06:00 tv Exp $
|
||||
# $NetBSD: Makefile,v 1.4 1999/02/09 19:21:55 tv Exp $
|
||||
|
||||
PROG= ranlib
|
||||
SRCS= ar.c is-ranlib.c
|
||||
MAN= ranlib.1
|
||||
PROG= ranlib
|
||||
SRCS= ar.c is-ranlib.c
|
||||
MAN= ranlib.1
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -1,7 +1,7 @@
|
||||
# $NetBSD: Makefile,v 1.3 1999/02/02 22:06:01 tv Exp $
|
||||
# $NetBSD: Makefile,v 1.4 1999/02/09 19:21:55 tv Exp $
|
||||
|
||||
PROG= size
|
||||
SRCS= size.c
|
||||
MAN= size.1
|
||||
PROG= size
|
||||
SRCS= size.c
|
||||
MAN= size.1
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -1,7 +1,7 @@
|
||||
# $NetBSD: Makefile,v 1.3 1999/02/02 22:06:01 tv Exp $
|
||||
# $NetBSD: Makefile,v 1.4 1999/02/09 19:21:55 tv Exp $
|
||||
|
||||
PROG= strings
|
||||
SRCS= strings.c
|
||||
MAN= strings.1
|
||||
PROG= strings
|
||||
SRCS= strings.c
|
||||
MAN= strings.1
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -1,8 +1,8 @@
|
||||
# $NetBSD: Makefile,v 1.5 1999/02/02 22:06:02 tv Exp $
|
||||
# $NetBSD: Makefile,v 1.6 1999/02/09 19:21:55 tv Exp $
|
||||
|
||||
PROG= strip
|
||||
SRCS= objcopy.c is-strip.c
|
||||
MAN= strip.1
|
||||
PROG= strip
|
||||
SRCS= objcopy.c is-strip.c
|
||||
MAN= strip.1
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user