ab5ad3a4b5
support building it for variant architectures. It was already becoming clear that the former structure was too rigid and didn't scale well. The usual sort of makefile magic arranges to .include an architecture specific makefile "Makefile.${MACHINE_ARCH}" in each directory where it exists. Also, sources will be found in each subdirectory "${MACHINE_ARCH}" that exists. This is all taken care of automatically by the top level "Makefile.inc0". This all seems to work right for the i386 now. I have also converted those alpha pieces already present to the new schema as best I could. Also: change the BINDIR on the i386 to /usr/libexec/elf for "ar" and "ranlib". They are not object format independent enough to put into /usr/bin.
29 lines
600 B
Makefile
29 lines
600 B
Makefile
#
|
|
# $Id: Makefile,v 1.1.1.1 1998/03/01 23:41:03 jdp Exp $
|
|
#
|
|
|
|
.include "../Makefile.inc0"
|
|
|
|
.PATH: ${SRCDIR}/bfd
|
|
|
|
LIB= bfd
|
|
SRCS+= archive.c archures.c bfd.c binary.c cache.c \
|
|
coffgen.c corefile.c elf.c format.c hash.c ihex.c \
|
|
init.c libbfd.c linker.c opncls.c reloc.c section.c \
|
|
srec.c stab-syms.c stabs.c syms.c targets.c tekhex.c
|
|
CFLAGS+= -I${SRCDIR}/bfd
|
|
NOPROFILE= true
|
|
NOPIC= true
|
|
CLEANFILES+= targmatch.h
|
|
|
|
beforedepend: targmatch.h
|
|
|
|
targets.o: targmatch.h
|
|
|
|
targmatch.h: targmatch.sed config.bfd
|
|
sed -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} > ${.TARGET}
|
|
|
|
install:
|
|
|
|
.include <bsd.lib.mk>
|