3 # Run 'autogen Makefile.def' in the same directory to regenerate Makefile.in
5 # This file is mostly an ordinary Makefile.in.
6 # Certain repetitive sections are generated by autogen;
7 # the parts with [+ and +] around them are the macros.
9 # Use .in as the suffix for the generated file
11 # make sure we don't use csh:
12 (setenv "SHELL" "/bin/sh")
16 # Makefile.tpl, Makefile.in, Makefile
17 # Copyright 2002 Free Software Foundation
19 # This file is part of GDB.
21 # This file is free software; you can redistribute it and/or modify
22 # it under the terms of the GNU General Public License as published by
23 # the Free Software Foundation; either version 2 of the License, or
24 # (at your option) any later version.
26 # This program is distributed in the hope that it will be useful,
27 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 # GNU General Public License for more details.
31 # You should have received a copy of the GNU General Public License
32 # along with this program; if not, write to the Free Software
33 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
38 exec_prefix = @exec_prefix@
44 includedir = @includedir@
46 this_srcdir = @this_srcdir@
48 man1dir = $(mandir)/man1
49 man2dir = $(mandir)/man2
50 man3dir = $(mandir)/man3
51 man4dir = $(mandir)/man4
52 man5dir = $(mandir)/man5
53 man6dir = $(mandir)/man6
54 man7dir = $(mandir)/man7
55 man8dir = $(mandir)/man8
56 man9dir = $(mandir)/man9
57 tooldir = $(exec_prefix)
59 subconfigure_args = @subconfigure_args@
61 # Should it be INSTALL = @INSTALL@ -c ?
62 # The old makefile passed the -c argument.
64 INSTALL_PROGRAM = $(INSTALL)
65 INSTALL_DATA = $(INSTALL)
69 install: @install_subdirs@
71 mostlyclean: @mostlyclean_subdirs@
72 clean: @clean_subdirs@
74 # These should always clean all sudirectories...
75 distclean: [+ FOR subdirs +]distclean-[+subdir+] [+ ENDFOR subdirs +]
76 maintainer-clean: [+ FOR subdirs +]maintainer-clean-[+subdir+] [+ ENDFOR subdirs +]
78 -rm -f *~ core *.o a.out
79 maintainer-clean distclean:
80 -rm -f Makefile config.status config.log config.cache *~ core *.o a.out
87 .PHONY: all install clean mostlyclean distclean maintainer-clean
88 .PHONY: info install-info clean-info dvi
91 # Rules for regenerating this Makefile
92 Makefile: $(srcdir)/Makefile.in config.status
95 $(srcdir)/Makefile.in: $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
96 cd $(srcdir) && autogen Makefile.def
98 config.status: $(srcdir)/configure
99 ./config.status --recheck
101 # Miscellaneous variable setting
107 "AR_FLAGS=$(AR_FLAGS)" \
109 "CROSS_CFLAGS=$(CROSS_CFLAGS)" \
110 "TARGET_CFLAGS=$(TARGET_CFLAGS)" \
111 "INCLUDES=$(INCLUDES)"
113 # Everything from here on down is generated by FOR loops in autogen.
115 # Glue for [+target+].
117 [+target+]-[+subdir+]: configure-[+subdir+]
118 [+makeline_flag+]cd [+subdir+] && $(MAKE) [+target_flags+] [+target+]
119 .PHONY: [+target+]-[+subdir+]
120 [+ ENDFOR subdirs +][+ ENDFOR targets +]
121 # Glue for configure.
123 configure-[+subdir+]: [+subdir+]/Makefile
124 [+subdir+]/Makefile: config.status
125 test -d [+subdir+] || mkdir [+subdir+] ; \
126 cd [+subdir+] && $(this_srcdir)/[+subdir+]/configure $(subconfigure_args)/[+subdir+]
127 .PHONY: configure-[+subdir+]