Test new structure exporting code with 68k coff implementaion.
[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 =
26 INCDIR = $(srcdir)/../include
27 CSEARCH = -I$(INCDIR)
28 DEP = mkdep
29 #### host and target dependent Makefile fragments come in here.
30 ###
31
32 TARGETLIB = libbfd.a
33 CFLAGS = -g $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) # -DINTEL960VERSION
34
35
36 BFD_LIBS = libbfd.o opncls.o bfd.o archive.o targets.o cache.o \
37 archures.o
38
39 BFD_BACKENDS = oasys.o ieee.o srec.o sunos.o icoff.o b.out.o \
40 m68kcoff.o m88k-bcs.o coffswap.o ecoff.o # trad-core.o
41
42 BFD_H=$(INCDIR)/bfd.h
43 SYSDEP_H=$(INCDIR)/sysdep.h
44
45 # C source files that correspond to .o's.
46 CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c archures.c \
47 sunos.c icoff.c b.out.c srec.c oasys.c ieee.c m68kcoff.c m88k-bcs.c \
48 coffswap.c ecoff.c trad-core.c
49
50 STAGESTUFF = $(TARGETLIB) $(OFILES)
51
52 all: $(TARGETLIB)
53
54 OFILES = $(BFD_LIBS) $(BFD_BACKENDS)
55
56 $(TARGETLIB): $(OFILES)
57 rm -f $(TARGETLIB)
58 ar clq $(TARGETLIB) $(OFILES)
59 ranlib $(TARGETLIB)
60
61 stage1: force
62 - mkdir stage1
63 - mv -f $(STAGESTUFF) stage1
64
65 stage2: force
66 - mkdir stage2
67 - mv -f $(STAGESTUFF) stage2
68
69 stage3: force
70 - mkdir stage3
71 - mv -f $(STAGESTUFF) stage3
72
73 de-stage1: force
74 - (cd stage1 ; mv -f $(STAGESTUFF) ..)
75 - rmdir stage1
76
77 de-stage2: force
78 - (cd stage2 ; mv -f $(STAGESTUFF) ..)
79 - rmdir stage2
80
81 de-stage3: force
82 - (cd stage3 ; mv -f $(STAGESTUFF) ..)
83 - rmdir stage3
84
85 tags etags: TAGS
86
87 TAGS: force
88 etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
89
90 clean:
91 rm -f *.[oa] *~ core *.E
92
93 clobber realclean: clean
94 rm -f libbfd.a TAGS
95
96 $(BFD_LIBS) $(BFD_BACKENDS): libbfd.h $(BFD_H)
97
98 saber:
99 #suppress 65 on bfd_map_over_sections
100 #suppress 66 on bfd_map_over_sections
101 #suppress 67 on bfd_map_over_sections
102 #suppress 68 on bfd_map_over_sections
103 #suppress 69 on bfd_map_over_sections
104 #suppress 70 on bfd_map_over_sections
105 #suppress 110 in bfd_map_over_sections
106 #suppress 112 in bfd_map_over_sections
107 #suppress 530
108 #suppress 590 in swap_exec_header
109 #suppress 590 in _bfd_dummy_core_file_matches_executable_p
110 #suppress 590 in bfd_dont_truncate_arname
111 #suppress 590 on ignore
112 #suppress 590 on abfd
113 #setopt load_flags $(CFLAGS)
114 #load $(CFILES)
115
116
117 #-----------------------------------------------------------------------------
118 # 'STANDARD' GNU/960 TARGETS BELOW THIS POINT
119 #
120 # 'VERSION' file must be present and contain a string of the form "x.y"
121 #-----------------------------------------------------------------------------
122
123 ver960.c: FORCE
124 rm -f ver960.c
125 echo "char ${TARG}_ver[]= \"${TARG} `cat VERSION`, `date`\";" > ver960.c
126
127
128 # This target should be invoked before building a new release.
129 # 'VERSION' file must be present and contain a string of the form "x.y"
130 #
131 roll:
132 @V=`cat VERSION` ; \
133 MAJ=`sed 's/\..*//' VERSION` ; \
134 MIN=`sed 's/.*\.//' VERSION` ; \
135 V=$$MAJ.`expr $$MIN + 1` ; \
136 rm -f VERSION ; \
137 echo $$V >VERSION ; \
138 echo Version $$V
139
140 # Dummy target to force execution of dependent targets.
141 #
142 force:
143
144 install:
145
146 # Target to uncomment host-specific lines in this makefile. Such lines must
147 # have the following string beginning in column 1: #__<hostname>__#
148 # Original Makefile is backed up as 'Makefile.old'.
149 #
150 # Invoke with: make make HOST=xxx
151 #
152 make:
153 -@if test $(HOST)x = x ; then \
154 echo '\aSpecify "make make HOST=???"'; \
155 exit 1; \
156 fi ; \
157 grep -s "^#The next line was generated by 'make make'" Makefile; \
158 if test $$? = 0 ; then \
159 echo "\aMakefile has already been processed with 'make make'";\
160 exit 1; \
161 fi ; \
162 mv -f Makefile Makefile.old; \
163 echo "#The next line was generated by 'make make'" >Makefile ; \
164 echo "HOST=$(HOST)" >>Makefile ; \
165 echo >>Makefile ; \
166 sed "s/^#__$(HOST)__#//" < Makefile.old >>Makefile
167
168 Makefile: $(srcdir)/Makefile.in $(srcdir)/configure
169 (cd $(srcdir) ; \
170 ./configure +norecurse \
171 +destdir=$(destdir) \
172 `if [ "$(srcdir)" != "." ] ; then echo +f; fi` \
173 $(host) +target=$(target);) ; make dep
174
175 dep: $(CFILES)
176 mkdep $(CFLAGS) $?
This page took 0.033889 seconds and 5 git commands to generate.