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:
David E. O'Brien 2001-10-15 01:43:23 +00:00
parent ff433237bd
commit edb338ea02
16 changed files with 31 additions and 56 deletions

View File

@ -3,9 +3,9 @@
.include "${.CURDIR}/../../Makefile.inc0" .include "${.CURDIR}/../../Makefile.inc0"
RELTOP:= ../${RELTOP} RELTOP:= ../${RELTOP}
.PATH: ${SRCDIR}/gas ${SRCDIR}/gas/config .PATH: ${SRCDIR}/gas ${SRCDIR}/gas/config
PROG= as
MAN= doc/as.1 MAN= doc/as.1
SRCS+= app.c as.c atof-generic.c atof-ieee.c bignum-copy.c \ 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 \ 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 \ input-scrub.c listing.c literal.c macro.c messages.c \
output-file.c read.c sb.c stabs.c \ output-file.c read.c sb.c stabs.c \
subsegs.c symbols.c write.c depend.c ehopt.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}\" CFLAGS+= -DVERSION=\"${VERSION}\" -DBFD_VERSION=\"${VERSION}\"
NOSHARED?= yes NOSHARED?= yes
DPADD= ${RELTOP}/libbfd/libbfd.a DPADD= ${RELTOP}/libbfd/libbfd.a

View File

@ -1,14 +1,11 @@
#
# $FreeBSD$ # $FreeBSD$
#
.include "${.CURDIR}/../Makefile.inc0" .include "${.CURDIR}/../Makefile.inc0"
PROG= as .if ${TARGET_ARCH} != "alpha"
.if ${TARGET_ARCH} != "alpha" NOMAN= true
NOMAN= 1 BINDIR= /usr/libexec/cross/alpha-freebsd
BINDIR= /usr/libexec/cross/alpha-freebsd
.endif .endif
SRCS+= obj-elf.c tc-alpha.c SRCS+= obj-elf.c tc-alpha.c
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1 +0,0 @@
#include "obj-elf.h"

View File

@ -1 +0,0 @@
#include "te-freebsd.h"

View File

@ -1,14 +1,11 @@
#
# $FreeBSD$ # $FreeBSD$
#
.include "${.CURDIR}/../Makefile.inc0" .include "${.CURDIR}/../Makefile.inc0"
PROG= as NOMAN= true
NOMAN= 1 .if ${TARGET_ARCH} != "i386"
.if ${TARGET_ARCH} != "i386" BINDIR= /usr/libexec/cross/i386-freebsd
BINDIR= /usr/libexec/cross/i386-freebsd
.endif .endif
SRCS+= obj-elf.c tc-i386.c SRCS+= obj-elf.c tc-i386.c
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1 +0,0 @@
#include "obj-elf.h"

View File

@ -1 +0,0 @@
#include "te-freebsd.h"

View File

@ -1,12 +1,9 @@
#
# $FreeBSD$ # $FreeBSD$
#
.include "${.CURDIR}/../Makefile.inc0" .include "${.CURDIR}/../Makefile.inc0"
PROG= as NOMAN= true
NOMAN= 1 BINDIR= /usr/libexec/cross/i386-winnt
BINDIR= /usr/libexec/cross/i386-winnt SRCS+= obj-coff.c tc-i386.c
SRCS+= obj-coff.c tc-i386.c
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,12 +1,9 @@
#
# $FreeBSD$ # $FreeBSD$
#
.include "${.CURDIR}/../Makefile.inc0" .include "${.CURDIR}/../Makefile.inc0"
PROG= as NOMAN= true
NOMAN= 1 BINDIR= /usr/libexec/cross/m68k-freebsd
BINDIR= /usr/libexec/cross/m68k-freebsd SRCS+= obj-elf.c tc-m68k.c m68k-parse.c
SRCS+= obj-elf.c tc-m68k.c m68k-parse.c
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,12 +1,9 @@
#
# $FreeBSD$ # $FreeBSD$
#
.include "${.CURDIR}/../Makefile.inc0" .include "${.CURDIR}/../Makefile.inc0"
PROG= as NOMAN= true
NOMAN= 1 BINDIR= /usr/libexec/cross/m68k-netbsdaout
BINDIR= /usr/libexec/cross/m68k-netbsdaout SRCS+= obj-aout.c tc-m68k.c m68k-parse.c
SRCS+= obj-aout.c tc-m68k.c m68k-parse.c
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,2 +1,3 @@
/* $FreeBSD$ */ /* $FreeBSD$ */
#include "obj-elf.h" #include "obj-elf.h"

View File

@ -2,15 +2,14 @@
.include "${.CURDIR}/../Makefile.inc0" .include "${.CURDIR}/../Makefile.inc0"
PROG= as .if ${TARGET_ARCH} != "powerpc"
.if ${TARGET_ARCH} != "powerpc" NOMAN= true
NOMAN= 1 BINDIR= /usr/libexec/cross/powerpc-freebsd
BINDIR= /usr/libexec/cross/powerpc-freebsd
# If we aren't doing cross-assembling, some operations can be optimized, since # If we aren't doing cross-assembling, some operations can be optimized, since
# byte orders and value sizes don't need to be adjusted. # byte orders and value sizes don't need to be adjusted.
CFLAGS+= -DCROSS_COMPILE=1 CFLAGS+= -DCROSS_COMPILE=1
.endif .endif
SRCS+= obj-elf.c tc-ppc.c SRCS+= obj-elf.c tc-ppc.c
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,2 +0,0 @@
/* $FreeBSD$ */
#include "te-freebsd.h"

View File

@ -1,17 +1,14 @@
#
# $FreeBSD$ # $FreeBSD$
#
.include "${.CURDIR}/../Makefile.inc0" .include "${.CURDIR}/../Makefile.inc0"
PROG= as .if ${TARGET_ARCH} != "sparc64"
.if ${TARGET_ARCH} != "sparc64" NOMAN= true
NOMAN= 1 BINDIR= /usr/libexec/cross/sparc64-freebsd
BINDIR= /usr/libexec/cross/sparc64-freebsd
# If we aren't doing cross-assembling, some operations can be optimized, since # If we aren't doing cross-assembling, some operations can be optimized, since
# byte orders and value sizes don't need to be adjusted. # byte orders and value sizes don't need to be adjusted.
CFLAGS+= -DCROSS_COMPILE=1 CFLAGS+= -DCROSS_COMPILE=1
.endif .endif
SRCS+= obj-elf.c tc-sparc.c SRCS+= obj-elf.c tc-sparc.c
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -1,2 +0,0 @@
/* $FreeBSD$ */
#include "obj-elf.h"

View File

@ -1,2 +1,3 @@
/* $FreeBSD$ */ /* $FreeBSD$ */
#include "te-freebsd.h" #include "te-freebsd.h"