Merge in changes from gdb-3.95 release into mainstream of BFD development.
[deliverable/binutils-gdb.git] / bfd / Makefile.in
1 #
2 # Copyright (C) 1990, 1991 Free Software Foundation, Inc.
3 #
4 # This file is part of BFD, the Binary File Diddler.
5 #
6 # BFD is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 1, or (at your option)
9 # any later version.
10 #
11 # BFD is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with BFD; see the file COPYING. If not, write to
18 # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20 # $Id$
21
22 srcdir = .
23
24 RANLIB = ranlib
25 AR = ar
26 AR_FLAGS = clq
27 INCDIR = $(srcdir)/../include
28 CSEARCH = -I$(INCDIR)
29 DEP = mkdep
30 #### host and target dependent Makefile fragments come in here.
31 ###
32
33 TARGETLIB = libbfd.a
34 CFLAGS = -g $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) # -DINTEL960VERSION
35
36
37 BFD_LIBS = libbfd.o opncls.o bfd.o archive.o targets.o cache.o \
38 archures.o
39
40 BFD_BACKENDS = oasys.o ieee.o srec.o aout64.o aout32.o sunos.o icoff.o demo64.o \
41 m68kcoff.o i386coff.o m88k-bcs.o coffswap.o ecoff.o newsos3.o # trad-core.o bout.o
42
43 BFD_H=$(INCDIR)/bfd.h
44 SYSDEP_H=$(INCDIR)/sysdep.h
45
46 # C source files that correspond to .o's.
47 CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c archures.c \
48 i386coff.c aout64.c aout32.c sunos.c demo64.c icoff.c srec.c oasys.c ieee.c m68kcoff.c \
49 m88k-bcs.c coffswap.c ecoff.c trad-core.c newsos3.c #bout.c
50
51 STAGESTUFF = $(TARGETLIB) $(OFILES)
52
53 all: $(TARGETLIB)
54
55 # XDEPFILES comes from the host config; TDEPFILES from the target config.
56 OFILES = $(BFD_LIBS) $(BFD_BACKENDS) $(XDEPFILES) $(TDEPFILES)
57
58 $(TARGETLIB): $(OFILES)
59 rm -f $(TARGETLIB)
60 $(AR) $(AR_FLAGS) $(TARGETLIB) $(OFILES)
61 $(RANLIB) $(TARGETLIB)
62
63 stage1: force
64 - mkdir stage1
65 - mv -f $(STAGESTUFF) stage1
66
67 stage2: force
68 - mkdir stage2
69 - mv -f $(STAGESTUFF) stage2
70
71 stage3: force
72 - mkdir stage3
73 - mv -f $(STAGESTUFF) stage3
74
75 de-stage1: force
76 - (cd stage1 ; mv -f $(STAGESTUFF) ..)
77 - rmdir stage1
78
79 de-stage2: force
80 - (cd stage2 ; mv -f $(STAGESTUFF) ..)
81 - rmdir stage2
82
83 de-stage3: force
84 - (cd stage3 ; mv -f $(STAGESTUFF) ..)
85 - rmdir stage3
86
87 tags etags: TAGS
88
89 TAGS: force
90 etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
91
92 clean:
93 rm -f *.[oa] *~ core *.E
94
95 clobber realclean: clean
96 rm -f libbfd.a TAGS
97
98 $(BFD_LIBS) $(BFD_BACKENDS): libbfd.h $(BFD_H)
99
100 saber:
101 #suppress 65 on bfd_map_over_sections
102 #suppress 66 on bfd_map_over_sections
103 #suppress 67 on bfd_map_over_sections
104 #suppress 68 on bfd_map_over_sections
105 #suppress 69 on bfd_map_over_sections
106 #suppress 70 on bfd_map_over_sections
107 #suppress 110 in bfd_map_over_sections
108 #suppress 112 in bfd_map_over_sections
109 #suppress 530
110 #suppress 590 in swap_exec_header
111 #suppress 590 in _bfd_dummy_core_file_matches_executable_p
112 #suppress 590 in bfd_dont_truncate_arname
113 #suppress 590 on ignore
114 #suppress 590 on abfd
115 #setopt load_flags $(CFLAGS)
116 #load $(CFILES)
117
118
119 #-----------------------------------------------------------------------------
120 # 'STANDARD' GNU/960 TARGETS BELOW THIS POINT
121 #
122 # 'VERSION' file must be present and contain a string of the form "x.y"
123 #-----------------------------------------------------------------------------
124
125 ver960.c: FORCE
126 rm -f ver960.c
127 echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
128
129
130 # This target should be invoked before building a new release.
131 # 'VERSION' file must be present and contain a string of the form "x.y"
132 #
133 roll:
134 @V=`cat VERSION` ; \
135 MAJ=`sed 's/\..*//' VERSION` ; \
136 MIN=`sed 's/.*\.//' VERSION` ; \
137 V=$$MAJ.`expr $$MIN + 1` ; \
138 rm -f VERSION ; \
139 echo $$V >VERSION ; \
140 echo Version $$V
141
142 # Dummy target to force execution of dependent targets.
143 #
144 force:
145
146 install:
147
148 # Target to uncomment host-specific lines in this makefile. Such lines must
149 # have the following string beginning in column 1: #__<hostname>__#
150 # Original Makefile is backed up as 'Makefile.old'.
151 #
152 # Invoke with: make make HOST=xxx
153 #
154 make:
155 -@if test $(HOST)x = x ; then \
156 echo '\aSpecify "make make HOST=???"'; \
157 exit 1; \
158 fi ; \
159 grep -s "^#The next line was generated by 'make make'" Makefile; \
160 if test $$? = 0 ; then \
161 echo "\aMakefile has already been processed with 'make make'";\
162 exit 1; \
163 fi ; \
164 mv -f Makefile Makefile.old; \
165 echo "#The next line was generated by 'make make'" >Makefile ; \
166 echo "HOST=$(HOST)" >>Makefile ; \
167 echo >>Makefile ; \
168 sed "s/^#__$(HOST)__#//" < Makefile.old >>Makefile
169
170 Makefile: $(srcdir)/Makefile.in $(srcdir)/configure
171 (cd $(srcdir) ; \
172 ./configure +norecurse \
173 +destdir=$(destdir) \
174 `if [ "$(srcdir)" != "." ] ; then echo +f; fi` \
175 $(host) +target=$(target);)
176
177 dep: $(CFILES)
178 mkdep $(CFLAGS) $?
This page took 0.034716 seconds and 5 git commands to generate.