x
[deliverable/binutils-gdb.git] / bfd / Makefile.in
index cf2c6177691b92c5c717b0eb96087afb3791a55a..eb6c54c4786eb5aa2ba63fb5d978e3e06adaa284 100644 (file)
@@ -45,17 +45,18 @@ docdir = doc
 
 SHELL = /bin/sh
 
-INSTALL = `cd $(srcdir)/..;pwd`/install.sh -c
-INSTALL_PROGRAM = $(INSTALL)
-INSTALL_DATA = $(INSTALL)
+INSTALL = @INSTALL@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
 
-AR = ar
+AR = @AR@
 AR_FLAGS = rc
-CFLAGS = -g
+CC = @CC@
+CFLAGS = @CFLAGS@
 MAKEINFO = makeinfo
 RANLIB = @RANLIB@
 
-CC_FOR_BUILD = $(CC)
+CC_FOR_BUILD = @CC_FOR_BUILD@
 
 INCDIR = $(srcdir)/../include
 CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
@@ -194,6 +195,8 @@ BFD32_BACKENDS = \
        pei-arm.o \
        pe-i386.o \
        pei-i386.o \
+       pe-ppc.o \
+       pei-ppc.o \
        reloc16.o \
        sparclynx.o \
        sparcnetbsd.o \
@@ -233,11 +236,6 @@ TDEFAULTS = @tdefaults@
 
 all:
 
-#### host and target dependent Makefile fragments come in here.
-# @target_makefile_frag@
-# @host_makefile_frag@
-###
-
 FLAGS_TO_PASS = \
        "prefix=$(prefix)" \
        "exec_prefix=$(exec_prefix)" \
@@ -254,7 +252,7 @@ FLAGS_TO_PASS = \
        "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
        "BISON=$(BISON)"
 
-ALL_CFLAGS=$(CFLAGS) $(HDEFINES) @COREFLAG@ $(TDEFINES) $(CSEARCH) $(CSWITCHES)
+ALL_CFLAGS=@HDEFINES@ @COREFLAG@ @TDEFINES@ $(CSEARCH) $(CSWITCHES) $(CFLAGS)
 .c.o:
        $(CC) -c $(ALL_CFLAGS) $<
 
@@ -282,7 +280,7 @@ CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c \
         sparclynx.c cf-sparclynx.c aix386-core.c hpux-core.c \
         irix-core.c lynx-core.c osf-core.c hash.c linker.c cofflink.c \
         m68knetbsd.c ns32knetbsd.c sparcnetbsd.c pe-i386.c pei-i386.c \
-        versados.c coff-arm.c pe-arm.c pei-arm.c
+        versados.c coff-arm.c pe-arm.c pei-arm.c pe-ppc.c pei-ppc.c
 
 HFILES = aout-target.h aoutf1.h aoutx.h coffcode.h \
         coffswap.h ecoffswap.h elf32-hppa.h elf32-target.h elf64-target.h \
@@ -310,7 +308,7 @@ info dvi : force
 
 clean-info:
        @$(MAKE) subdir_do DO=clean-info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
-       
+
 install-info: force
        @$(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
 
@@ -321,8 +319,7 @@ diststuff: info headers
 # BFD_BACKENDS Routines the configured targets need.
 # BFD_MACHINES Architecture-specific routines the configured targets need.
 # COREFILE     Core file routines for a native configuration
-# TDEPFILES    Routines the target needs, regardless of host.
-OFILES = $(BFD_LIBS) $(BFD_BACKENDS) $(BFD_MACHINES) @COREFILE@ $(TDEPFILES)
+OFILES = $(BFD_LIBS) $(BFD_BACKENDS) $(BFD_MACHINES) @COREFILE@
 
 ofiles : Makefile
        rm -f ofiles
@@ -344,7 +341,6 @@ $(TARGETLIB): $(OFILES) ofiles
 # When compiling archures.c and targets.c, supply the default target
 # info from configure.
 
-
 targets.o: targets.c Makefile
        $(CC) -c $(ALL_CFLAGS) $(TDEFAULTS) $<
 
@@ -381,14 +377,14 @@ do_clean: do_mostlyclean
        rm -f libbfd.a TAGS bfd.h stmp-bfd.h ofiles \
                elf32-target.h elf64-target.h
 do_distclean: do_clean
-       rm -f Makefile config.status sysdep.h config.cache
+       rm -f Makefile config.status config.cache config.h stamp-h
 
 # Should we remove $(srcdir)/libcoff.h $(srcdir)/libbfd.h $(srcdir)/bfd-in2.h?
 # make-stds.texi says it depends on whether they can be regenerated using
 # this makefile.  Well, they can, but only via an explicit "make headers";
 # the makefile does not regenerate them as needed.  So I guess we should not
 # remove them in realclean.
-do_realclean: do_distclean
+do_maintainer_clean: do_distclean
 
 mostlyclean: do_mostlyclean
        $(MAKE) subdir_do DO=mostlyclean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
@@ -397,19 +393,16 @@ clean: do_clean
 distclean:
        $(MAKE) subdir_do DO=distclean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
        $(MAKE) do_distclean
-clobber realclean:
-       $(MAKE) subdir_do DO=realclean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
-       $(MAKE) do_realclean
+clobber maintainer-clean realclean:
+       $(MAKE) subdir_do DO=maintainer-clean "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)
+       $(MAKE) do_maintainer_clean
 
-# Mark everything as depending on config.status, since the timestamp on
-# sysdep.h might actually move backwards if we reconfig and relink it
-# to a different hosts/h-xxx.h file.  This will force a recompile anyway.
 BFD_H_DEPS= $(INCDIR)/ansidecl.h $(INCDIR)/obstack.h
-RECONFIG = config.status
-$(BFD_LIBS):  libbfd.h $(BFD_H) $(RECONFIG) $(BFD_H_DEPS)
-$(BFD_MACHINES):  libbfd.h $(BFD_H) $(RECONFIG) $(BFD_H_DEPS)
-$(BFD_BACKENDS):  libbfd.h $(BFD_H) $(RECONFIG) $(BFD_H_DEPS)
-$(OPTIONAL_BACKENDS):  libbfd.h $(BFD_H) $(RECONFIG) $(BFD_H_DEPS)
+LOCAL_H_DEPS= libbfd.h sysdep.h config.h
+$(BFD_LIBS): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
+$(BFD_MACHINES): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
+$(BFD_BACKENDS): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
+$(OPTIONAL_BACKENDS): $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS)
 
 # Get around a Sun Make bug in SunOS 4.1.1 with VPATH
 cpu-i386.o:cpu-i386.c
