[gdb/tui] Assume HAVE_WBORDER
[binutils-gdb.git] / bfd / Makefile.am
index da55a0bb99e9569c5bca7b87468ecf6c30abf330..5c5fdefd3b8cf76dc30273d7adb53bb79b6583c0 100644 (file)
@@ -1,6 +1,6 @@
 ## Process this file with automake to generate Makefile.in
 #
-#   Copyright (C) 2012-2022 Free Software Foundation, Inc.
+#   Copyright (C) 2012-2023 Free Software Foundation, Inc.
 #
 # This file is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -77,7 +77,7 @@ BFD_H = bfd.h
 BFD32_LIBS = \
        archive.lo archures.lo bfd.lo bfdio.lo bfdwin.lo cache.lo \
        coff-bfd.lo compress.lo corefile.lo elf-properties.lo format.lo \
-       hash.lo init.lo libbfd.lo linker.lo merge.lo opncls.lo reloc.lo \
+       hash.lo libbfd.lo linker.lo merge.lo opncls.lo reloc.lo \
        section.lo simple.lo stab-syms.lo stabs.lo syms.lo targets.lo \
        binary.lo ihex.lo srec.lo tekhex.lo verilog.lo
 
@@ -86,7 +86,7 @@ BFD64_LIBS = archive64.lo
 BFD32_LIBS_CFILES = \
        archive.c archures.c bfd.c bfdio.c bfdwin.c cache.c coff-bfd.c \
        compress.c corefile.c elf-properties.c format.c hash.c \
-       init.c libbfd.c linker.c merge.c opncls.c reloc.c \
+       libbfd.c linker.c merge.c opncls.c reloc.c \
        section.c simple.c stab-syms.c stabs.c syms.c targets.c \
        binary.c ihex.c srec.c tekhex.c verilog.c
 
@@ -633,7 +633,6 @@ BFD64_BACKENDS_CFILES = \
        vms-alpha.c
 
 OPTIONAL_BACKENDS = \
-       aix386-core.lo \
        cisco-core.lo \
        hpux-core.lo \
        irix-core.lo \
@@ -641,11 +640,9 @@ OPTIONAL_BACKENDS = \
        netbsd-core.lo \
        osf-core.lo \
        rs6000-core.lo \
-       sco5-core.lo \
        trad-core.lo
 
 OPTIONAL_BACKENDS_CFILES = \
-       aix386-core.c \
        cisco-core.c \
        hpux-core.c \
        irix-core.c \
@@ -653,7 +650,6 @@ OPTIONAL_BACKENDS_CFILES = \
        netbsd-core.c \
        osf-core.c \
        rs6000-core.c \
-       sco5-core.c \
        trad-core.c
 
 # Reconfigure if config.bfd or configure.host changes.
@@ -725,7 +721,7 @@ BUILD_HFILES = \
        bfdver.h elf32-target.h elf64-target.h targmatch.h
 
 # Ensure they are built early:
-BUILT_SOURCES = $(BUILD_HFILES) $(BUILD_CFILES)
+BUILT_SOURCES = $(BUILD_HFILES) @MAINT@ $(BUILD_CFILES)
 
 HFILES = $(SOURCE_HFILES) $(BUILD_HFILES)
 
@@ -785,25 +781,6 @@ libbfd_la_DEPENDENCIES = $(OFILES) ofiles ../libsframe/libsframe.la
 libbfd_la_LIBADD = `cat ofiles` @SHARED_LIBADD@ $(LIBDL) $(ZLIB) $(ZSTD_LIBS) ../libsframe/libsframe.la
 libbfd_la_LDFLAGS += -release `cat libtool-soversion` @SHARED_LDFLAGS@
 
-# libtool will build .libs/libbfd.a.  We create libbfd.a in the build
-# directory so that we don't have to convert all the programs that use
-# libbfd.a simultaneously.  This is a hack which should be removed if
-# everything else starts using libtool.  FIXME.
-
-noinst_LIBRARIES = libbfd.a
-libbfd_a_SOURCES =
-
-stamp-lib: libbfd.la
-       libtooldir=`$(LIBTOOL) --config | $(SED) -n -e 's/^objdir=//p'`; \
-       if [ -f $$libtooldir/libbfd.a ]; then \
-         cp $$libtooldir/libbfd.a libbfd.tmp; \
-         $(RANLIB) libbfd.tmp; \
-         $(SHELL) $(srcdir)/../move-if-change libbfd.tmp libbfd.a; \
-       else true; fi
-       touch stamp-lib
-
-libbfd.a: stamp-lib ; @true
-
 # This file holds an array associating configuration triplets and
 # vector names.  It is built from config.bfd.  It is not compiled by
 # itself, but is included by targets.c.
@@ -927,13 +904,14 @@ stmp-bfd-h: bfd-in3.h
        rm -f bfd-tmp.h
        touch stmp-bfd-h
 
-BFD_H_FILES = bfd-in.h init.c opncls.c libbfd.c \
-       bfdio.c bfdwin.c section.c archures.c reloc.c \
-       syms.c bfd.c archive.c corefile.c targets.c format.c \
-       linker.c simple.c compress.c
+BFD_H_FILES = bfd-in.h libbfd.c hash.c section.c syms.c \
+       archive.c archures.c bfd.c bfdio.c bfdwin.c \
+       cache.c compress.c corefile.c format.c linker.c opncls.c \
+       reloc.c simple.c stab-syms.c stabs.c targets.c
 BFD64_H_FILES = archive64.c
-LIBBFD_H_FILES = libbfd-in.h libbfd.c bfdio.c bfdwin.c \
-       cache.c reloc.c section.c targets.c archures.c linker.c
+LIBBFD_H_FILES = libbfd-in.h libbfd.c bfd.c bfdio.c \
+       archive.c archures.c bfdwin.c cache.c hash.c linker.c opncls.c \
+       reloc.c section.c stabs.c targets.c
 LIBCOFF_H_FILES = libcoff-in.h coffcode.h
 
 headers: stmp-bin2-h stmp-lbfd-h stmp-lcoff-h
@@ -980,7 +958,7 @@ stmp-lcoff-h: $(LIBCOFF_H_FILES) $(MKDOC)
 
 MOSTLYCLEANFILES += ofiles stamp-ofiles
 
-CLEANFILES += bfd.h dep.sed stmp-bfd-h DEP DEPA DEP1 DEP2 libbfd.a stamp-lib \
+CLEANFILES += bfd.h dep.sed stmp-bfd-h DEP DEPA DEP1 DEP2 \
        stmp-bin2-h stmp-lbfd-h stmp-lcoff-h
 
 DISTCLEANFILES += $(BUILD_CFILES) $(BUILD_HFILES) libtool-soversion