We can easily share obj-format.h and targ-env.h files across all FreeBSD
platforms, which reduces the upgrade effort. Also tidy up the Makefiles.
This commit is contained in:
parent
ac6e021d88
commit
35f617ebb3
@ -3,9 +3,9 @@
|
||||
.include "${.CURDIR}/../../Makefile.inc0"
|
||||
|
||||
RELTOP:= ../${RELTOP}
|
||||
|
||||
.PATH: ${SRCDIR}/gas ${SRCDIR}/gas/config
|
||||
|
||||
PROG= as
|
||||
MAN= doc/as.1
|
||||
SRCS+= app.c as.c atof-generic.c atof-ieee.c bignum-copy.c \
|
||||
cond.c dwarf2dbg.c ecoff.c expr.c flonum-copy.c flonum-konst.c \
|
||||
@ -13,7 +13,7 @@ SRCS+= app.c as.c atof-generic.c atof-ieee.c bignum-copy.c \
|
||||
input-scrub.c listing.c literal.c macro.c messages.c \
|
||||
output-file.c read.c sb.c stabs.c \
|
||||
subsegs.c symbols.c write.c depend.c ehopt.c
|
||||
CFLAGS+= -I${SRCDIR}/gas -I${SRCDIR}/gas/config -I${SRCDIR}
|
||||
CFLAGS+= -I${SRCDIR}/gas -I${SRCDIR}/gas/config -I${SRCDIR} -I${.CURDIR}/..
|
||||
CFLAGS+= -DVERSION=\"${VERSION}\" -DBFD_VERSION=\"${VERSION}\"
|
||||
NOSHARED?= yes
|
||||
DPADD= ${RELTOP}/libbfd/libbfd.a
|
||||
|
@ -1,14 +1,11 @@
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
.include "${.CURDIR}/../Makefile.inc0"
|
||||
|
||||
PROG= as
|
||||
.if ${TARGET_ARCH} != "alpha"
|
||||
NOMAN= 1
|
||||
BINDIR= /usr/libexec/cross/alpha-freebsd
|
||||
.if ${TARGET_ARCH} != "alpha"
|
||||
NOMAN= true
|
||||
BINDIR= /usr/libexec/cross/alpha-freebsd
|
||||
.endif
|
||||
SRCS+= obj-elf.c tc-alpha.c
|
||||
SRCS+= obj-elf.c tc-alpha.c
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -1 +0,0 @@
|
||||
#include "obj-elf.h"
|
@ -1 +0,0 @@
|
||||
#include "te-freebsd.h"
|
@ -1,14 +1,11 @@
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
.include "${.CURDIR}/../Makefile.inc0"
|
||||
|
||||
PROG= as
|
||||
NOMAN= 1
|
||||
.if ${TARGET_ARCH} != "i386"
|
||||
BINDIR= /usr/libexec/cross/i386-freebsd
|
||||
NOMAN= true
|
||||
.if ${TARGET_ARCH} != "i386"
|
||||
BINDIR= /usr/libexec/cross/i386-freebsd
|
||||
.endif
|
||||
SRCS+= obj-elf.c tc-i386.c
|
||||
SRCS+= obj-elf.c tc-i386.c
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -1 +0,0 @@
|
||||
#include "obj-elf.h"
|
@ -1 +0,0 @@
|
||||
#include "te-freebsd.h"
|
@ -1,12 +1,9 @@
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
.include "${.CURDIR}/../Makefile.inc0"
|
||||
|
||||
PROG= as
|
||||
NOMAN= 1
|
||||
BINDIR= /usr/libexec/cross/i386-winnt
|
||||
SRCS+= obj-coff.c tc-i386.c
|
||||
NOMAN= true
|
||||
BINDIR= /usr/libexec/cross/i386-winnt
|
||||
SRCS+= obj-coff.c tc-i386.c
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -1,12 +1,9 @@
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
.include "${.CURDIR}/../Makefile.inc0"
|
||||
|
||||
PROG= as
|
||||
NOMAN= 1
|
||||
BINDIR= /usr/libexec/cross/m68k-freebsd
|
||||
SRCS+= obj-elf.c tc-m68k.c m68k-parse.c
|
||||
NOMAN= true
|
||||
BINDIR= /usr/libexec/cross/m68k-freebsd
|
||||
SRCS+= obj-elf.c tc-m68k.c m68k-parse.c
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -1,12 +1,9 @@
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
.include "${.CURDIR}/../Makefile.inc0"
|
||||
|
||||
PROG= as
|
||||
NOMAN= 1
|
||||
BINDIR= /usr/libexec/cross/m68k-netbsdaout
|
||||
SRCS+= obj-aout.c tc-m68k.c m68k-parse.c
|
||||
NOMAN= true
|
||||
BINDIR= /usr/libexec/cross/m68k-netbsdaout
|
||||
SRCS+= obj-aout.c tc-m68k.c m68k-parse.c
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -1,2 +1,3 @@
|
||||
/* $FreeBSD$ */
|
||||
|
||||
#include "obj-elf.h"
|
@ -2,15 +2,14 @@
|
||||
|
||||
.include "${.CURDIR}/../Makefile.inc0"
|
||||
|
||||
PROG= as
|
||||
.if ${TARGET_ARCH} != "powerpc"
|
||||
NOMAN= 1
|
||||
BINDIR= /usr/libexec/cross/powerpc-freebsd
|
||||
.if ${TARGET_ARCH} != "powerpc"
|
||||
NOMAN= true
|
||||
BINDIR= /usr/libexec/cross/powerpc-freebsd
|
||||
# If we aren't doing cross-assembling, some operations can be optimized, since
|
||||
# byte orders and value sizes don't need to be adjusted.
|
||||
CFLAGS+= -DCROSS_COMPILE=1
|
||||
CFLAGS+= -DCROSS_COMPILE=1
|
||||
.endif
|
||||
SRCS+= obj-elf.c tc-ppc.c
|
||||
SRCS+= obj-elf.c tc-ppc.c
|
||||
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -1,2 +0,0 @@
|
||||
/* $FreeBSD$ */
|
||||
#include "te-freebsd.h"
|
@ -1,17 +1,14 @@
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
.include "${.CURDIR}/../Makefile.inc0"
|
||||
|
||||
PROG= as
|
||||
.if ${TARGET_ARCH} != "sparc64"
|
||||
NOMAN= 1
|
||||
BINDIR= /usr/libexec/cross/sparc64-freebsd
|
||||
.if ${TARGET_ARCH} != "sparc64"
|
||||
NOMAN= true
|
||||
BINDIR= /usr/libexec/cross/sparc64-freebsd
|
||||
# If we aren't doing cross-assembling, some operations can be optimized, since
|
||||
# byte orders and value sizes don't need to be adjusted.
|
||||
CFLAGS+= -DCROSS_COMPILE=1
|
||||
CFLAGS+= -DCROSS_COMPILE=1
|
||||
.endif
|
||||
SRCS+= obj-elf.c tc-sparc.c
|
||||
SRCS+= obj-elf.c tc-sparc.c
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -1,2 +0,0 @@
|
||||
/* $FreeBSD$ */
|
||||
#include "obj-elf.h"
|
@ -1,2 +1,3 @@
|
||||
/* $FreeBSD$ */
|
||||
|
||||
#include "te-freebsd.h"
|
Loading…
Reference in New Issue
Block a user