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