# # Makefile.tpl, Makefile.in, Makefile # Copyright 2002 Free Software Foundation # # This file is part of GDB. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. SHELL = /bin/sh prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ libdir = @libdir@ datadir = @datadir@ mandir = @mandir@ infodir = @infodir@ includedir = @includedir@ srcdir = @srcdir@ this_srcdir = @this_srcdir@ man1dir = $(mandir)/man1 man2dir = $(mandir)/man2 man3dir = $(mandir)/man3 man4dir = $(mandir)/man4 man5dir = $(mandir)/man5 man6dir = $(mandir)/man6 man7dir = $(mandir)/man7 man8dir = $(mandir)/man8 man9dir = $(mandir)/man9 tooldir = $(exec_prefix) subconfigure_args = @subconfigure_args@ # Should it be INSTALL = @INSTALL@ -c ? # The old makefile passed the -c argument. INSTALL = @INSTALL@ INSTALL_PROGRAM = $(INSTALL) INSTALL_DATA = $(INSTALL) # public targets all: @all_subdirs@ install: @install_subdirs@ mostlyclean: @mostlyclean_subdirs@ clean: @clean_subdirs@ # These should always clean all sudirectories... distclean: distclean-mep distclean-spu distclean-wince maintainer-clean: maintainer-clean-mep maintainer-clean-spu maintainer-clean-wince clean mostlyclean: -rm -f *~ core *.o a.out maintainer-clean distclean: -rm -f Makefile config.status config.log config.cache *~ core *.o a.out info: install-info: clean-info: dvi: .PHONY: all install clean mostlyclean distclean maintainer-clean .PHONY: info install-info clean-info dvi .NOEXPORT: # Rules for regenerating this Makefile Makefile: $(srcdir)/Makefile.in config.status ./config.status $(srcdir)/Makefile.in: $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def cd $(srcdir) && autogen Makefile.def config.status: $(srcdir)/configure ./config.status --recheck # Miscellaneous variable setting AR_FLAGS = qv FLAGS_TO_PASS = \ "CC=$(CC)" \ "CFLAGS=$(CFLAGS)" \ "AR=$(AR)" \ "AR_FLAGS=$(AR_FLAGS)" \ "AS=$(AS)" \ "CROSS_CFLAGS=$(CROSS_CFLAGS)" \ "TARGET_CFLAGS=$(TARGET_CFLAGS)" \ "INCLUDES=$(INCLUDES)" # Everything from here on down is generated by FOR loops in autogen. # Glue for all. all-mep: configure-mep cd mep && $(MAKE) $(FLAGS_TO_PASS) all .PHONY: all-mep all-spu: configure-spu cd spu && $(MAKE) $(FLAGS_TO_PASS) all .PHONY: all-spu all-wince: configure-wince cd wince && $(MAKE) $(FLAGS_TO_PASS) all .PHONY: all-wince # Glue for install. install-mep: configure-mep cd mep && $(MAKE) install .PHONY: install-mep install-spu: configure-spu cd spu && $(MAKE) install .PHONY: install-spu install-wince: configure-wince cd wince && $(MAKE) install .PHONY: install-wince # Glue for mostlyclean. mostlyclean-mep: configure-mep cd mep && $(MAKE) mostlyclean .PHONY: mostlyclean-mep mostlyclean-spu: configure-spu cd spu && $(MAKE) mostlyclean .PHONY: mostlyclean-spu mostlyclean-wince: configure-wince cd wince && $(MAKE) mostlyclean .PHONY: mostlyclean-wince # Glue for clean. clean-mep: configure-mep cd mep && $(MAKE) clean .PHONY: clean-mep clean-spu: configure-spu cd spu && $(MAKE) clean .PHONY: clean-spu clean-wince: configure-wince cd wince && $(MAKE) clean .PHONY: clean-wince # Glue for distclean. distclean-mep: configure-mep -cd mep && $(MAKE) distclean .PHONY: distclean-mep distclean-spu: configure-spu -cd spu && $(MAKE) distclean .PHONY: distclean-spu distclean-wince: configure-wince -cd wince && $(MAKE) distclean .PHONY: distclean-wince # Glue for maintainer-clean. maintainer-clean-mep: configure-mep -cd mep && $(MAKE) maintainer-clean .PHONY: maintainer-clean-mep maintainer-clean-spu: configure-spu -cd spu && $(MAKE) maintainer-clean .PHONY: maintainer-clean-spu maintainer-clean-wince: configure-wince -cd wince && $(MAKE) maintainer-clean .PHONY: maintainer-clean-wince # Glue for configure. configure-mep: mep/Makefile mep/Makefile: config.status test -d mep || mkdir mep ; \ cd mep && $(this_srcdir)/mep/configure $(subconfigure_args)/mep .PHONY: configure-mep configure-spu: spu/Makefile spu/Makefile: config.status test -d spu || mkdir spu ; \ cd spu && $(this_srcdir)/spu/configure $(subconfigure_args)/spu .PHONY: configure-spu configure-wince: wince/Makefile wince/Makefile: config.status test -d wince || mkdir wince ; \ cd wince && $(this_srcdir)/wince/configure $(subconfigure_args)/wince .PHONY: configure-wince