Use the mknative-generated headers and defs.mk.
(Largely copied from the analagous Makefiles under src/gnu/lib)
This commit is contained in:
parent
c892b54d09
commit
f6ec6161ba
|
@ -1,26 +1,65 @@
|
|||
# $NetBSD: Makefile,v 1.1 2006/05/15 16:31:37 nathanw Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2006/05/29 19:18:56 nathanw Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
.if exists(${.CURDIR}/../arch/${MACHINE_ARCH}/defs.mk)
|
||||
MKPRIVATELIB= yes
|
||||
|
||||
TOP= ${NETBSDSRCDIR}/gnu
|
||||
DIST= ${TOP}/dist/gdb6
|
||||
|
||||
.include "${.CURDIR}/../arch/${MACHINE_ARCH}/defs.mk"
|
||||
|
||||
LIB= bfd
|
||||
SRCS= ${G_BFD_OBJS:.o=.c}
|
||||
CPPFLAGS= -I${.CURDIR} -I${.CURDIR}/../arch/${MACHINE_ARCH} \
|
||||
-I${DIST}/include \
|
||||
-DHAVE_CONFIG_H \
|
||||
-DNETBSD_CORE \
|
||||
${G_BFD_CPPFLAGS}
|
||||
|
||||
.endif
|
||||
.include "${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk"
|
||||
|
||||
.include "../../Makefile.inc"
|
||||
.include <bsd.lib.mk>
|
||||
DIST= ${NETBSDSRCDIR}/gnu/dist/gdb6
|
||||
|
||||
GCPPFLAGS= ${G_archdefs} ${G_DEFS} ${G_INCLUDES} ${G_TDEFAULTS}
|
||||
CPPFLAGS+= -I${.CURDIR}/arch/${MACHINE_ARCH} -I${DIST}/include -I. \
|
||||
-I${DIST}/bfd ${GCPPFLAGS:M-D*} ${GCPPFLAGS:M-I*:N-I.*}
|
||||
|
||||
GSRCS= ${G_libbfd_la_OBJECTS:libbfd.lo=lib_bfd.lo} \
|
||||
${G_libbfd_la_DEPENDENCIES:M*.lo}
|
||||
SRCS= ${GSRCS:.lo=.c}
|
||||
|
||||
DPSRCS+= elf32-target.h elf64-target.h targmatch.h \
|
||||
elf32-ia64.c elf64-ia64.c peigen.c pepigen.c
|
||||
CLEANFILES+= elf32-target.h elf64-target.h targmatch.h \
|
||||
elf32-ia64.c elf64-ia64.c peigen.c pepigen.c
|
||||
|
||||
.PATH: ${DIST}/bfd
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
||||
# XXX
|
||||
.if ${MACHINE_CPU} == "sh5"
|
||||
COPTS.elf32.c= -O1
|
||||
COPTS.elf64.c= -O1
|
||||
.endif
|
||||
|
||||
${OBJS} ${SOBJS}: elf32-target.h elf64-target.h
|
||||
targets.o targets.so: targmatch.h Makefile
|
||||
|
||||
targmatch.h: config.bfd targmatch.sed
|
||||
${_MKTARGET_CREATE}
|
||||
sed -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} >$@
|
||||
|
||||
elf32-target.h: elfxx-target.h
|
||||
${_MKTARGET_CREATE}
|
||||
sed -e s/NN/32/g < $> > $@
|
||||
|
||||
elf64-target.h: elfxx-target.h
|
||||
${_MKTARGET_CREATE}
|
||||
sed -e s/NN/64/g < $> > $@
|
||||
|
||||
elf32-ia64.c: elfxx-ia64.c
|
||||
${_MKTARGET_CREATE}
|
||||
sed -e s/NN/32/g < $> > $@
|
||||
|
||||
elf64-ia64.c: elfxx-ia64.c
|
||||
${_MKTARGET_CREATE}
|
||||
sed -e s/NN/64/g < $> > $@
|
||||
|
||||
peigen.c: peXXigen.c
|
||||
${_MKTARGET_CREATE}
|
||||
sed -e s/XX/pe/g < $> > $@
|
||||
|
||||
pepigen.c: peXXigen.c
|
||||
${_MKTARGET_CREATE}
|
||||
sed -e s/XX/pep/g < $> > $@
|
||||
|
|
|
@ -1,24 +1,21 @@
|
|||
# $NetBSD: Makefile,v 1.2 2006/05/15 19:12:07 nathanw Exp $
|
||||
# $NetBSD: Makefile,v 1.3 2006/05/29 19:18:56 nathanw Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
MKPRIVATELIB= yes
|
||||
|
||||
TOP= ${NETBSDSRCDIR}/gnu
|
||||
DIST= ${TOP}/dist/gdb6
|
||||
LIB= iberty
|
||||
|
||||
LIB=iberty
|
||||
.include "${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk"
|
||||
|
||||
CPPFLAGS+=-I${.CURDIR} -I${DIST}/include -DHAVE_CONFIG_H
|
||||
DIST= ${NETBSDSRCDIR}/gnu/dist/gdb6
|
||||
|
||||
SRCS=argv.c concat.c cp-demangle.c cp-demint.c cplus-dem.c \
|
||||
dyn-string.c floatformat.c getopt.c getopt1.c getruntime.c hashtab.c \
|
||||
hex.c lbasename.c objalloc.c obstack.c regex.c safe-ctype.c \
|
||||
splay-tree.c unlink-if-ordinary.c xexit.c xmalloc.c xstrdup.c \
|
||||
xstrerror.c
|
||||
|
||||
.include "../../Makefile.inc"
|
||||
.include <bsd.lib.mk>
|
||||
SRCS= ${G_REQUIRED_OFILES:.o=.c} ${G_EXTRA_OFILES:.o=.c} \
|
||||
${G_LIBOBJS:.o=.c} ${G_ALLOCA:.o=.c}
|
||||
|
||||
CPPFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR}/arch/${MACHINE_ARCH} \
|
||||
-I${DIST}/include
|
||||
|
||||
.PATH: ${DIST}/libiberty
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
|
|
@ -1,24 +1,25 @@
|
|||
# $NetBSD: Makefile,v 1.1 2006/05/15 16:31:37 nathanw Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2006/05/29 19:18:56 nathanw Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
.if exists(${.CURDIR}/../arch/${MACHINE_ARCH}/defs.mk)
|
||||
MKPRIVATELIB= yes
|
||||
|
||||
TOP= ${NETBSDSRCDIR}/gnu
|
||||
DIST= ${TOP}/dist/gdb6
|
||||
|
||||
.include "${.CURDIR}/../arch/${MACHINE_ARCH}/defs.mk"
|
||||
|
||||
LIB= opcodes
|
||||
SRCS= ${G_OPCODES_OBJS:.o=.c}
|
||||
CPPFLAGS= -I${.CURDIR} -I${.CURDIR}/../arch/${MACHINE_ARCH} \
|
||||
-I${DIST}/include -I${DIST}/bfd -I${.CURDIR}/../bfd \
|
||||
-DHAVE_CONFIG_H
|
||||
|
||||
.endif
|
||||
.include "${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk"
|
||||
|
||||
.include "../../Makefile.inc"
|
||||
.include <bsd.lib.mk>
|
||||
DIST= ${NETBSDSRCDIR}/gnu/dist/gdb6
|
||||
|
||||
GCPPFLAGS= ${G_archdefs} ${G_DEFS} ${G_INCLUDES} ${G_TDEFAULTS}
|
||||
CPPFLAGS+= -I${.CURDIR}/arch/${MACHINE_ARCH} \
|
||||
-I${.CURDIR}/../bfd/arch/${MACHINE_ARCH} \
|
||||
-I${DIST}/include -I. \
|
||||
-I${DIST}/bfd ${GCPPFLAGS:M-D*} \
|
||||
${GCPPFLAGS:M-I*:N-I.*}
|
||||
|
||||
GSRCS= ${G_BFD_MACHINES}
|
||||
SRCS= ${GSRCS:.lo=.c} ${G_libopcodes_la_SOURCES}
|
||||
|
||||
.PATH: ${DIST}/opcodes
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
|
Loading…
Reference in New Issue