import gdb-1999-06-28 snapshot
[deliverable/binutils-gdb.git] / gdb / gdbserver / Makefile.in
CommitLineData
c906108c
SS
1#Copyright 1989, 90, 91, 92, 93, 94, 95, 96, 1997
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
20prefix = /usr/local
21
22program_transform_name =
23exec_prefix = $(prefix)
24bindir = $(exec_prefix)/bin
25libdir = $(exec_prefix)/lib
26tooldir = $(libdir)/$(target_alias)
27
28datadir = $(prefix)/share
29mandir = $(prefix)/man
30man1dir = $(mandir)/man1
31man2dir = $(mandir)/man2
32man3dir = $(mandir)/man3
33man4dir = $(mandir)/man4
34man5dir = $(mandir)/man5
35man6dir = $(mandir)/man6
36man7dir = $(mandir)/man7
37man8dir = $(mandir)/man8
38man9dir = $(mandir)/man9
39infodir = $(prefix)/info
085dd6e6 40htmldir = $(prefix)/html
c906108c
SS
41includedir = $(prefix)/include
42
43SHELL = /bin/sh
44
45INSTALL = `cd $(srcdir)/../..;pwd`/install-sh -c
46INSTALL_PROGRAM = $(INSTALL)
47INSTALL_DATA = $(INSTALL)
48
49AR = ar
50AR_FLAGS = qv
51RANLIB = ranlib
52
53# If you are compiling with GCC, make sure that either 1) You use the
54# -traditional flag, or 2) You have the fixed include files where GCC
55# can reach them. Otherwise the ioctl calls in inflow.c
56# will be incorrectly compiled. The "fixincludes" script in the gcc
57# distribution will fix your include files up.
58#CC=cc
59#CC=gcc -traditional
60GCC=gcc
61
62# Directory containing source files. Don't clean up the spacing,
63# this exact string is matched for by the "configure" script.
64srcdir = .
65
66# It is also possible that you will need to add -I/usr/include/sys to the
67# CFLAGS section if your system doesn't have fcntl.h in /usr/include (which
68# is where it should be according to Posix).
69
70# Set this up with gcc if you have gnu ld and the loader will print out
71# line numbers for undefinded refs.
72#CC-LD=gcc -static
73CC-LD=${CC}
74
75# Where is the "include" directory? Traditionally ../include or ./include
76INCLUDE_DIR = ${srcdir}/../../include
77INCLUDE_DEP = $$(INCLUDE_DIR)
78
79# Where are the BFD library?
80BFD_DIR = ../../bfd
81BFD = $(BFD_DIR)/libbfd.a
82BFD_SRC = $(srcdir)/$(BFD_DIR)
83BFD_CFLAGS = -I$(BFD_DIR) -I$(BFD_SRC)
84
85# Where is the source dir for the READLINE library? Traditionally in .. or .
86# (For the binary library built from it, we use ${READLINE_DIR}${subdir}.)
87READLINE_DIR = ${srcdir}/../readline
88READLINE_DEP = $$(READLINE_DIR)
89
90# All the includes used for CFLAGS and for lint.
91# -I. for config files.
92# -I${srcdir} possibly for regex.h also.
93# -I${srcdir}/config for more generic config files.
94INCLUDE_CFLAGS = -I. -I${srcdir} -I${srcdir}/.. -I${srcdir}/../config -I$(INCLUDE_DIR)
95
96# M{H,T}_CFLAGS, if defined, has host- and target-dependent CFLAGS
97# from the config/ directory.
98GLOBAL_CFLAGS = ${MT_CFLAGS} ${MH_CFLAGS}
99#PROFILE_CFLAGS = -pg
100
101# CFLAGS is specifically reserved for setting from the command line
102# when running make. I.E. "make CFLAGS=-Wmissing-prototypes".
103CFLAGS = -g
104# INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
105INTERNAL_CFLAGS = ${CFLAGS} ${GLOBAL_CFLAGS} ${PROFILE_CFLAGS} \
106 ${BFD_CFLAGS} ${INCLUDE_CFLAGS}
107
108# LDFLAGS is specifically reserved for setting from the command line
109# when running make.
110
111# Perhaps should come from parent Makefile
112VERSION = gdbserver-4.12.3
113DIST=gdb
114
115LINT=/usr/5bin/lint
116LINTFLAGS= $(BFD_CFLAGS)
117
118# Host and target-dependent makefile fragments come in here.
119####
120# End of host and target-dependent makefile fragments
121
122# All source files that go into linking GDB remote server.
123
124SFILES = $(srcdir)/low-lynx.c $(srcdir)/low-sparc.c $(srcdir)/low-sun3.c \
125 $(srcdir)/low-hppabsd.c \
126 $(srcdir)/utils.c $(srcdir)/server.c $(srcdir)/remote-utils.c
127
128DEPFILES = $(GDBSERVER_DEPFILES)
129
130SOURCES = $(SFILES) $(ALLDEPFILES)
131TAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS}
132
133OBS = utils.o $(GDBSERVER_DEPFILES) server.o remote-utils.o
134
135# Prevent Sun make from putting in the machine type. Setting
136# TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1.
137.c.o:
138 ${CC} -c ${INTERNAL_CFLAGS} $<
139
140all: gdbserver gdbreplay
141
142# Traditionally "install" depends on "all". But it may be useful
143# not to; for example, if the user has made some trivial change to a
144# source file and doesn't care about rebuilding or just wants to save the
145# time it takes for make to check that all is up to date.
146# install-only is intended to address that need.
147install: all install-only
148install-only:
149 n=`echo gdbserver | sed '$(program_transform_name)'`; \
150 if [ x$$n = x ]; then n=gdbserver; else true; fi; \
151 $(INSTALL_PROGRAM) gdbserver $(bindir)/$$n; \
152 $(INSTALL_DATA) $(srcdir)/gdbserver.1 $(man1dir)/$$n.1
153
154uninstall: force
155 n=`echo gdbserver | sed '$(program_transform_name)'`; \
156 if [ x$$n = x ]; then n=gdbserver; else true; fi; \
157 rm -f $(bindir)/$$n $(man1dir)/$$n.1
158
159installcheck:
160check:
161info dvi:
162install-info:
085dd6e6
JM
163html:
164install-html:
c906108c
SS
165clean-info:
166
167gdbserver: $(OBS) ${ADD_DEPS} ${CDEPS}
168 rm -f gdbserver
169 ${CC-LD} $(GLOBAL_CFLAGS) $(LDFLAGS) -o gdbserver $(OBS) \
170 $(GDBSERVER_LIBS) $(XM_CLIBS)
171
172gdbreplay: gdbreplay.o
173 rm -f gdbreplay
174 ${CC-LD} $(GLOBAL_CFLAGS) $(LDFLAGS) -o gdbreplay gdbreplay.o \
175 $(XM_CLIBS)
176
177config.status:
178 @echo "You must configure gdbserver. Look at the README file for details."
179 @false
180
181# Put the proper machine-specific files first, so M-. on a machine
182# specific routine gets the one for the correct machine.
183# The xyzzy stuff below deals with empty DEPFILES
184TAGS: ${TAGFILES}
185 etags `find ${srcdir}/../config -name $(TM_FILE) -print` \
186 `find ${srcdir}/../config -name ${XM_FILE} -print` \
187 `find ${srcdir}/../config -name ${NAT_FILE} -print` \
188 `for i in yzzy ${DEPFILES}; do \
189 if [ x$$i != xyzzy ]; then \
190 echo ${srcdir}/$$i | sed -e 's/\.o$$/\.c/' ; \
191 fi; \
192 done` \
193 ${TAGFILES}
194tags: TAGS
195
196clean:
197 rm -f *.o ${ADD_FILES} *~
198 rm -f gdbserver core make.log
199
200distclean: clean
201 rm -f nm.h tm.h xm.h config.status
202 rm -f Makefile
203
204maintainer-clean realclean: clean
205 rm -f nm.h tm.h xm.h config.status
206 rm -f Makefile
207
208STAGESTUFF=${OBS} ${TSOBS} ${NTSOBS} ${ADD_FILES} init.c init.o version.c gdb
209
210Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
211 $(SHELL) ./config.status
212
213force:
214
215version.c: Makefile
216 echo 'char *version = "$(VERSION)";' >version.c
217
218# GNU Make has an annoying habit of putting *all* the Makefile variables
219# into the environment, unless you include this target as a circumvention.
220# Rumor is that this will be fixed (and this target can be removed)
221# in GNU Make 4.0.
222.NOEXPORT:
223
224# GNU Make 3.63 has a different problem: it keeps tacking command line
225# overrides onto the definition of $(MAKE). This variable setting
226# will remove them.
227MAKEOVERRIDES=
228
229## This is ugly, but I don't want GNU make to put these variables in
230## the environment. Older makes will see this as a set of targets
231## with no dependencies and no actions.
232unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET :
233
234server.o : ${srcdir}/server.c ${srcdir}/server.h
235remote-utils.o : ${srcdir}/remote-utils.c ${srcdir}/server.h
236low-linux.o : ${srcdir}/low-linux.c ${srcdir}/server.h
237low-lynx.o : ${srcdir}/low-lynx.c ${srcdir}/server.h
238low-sim.o : ${srcdir}/low-sim.c ${srcdir}/server.h
239low-sparc.o : $(srcdir)/low-sparc.c $(srcdir)/server.h
240low-sun3.o : $(srcdir)/low-sun3.c $(srcdir)/server.h
241low-hppabsd.o : $(srcdir)/low-hppabsd.c $(srcdir)/server.h
242utils.o : ${srcdir}/utils.c ${srcdir}/server.h
243
244# This is the end of "Makefile.in".
This page took 0.036831 seconds and 4 git commands to generate.