@@ -483,9 +476,13 @@ install:
        fi
 
 Makefile: Makefile.in config.status
-       $(SHELL) config.status
+       CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
+
+config.h: stamp-h ; @true
+stamp-h: config.in config.status
+       CONFIG_FILES= CONFIG_HEADERS=config.h:config.in $(SHELL) ./config.status
 
-config.status: configure configure.host config.bfd @frags@
+config.status: configure configure.host config.bfd
        $(SHELL) config.status --recheck
 
 # Have to get rid of .dep1 here so that "$?" later includes all of $(CFILES).
@@ -530,26 +527,14 @@ BFDIN_H= $(srcdir)/bfd-in2.h
 
 $(BFD_H): stmp-bfd.h ; @true
 
-# The file ../include/bfd.h is from earlier attempts to get this right.
-# If the file is still there, kill it.
-# The weird sh*t with grep is to avoid printing "exit 1 (ignored)" type
-# messages from make, and avoid various ways in which different versions
-# of make will screw up exit status checks.
-#      -grep...                -> make prints "exit 1" message
-#      grep ... ; exit 0       -> sun(?) make notices grep failure
-#      grep ... || exit 0      -> bsd4.4 make still notices
-#      if grep ...             -> seems okay so far
 stmp-bfd.h : $(srcdir)/bfd-in2.h Makefile
-       rm -f bfd.h-new 64 ../include/bfd.h
-       if grep BFD_HOST_64_BIT sysdep.h > 64 2>/dev/null; then true; \
-       else true; fi
+       rm -f bfd.h-new
        sed -e 's/@WORDSIZE@/$(WORDSIZE)/' \
            -e "s/@VERSION@/`cat $(srcdir)/VERSION`/" \
-           -e '/64-bit.*sysdep.h/ r 64' \
+           -e 's/@BFD_HOST_64BIT_LONG@/@HOST_64BIT_LONG@/' \
                < $(srcdir)/bfd-in2.h \
                > bfd.h-new
        $(srcdir)/../move-if-change bfd.h-new $(BFD_H)
-       rm -f 64
        touch stmp-bfd.h
 
 # Could really use a "copy-if-change"...
@@ -846,5 +831,9 @@ pe-arm.o: pe-arm.c coff-arm.c $(INCDIR)/coff/arm.h \
 pei-arm.o: pei-arm.c coff-arm.c $(INCDIR)/coff/arm.h \
   $(INCDIR)/coff/internal.h $(INCDIR)/coff/pe.h libcoff.h \
   $(INCDIR)/bfdlink.h coffcode.h peicode.h
+pe-ppc.o: pe-ppc.c $(INCDIR)/coff/powerpc.h $(INCDIR)/coff/internal.h \
+  libcoff.h $(INCDIR)/bfdlink.h coffcode.h peicode.h
+pei-ppc.o: pe-ppc.c $(INCDIR)/coff/powerpc.h $(INCDIR)/coff/internal.h \
+  libcoff.h $(INCDIR)/bfdlink.h coffcode.h peicode.h
 
 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.025359 seconds and 4 git commands to generate.