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