3 # Makefile.tpl, Makefile.in, Makefile
4 # Copyright 2002 Free Software Foundation
6 # This file is part of GDB.
8 # This file is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 exec_prefix = @exec_prefix@
31 includedir = @includedir@
33 this_srcdir = @this_srcdir@
35 man1dir = $(mandir)/man1
36 man2dir = $(mandir)/man2
37 man3dir = $(mandir)/man3
38 man4dir = $(mandir)/man4
39 man5dir = $(mandir)/man5
40 man6dir = $(mandir)/man6
41 man7dir = $(mandir)/man7
42 man8dir = $(mandir)/man8
43 man9dir = $(mandir)/man9
44 tooldir = $(exec_prefix)
46 subconfigure_args = @subconfigure_args@
48 # Should it be INSTALL = @INSTALL@ -c ?
49 # The old makefile passed the -c argument.
51 INSTALL_PROGRAM = $(INSTALL)
52 INSTALL_DATA = $(INSTALL)
56 install: @install_subdirs@
58 mostlyclean: @mostlyclean_subdirs@
59 clean: @clean_subdirs@
61 # These should always clean all sudirectories...
62 distclean: distclean-spu distclean-wince
63 maintainer-clean: maintainer-clean-spu maintainer-clean-wince
65 -rm -f *~ core *.o a.out
66 maintainer-clean distclean:
67 -rm -f Makefile config.status config.log config.cache *~ core *.o a.out
74 .PHONY: all install clean mostlyclean distclean maintainer-clean
75 .PHONY: info install-info clean-info dvi
78 # Rules for regenerating this Makefile
79 Makefile: $(srcdir)/Makefile.in config.status
82 $(srcdir)/Makefile.in: $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
83 cd $(srcdir) && autogen Makefile.def
85 config.status: $(srcdir)/configure
86 ./config.status --recheck
88 $(srcdir)/configure: $(srcdir)/configure.in
89 cd $(srcdir) && autoconf
91 # Miscellaneous variable setting
97 "AR_FLAGS=$(AR_FLAGS)" \
99 "CROSS_CFLAGS=$(CROSS_CFLAGS)" \
100 "TARGET_CFLAGS=$(TARGET_CFLAGS)" \
101 "INCLUDES=$(INCLUDES)"
103 # Everything from here on down is generated by FOR loops in autogen.
107 all-spu: configure-spu
108 cd spu && $(MAKE) $(FLAGS_TO_PASS) all
111 all-wince: configure-wince
112 cd wince && $(MAKE) $(FLAGS_TO_PASS) all
117 install-spu: configure-spu
118 cd spu && $(MAKE) install
121 install-wince: configure-wince
122 cd wince && $(MAKE) install
123 .PHONY: install-wince
125 # Glue for mostlyclean.
127 mostlyclean-spu: configure-spu
128 cd spu && $(MAKE) mostlyclean
129 .PHONY: mostlyclean-spu
131 mostlyclean-wince: configure-wince
132 cd wince && $(MAKE) mostlyclean
133 .PHONY: mostlyclean-wince
137 clean-spu: configure-spu
138 cd spu && $(MAKE) clean
141 clean-wince: configure-wince
142 cd wince && $(MAKE) clean
145 # Glue for distclean.
147 distclean-spu: configure-spu
148 -cd spu && $(MAKE) distclean
149 .PHONY: distclean-spu
151 distclean-wince: configure-wince
152 -cd wince && $(MAKE) distclean
153 .PHONY: distclean-wince
155 # Glue for maintainer-clean.
157 maintainer-clean-spu: configure-spu
158 -cd spu && $(MAKE) maintainer-clean
159 .PHONY: maintainer-clean-spu
161 maintainer-clean-wince: configure-wince
162 -cd wince && $(MAKE) maintainer-clean
163 .PHONY: maintainer-clean-wince
165 # Glue for configure.
167 configure-spu: spu/Makefile
168 spu/Makefile: config.status
169 test -d spu || mkdir spu ; \
170 cd spu && $(this_srcdir)/spu/configure $(subconfigure_args)/spu
171 .PHONY: configure-spu
173 configure-wince: wince/Makefile
174 wince/Makefile: config.status
175 test -d wince || mkdir wince ; \
176 cd wince && $(this_srcdir)/wince/configure $(subconfigure_args)/wince
177 .PHONY: configure-wince