OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [gdbserver/] [Makefile] - Blame information for rev 1765

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.