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