recording file death
[deliverable/binutils-gdb.git] / opcodes / Makefile.in
CommitLineData
add1fb05
SC
1# Makefile template for Configure for the opcodes library.
2# Copyright (C) 1990, 1991, 1992 Free Software Foundation, Inc.
3# Written by Cygnus Support.
4#
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software
17# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
19srcdir = .
20
21prefix = /usr/local
22
23exec_prefix = $(prefix)
24bindir = $(exec_prefix)/bin
25libdir = $(exec_prefix)/lib
26
27datadir = $(prefix)/lib
28mandir = $(prefix)/man
29man1dir = $(mandir)/man1
30man2dir = $(mandir)/man2
31man3dir = $(mandir)/man3
32man4dir = $(mandir)/man4
33man5dir = $(mandir)/man5
34man6dir = $(mandir)/man6
35man7dir = $(mandir)/man7
36man8dir = $(mandir)/man8
37man9dir = $(mandir)/man9
38infodir = $(prefix)/info
39includedir = $(prefix)/include
40oldincludedir =
41docdir = $(srcdir)/doc
42
43SHELL = /bin/sh
44
45INSTALL = install -c
46INSTALL_PROGRAM = $(INSTALL)
47INSTALL_DATA = $(INSTALL)
48
49AR = ar
50AR_FLAGS = qc
51CFLAGS = -g
52BISON = bison
53MAKEINFO = makeinfo
54RANLIB = ranlib
55
1b2f5691 56INCDIR = $(srcdir)/../include $(srcdir)/../bfd
add1fb05
SC
57CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
58DEP = mkdep
59
60
794a16b0 61TARGETLIB = libopcodes.a
add1fb05
SC
62
63
64DIS_LIBS = z8k-dis.o
65
794a16b0 66OFILES = $(DIS_LIBS) sparc-opc.o
add1fb05
SC
67#### host and target dependent Makefile fragments come in here.
68###
69
70FLAGS_TO_PASS = \
71 "against=$(against)" \
72 "AR=$(AR)" \
73 "AR_FLAGS=$(AR_FLAGS)" \
74 "CC=$(CC)" \
75 "CFLAGS=$(CFLAGS)" \
76 "RANLIB=$(RANLIB)" \
77 "MAKEINFO=$(MAKEINFO)" \
78 "INSTALL=$(INSTALL)" \
79 "INSTALL_DATA=$(INSTALL_DATA)" \
80 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
81 "BISON=$(BISON)"
82
83.c.o:
84 $(CC) -c $(CFLAGS) $(HDEFINES) $(TDEFINES) $(CSEARCH) $(CSWITCHES) $<
85
86
87# C source files that correspond to .o's.
794a16b0 88CFILES = z8k-dis.c
add1fb05
SC
89
90STAGESTUFF = $(TARGETLIB) $(OFILES)
91
92all: $(TARGETLIB)
93
94
95.NOEXPORT:
96
97check:
98
e5bc6aaf 99info:
add1fb05 100clean-info:
e5bc6aaf 101install-info:
add1fb05
SC
102
103# HDEPFILES comes from the host config; TDEPFILES from the target config.
104
105
106$(TARGETLIB): $(OFILES)
107 rm -f $(TARGETLIB)
108 $(AR) $(AR_FLAGS) $(TARGETLIB) $(OFILES)
109 $(RANLIB) $(TARGETLIB)
110
68ca3238
JG
111# Circumvent Sun Make bug with VPATH.
112sparc-opc.o: sparc-opc.c
113
add1fb05
SC
114tags etags: TAGS
115
116TAGS: force
117 etags $(INCDIR)/*.h $(srcdir)/*.h $(srcdir)/*.c
118
119clean:
120 rm -f *.[oa] *~ core *.E *.p *.ip aout-params.h gen-aout
add1fb05
SC
121
122clobber realclean: clean
123 rm -f libbfd.a TAGS
add1fb05
SC
124
125# Mark everything as depending on config.status, since the timestamp on
126# sysdep.h might actually move backwards if we reconfig and relink it
127# to a different hosts/h-xxx.h file. This will force a recompile anyway.
128RECONFIG = config.status
129
130
131
132# This target should be invoked before building a new release.
133# 'VERSION' file must be present and contain a string of the form "x.y"
134#
135roll:
136 @V=`cat VERSION` ; \
137 MAJ=`sed 's/\..*//' VERSION` ; \
138 MIN=`sed 's/.*\.//' VERSION` ; \
139 V=$$MAJ.`expr $$MIN + 1` ; \
140 rm -f VERSION ; \
141 echo $$V >VERSION ; \
142 echo Version $$V
143
144# Dummy target to force execution of dependent targets.
145#
146force:
147
148install:
149 -parent=`echo $(libdir)|sed -e 's@/[^/]*$$@@'`; \
150 if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
151 -if [ -d $(libdir) ] ; then true ; else mkdir $(libdir) ; fi
1b2f5691 152 $(INSTALL_DATA) $(TARGETLIB) $(libdir)/libopcodes.a
794a16b0
KR
153 $(RANLIB) $(libdir)/libopcodes.a
154
add1fb05
SC
155Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
156 $(SHELL) ./config.status
157
158dep: $(CFILES)
159 mkdep $(CFLAGS) $?
160
161
162# What appears below is generated by a hacked mkdep using gcc -MM.
163
164# DO NOT DELETE THIS LINE -- mkdep uses it.
165# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
166
167
168# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
169
This page took 0.034611 seconds and 4 git commands to generate.