1#Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1999 2#Free Software Foundation, Inc. 3 4# This file is part of GDB. 5 6# This program is free software; you can redistribute it and/or modify 7# it under the terms of the GNU General Public License as published by 8# the Free Software Foundation; either version 2 of the License, or 9# (at your option) any later version. 10# 11# This program is distributed in the hope that it will be useful, 12# but WITHOUT ANY WARRANTY; without even the implied warranty of 13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14# GNU General Public License for more details. 15# 16# You should have received a copy of the GNU General Public License 17# along with this program; if not, write to the Free Software 18# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 20srcdir = @srcdir@ 21VPATH = @srcdir@ 22 23prefix = @prefix@ 24exec_prefix = @exec_prefix@ 25 26host_alias = @host_alias@ 27target_alias = @target_alias@ 28program_transform_name = @program_transform_name@ 29bindir = @bindir@ 30libdir = @libdir@ 31tooldir = $(libdir)/$(target_alias) 32 33datadir = @datadir@ 34mandir = @mandir@ 35man1dir = $(mandir)/man1 36man2dir = $(mandir)/man2 37man3dir = $(mandir)/man3 38man4dir = $(mandir)/man4 39man5dir = $(mandir)/man5 40man6dir = $(mandir)/man6 41man7dir = $(mandir)/man7 42man8dir = $(mandir)/man8 43man9dir = $(mandir)/man9 44infodir = @infodir@ 45htmldir = $(prefix)/html 46includedir = @includedir@ 47 48SHELL = @SHELL@ 49 50INSTALL = @INSTALL@ 51INSTALL_PROGRAM = @INSTALL_PROGRAM@ 52INSTALL_DATA = @INSTALL_DATA@ 53 54CC_FOR_TARGET = ` \ 55 if [ -f ../../gcc/xgcc ] ; then \ 56 echo ../../gcc/xgcc -B../../gcc/; \ 57 else \ 58 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \ 59 fi` 60 61NLMCONV_FOR_TARGET = ` \ 62 if [ -f ../../binutils/nlmconv ] ; then \ 63 echo ../../binutils/nlmconv; \ 64 else \ 65 t='$(program_transform_name)'; echo nlmconv | sed -e '' $$t; \ 66 fi` 67 68# All the includes used for CFLAGS and for lint. 69INCLUDE_CFLAGS = -I. -I${srcdir} 70 71# CFLAGS is specifically reserved for setting from the command line 72# when running make. I.E. "make CFLAGS=-Wmissing-prototypes". 73CFLAGS = -g 74# INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros. 75INTERNAL_CFLAGS = ${CFLAGS} ${INCLUDE_CFLAGS} ${USER_CFLAGS} 76LDFLAGS = $(CFLAGS) 77 78# Perhaps should come from parent Makefile 79VERSION = gdbserve-4.12 80DIST=gdb 81 82# target-dependent makefile fragment come in here. 83@target_makefile_frag@ 84# End target-dependent makefile fragment 85 86# All source files that go into linking GDB remote server. 87 88DEPFILES = $(GDBSERVE_DEPFILES) 89 90SOURCES = $(ALLDEPFILES) 91TAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS} 92 93# Prevent Sun make from putting in the machine type. Setting 94# TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1. 95.c.o: 96 ${CC_FOR_TARGET} -c ${INTERNAL_CFLAGS} $< 97 98.S.o: 99 ${CC_FOR_TARGET} -c ${INTERNAL_CFLAGS} $< 100 101all: gdbserve.nlm 102 103# Traditionally "install" depends on "all". But it may be useful 104# not to; for example, if the user has made some trivial change to a 105# source file and doesn't care about rebuilding or just wants to save the 106# time it takes for make to check that all is up to date. 107# install-only is intended to address that need. 108install: all install-only 109install-only: 110 $(INSTALL) gdbserve.nlm $(bindir)/gdbserve.nlm 111 112uninstall: force 113 rm -f $(bindir)/gdbserve.nlm 114 115installcheck: 116check: 117info dvi: 118install-info: 119clean-info: 120html: 121install-html: 122 123gdbserve.nlm: gdbserve.O $(srcdir)/gdbserve.def 124 ${NLMCONV_FOR_TARGET} -T $(srcdir)/gdbserve.def 125 126gdbserve.O: prelude.o gdbserve.o $(TDEPFILES) 127 ${CC_FOR_TARGET} $(LDFLAGS) -r -o gdbserve.O prelude.o gdbserve.o ${TDEPFILES} 128 129# Put the proper machine-specific files first, so M-. on a machine 130# specific routine gets the one for the correct machine. 131# The xyzzy stuff below deals with empty DEPFILES 132TAGS: ${TAGFILES} 133 etags `find ${srcdir}/../config -name $(DEPRECATED_TM_FILE) -print` \ 134 `find ${srcdir}/../config -name ${XM_FILE} -print` \ 135 `find ${srcdir}/../config -name ${NAT_FILE} -print` \ 136 `for i in yzzy ${DEPFILES}; do \ 137 if [ x$$i != xyzzy ]; then \ 138 echo ${srcdir}/$$i | sed -e 's/\.o$$/\.c/' ; \ 139 fi; \ 140 done` \ 141 ${TAGFILES} 142tags: TAGS 143 144clean: 145 rm -f *.o ${ADD_FILES} *~ 146 rm -f gdbserve.O gdbserve.nlm core make.log 147 148distclean: clean TAGS 149 rm -f config.log config.cache config.status 150 rm -f Makefile 151 152maintainer-clean realclean: clean 153 rm -f TAGS 154 rm -f config.log config.cache config.status 155 rm -f Makefile 156 157Makefile: Makefile.in config.status @target_makefile_frag_path@ 158 $(SHELL) config.status 159 160config.status: configure 161 $(SHELL) config.status --recheck 162 163force: 164 165# GNU Make has an annoying habit of putting *all* the Makefile variables 166# into the environment, unless you include this target as a circumvention. 167# Rumor is that this will be fixed (and this target can be removed) 168# in GNU Make 4.0. 169.NOEXPORT: 170 171# GNU Make 3.63 has a different problem: it keeps tacking command line 172# overrides onto the definition of $(MAKE). This variable setting 173# will remove them. 174MAKEOVERRIDES= 175 176# This is the end of "Makefile.in". 177