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