1 #Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1999
2 #Free Software Foundation, Inc.
4 # This file is part of GDB.
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.
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.
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.
24 exec_prefix = @exec_prefix@
26 host_alias = @host_alias@
27 target_alias = @target_alias@
28 program_transform_name = @program_transform_name@
31 tooldir = $(libdir)/$(target_alias)
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
45 htmldir = $(prefix)/html
46 includedir = @includedir@
51 INSTALL_PROGRAM = @INSTALL_PROGRAM@
52 INSTALL_DATA = @INSTALL_DATA@
55 if [ -f ../../gcc/xgcc ] ; then \
56 echo ../../gcc/xgcc -B../../gcc/; \
58 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
61 NLMCONV_FOR_TARGET = ` \
62 if [ -f ../../binutils/nlmconv ] ; then \
63 echo ../../binutils/nlmconv; \
65 t='$(program_transform_name)'; echo nlmconv | sed -e '' $$t; \
68 # All the includes used for CFLAGS and for lint.
69 INCLUDE_CFLAGS = -I. -I${srcdir}
71 # CFLAGS is specifically reserved for setting from the command line
72 # when running make. I.E. "make CFLAGS=-Wmissing-prototypes".
74 # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
75 INTERNAL_CFLAGS = ${CFLAGS} ${INCLUDE_CFLAGS} ${USER_CFLAGS}
78 # Perhaps should come from parent Makefile
79 VERSION = gdbserve-4.12
82 # target-dependent makefile fragment come in here.
83 @target_makefile_frag@
84 # End target-dependent makefile fragment
86 # All source files that go into linking GDB remote server.
88 DEPFILES = $(GDBSERVE_DEPFILES)
90 SOURCES = $(ALLDEPFILES)
91 TAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS}
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.
96 ${CC_FOR_TARGET} -c ${INTERNAL_CFLAGS} $<
99 ${CC_FOR_TARGET} -c ${INTERNAL_CFLAGS} $<
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.
108 install: all install-only
110 $(INSTALL) gdbserve.nlm $(bindir)/gdbserve.nlm
113 rm -f $(bindir)/gdbserve.nlm
123 gdbserve.nlm: gdbserve.O $(srcdir)/gdbserve.def
124 ${NLMCONV_FOR_TARGET} -T $(srcdir)/gdbserve.def
126 gdbserve.O: prelude.o gdbserve.o $(TDEPFILES)
127 ${CC_FOR_TARGET} $(LDFLAGS) -r -o gdbserve.O prelude.o gdbserve.o ${TDEPFILES}
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
133 etags `find ${srcdir}/../config -name $(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/' ; \
145 rm -f *.o ${ADD_FILES} *~
146 rm -f gdbserve.O gdbserve.nlm core make.log
148 distclean: clean TAGS
149 rm -f config.log config.cache config.status
152 maintainer-clean realclean: clean
154 rm -f config.log config.cache config.status
157 Makefile: Makefile.in config.status @target_makefile_frag_path@
158 $(SHELL) config.status
160 config.status: configure
161 $(SHELL) config.status --recheck
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)
171 # GNU Make 3.63 has a different problem: it keeps tacking command line
172 # overrides onto the definition of $(MAKE). This variable setting
176 # This is the end of "Makefile.in".