]>
Commit | Line | Data |
---|---|---|
e856060f | 1 | # Makefile template for Configure for the sim library. |
1ffd292b | 2 | # Copyright (C) 1993, 1995 Free Software Foundation, Inc. |
e856060f SC |
3 | # Written by Cygnus Support. |
4 | # | |
5 | # This file is part of BFD, the Binary File Descriptor library. | |
6 | # | |
7 | # This program is free software; you can redistribute it and/or modify | |
8 | # it under the terms of the GNU General Public License as published by | |
9 | # the Free Software Foundation; either version 2 of the License, or | |
10 | # (at your option) any later version. | |
11 | # | |
12 | # This program is distributed in the hope that it will be useful, | |
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | # GNU General Public License for more details. | |
16 | # | |
17 | # You should have received a copy of the GNU General Public License | |
18 | # along with this program; if not, write to the Free Software | |
9fc3ba75 | 19 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
e856060f | 20 | |
1ffd292b C |
21 | VPATH = @srcdir@ |
22 | srcdir = @srcdir@ | |
becbe1c3 | 23 | srcroot = $(srcdir)/.. |
e856060f | 24 | |
1ffd292b C |
25 | prefix = @prefix@ |
26 | exec_prefix = @exec_prefix@ | |
27 | ||
28 | host_alias = @host_alias@ | |
29 | target_alias = @target_alias@ | |
30 | program_transform_name = @program_transform_name@ | |
e856060f SC |
31 | bindir = $(exec_prefix)/bin |
32 | libdir = $(exec_prefix)/lib | |
1ffd292b | 33 | tooldir = $(libdir)/$(target_alias) |
e856060f SC |
34 | |
35 | datadir = $(prefix)/lib | |
36 | mandir = $(prefix)/man | |
37 | man1dir = $(mandir)/man1 | |
38 | man2dir = $(mandir)/man2 | |
39 | man3dir = $(mandir)/man3 | |
40 | man4dir = $(mandir)/man4 | |
41 | man5dir = $(mandir)/man5 | |
42 | man6dir = $(mandir)/man6 | |
43 | man7dir = $(mandir)/man7 | |
44 | man8dir = $(mandir)/man8 | |
45 | man9dir = $(mandir)/man9 | |
46 | infodir = $(prefix)/info | |
47 | includedir = $(prefix)/include | |
1ffd292b | 48 | docdir = $(datadir)/doc |
e856060f SC |
49 | |
50 | SHELL = /bin/sh | |
51 | ||
1ffd292b | 52 | # FIXME: Use autoconf's AC_PROG_INSTALL |
becbe1c3 | 53 | INSTALL = $${srcroot}/../install.sh -c |
e856060f SC |
54 | INSTALL_PROGRAM = $(INSTALL) |
55 | INSTALL_DATA = $(INSTALL) | |
becbe1c3 RP |
56 | INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)' |
57 | INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1 | |
58 | ||
9fc3ba75 | 59 | AR = @AR@ |
e856060f | 60 | AR_FLAGS = rc |
9fc3ba75 MM |
61 | CC = @CC@ |
62 | CFLAGS = @CFLAGS@ | |
63 | CC_FOR_BUILD = @CC_FOR_BUILD@ | |
e856060f | 64 | MAKEINFO = makeinfo |
9fc3ba75 | 65 | RANLIB = @RANLIB@ |
e856060f | 66 | |
1ffd292b C |
67 | SUBDIRS = @subdirs@ |
68 | ||
69 | .NOEXPORT: | |
becbe1c3 RP |
70 | MAKEOVERRIDES= |
71 | ||
1ffd292b | 72 | |
e856060f SC |
73 | INCDIR = $(srcdir)/../include |
74 | CSEARCH = -I. -I$(srcdir) -I$(INCDIR) | |
75 | DEP = mkdep | |
76 | ||
9fc3ba75 MM |
77 | # compilers to use to create programs which must be run in the build |
78 | # environment. | |
79 | CC_FOR_BUILD = $(CC) | |
47dba87a | 80 | |
1ffd292b C |
81 | #### Makefile fragments come in here. |
82 | # @target_makefile_frag@ | |
e856060f SC |
83 | ### |
84 | ||
85 | FLAGS_TO_PASS = \ | |
86 | "prefix=$(prefix)" \ | |
87 | "exec_prefix=$(exec_prefix)" \ | |
88 | "against=$(against)" \ | |
89 | "AR=$(AR)" \ | |
90 | "AR_FLAGS=$(AR_FLAGS)" \ | |
91 | "CC=$(CC)" \ | |
9fc3ba75 | 92 | "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ |
e856060f SC |
93 | "CFLAGS=$(CFLAGS)" \ |
94 | "RANLIB=$(RANLIB)" \ | |
95 | "MAKEINFO=$(MAKEINFO)" \ | |
96 | "INSTALL=$(INSTALL)" \ | |
97 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
9fc3ba75 MM |
98 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" |
99 | ||
100 | all: | |
c8cd6f23 ILT |
101 | @rootme=`pwd` ; export rootme ; \ |
102 | srcroot=`cd $(srcdir); pwd`; export srcroot; \ | |
103 | for dir in . ${SUBDIRS}; do \ | |
104 | if [ "$$dir" = "." ]; then \ | |
105 | true; \ | |
106 | elif [ -d $$dir ]; then \ | |
107 | (cd $$dir; $(MAKE) $(FLAGS_TO_PASS)); \ | |
108 | else true; fi; \ | |
109 | done | |
9fc3ba75 MM |
110 | |
111 | clean mostlyclean: | |
c8cd6f23 ILT |
112 | @rootme=`pwd` ; export rootme ; \ |
113 | srcroot=`cd $(srcdir); pwd`; export srcroot; \ | |
114 | for dir in . ${SUBDIRS}; do \ | |
115 | if [ "$$dir" = "." ]; then \ | |
116 | true; \ | |
117 | elif [ -d $$dir ]; then \ | |
118 | (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@); \ | |
119 | else true; fi; \ | |
120 | done | |
9fc3ba75 MM |
121 | |
122 | distclean maintainer-clean realclean: | |
c8cd6f23 ILT |
123 | @rootme=`pwd` ; export rootme ; \ |
124 | srcroot=`cd $(srcdir); pwd`; export srcroot; \ | |
125 | for dir in . ${SUBDIRS}; do \ | |
126 | if [ "$$dir" = "." ]; then \ | |
127 | true; \ | |
128 | elif [ -d $$dir ]; then \ | |
129 | (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) $@); \ | |
130 | else true; fi; \ | |
131 | done | |
1ffd292b | 132 | rm -f Makefile config.cache config.log config.status |
68dd3014 | 133 | |
9fc3ba75 | 134 | install: |
c8cd6f23 ILT |
135 | @rootme=`pwd` ; export rootme ; \ |
136 | srcroot=`cd $(srcdir); pwd`; export srcroot; \ | |
137 | for dir in . ${SUBDIRS}; do \ | |
138 | if [ "$$dir" = "." ]; then \ | |
139 | true; | |
140 | elif [ -d $$dir ]; then \ | |
141 | (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) install); \ | |
142 | else true; fi; \ | |
143 | done | |
9fc3ba75 | 144 | |
a86ea03f SC |
145 | info: |
146 | install-info: | |
b23eaace | 147 | dvi: |
e856060f | 148 | |
68dd3014 JK |
149 | ### |
150 | ### | |
47dba87a | 151 | |
68dd3014 JK |
152 | .PHONY: check installcheck |
153 | check: | |
154 | installcheck: | |
ad5fcc62 | 155 | |
1ffd292b C |
156 | TAGS: |
157 | ||
e856060f SC |
158 | force: |
159 | ||
9fc3ba75 | 160 | Makefile: Makefile.in config.status |
e856060f | 161 | $(SHELL) ./config.status |
1ffd292b C |
162 | |
163 | config.status: configure | |
164 | $(SHELL) ./config.status --recheck |