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