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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [gdb/] [gdbserver/] [Makefile] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# Generated automatically from Makefile.in by configure.
2
#Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
3
#1999, 2000
4
#Free Software Foundation, Inc.
5
 
6
# This file is part of GDB.
7
 
8
# This program is free software; you can redistribute it and/or modify
9
# it under the terms of the GNU General Public License as published by
10
# the Free Software Foundation; either version 2 of the License, or
11
# (at your option) any later version.
12
#
13
# This program is distributed in the hope that it will be useful,
14
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
# GNU General Public License for more details.
17
#
18
# You should have received a copy of the GNU General Public License
19
# along with this program; if not, write to the Free Software
20
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21
 
22
prefix = /usr/local
23
exec_prefix = ${prefix}
24
 
25
host_alias = sun4
26
target_alias = sun4
27
program_transform_name = s,x,x,
28
bindir = ${exec_prefix}/bin
29
libdir = ${exec_prefix}/lib
30
tooldir = $(libdir)/$(target_alias)
31
 
32
datadir = ${prefix}/share
33
mandir = ${prefix}/man
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 = ${prefix}/info
44
htmldir = $(prefix)/html
45
includedir = ${prefix}/include
46
 
47
SHELL = /bin/sh
48
 
49
INSTALL = /usr/bin/install -c
50
INSTALL_PROGRAM = ${INSTALL}
51
INSTALL_DATA = ${INSTALL} -m 644
52
 
53
AR = ar
54
AR_FLAGS = qv
55
RANLIB = ranlib
56
 
57
# If you are compiling with GCC, make sure that either 1) You use the
58
# -traditional flag, or 2) You have the fixed include files where GCC
59
# can reach them.  Otherwise the ioctl calls in inflow.c
60
# will be incorrectly compiled.  The "fixincludes" script in the gcc
61
# distribution will fix your include files up.
62
#CC=cc
63
#CC=gcc -traditional
64
GCC=gcc
65
 
66
# Directory containing source files.  Don't clean up the spacing,
67
# this exact string is matched for by the "configure" script.
68
srcdir = .
69
 
70
# It is also possible that you will need to add -I/usr/include/sys to the
71
# CFLAGS section if your system doesn't have fcntl.h in /usr/include (which
72
# is where it should be according to Posix).
73
 
74
# Set this up with gcc if you have gnu ld and the loader will print out
75
# line numbers for undefinded refs.
76
#CC-LD=gcc -static
77
CC-LD=${CC}
78
 
79
# Where is the "include" directory?  Traditionally ../include or ./include
80
INCLUDE_DIR =  ${srcdir}/../../include
81
INCLUDE_DEP = $$(INCLUDE_DIR)
82
 
83
# Where are the BFD library?
84
BFD_DIR = ../../bfd
85
BFD = $(BFD_DIR)/libbfd.a
86
BFD_SRC = $(srcdir)/$(BFD_DIR)
87
BFD_CFLAGS = -I$(BFD_DIR) -I$(BFD_SRC)
88
 
89
# Where is the source dir for the READLINE library?  Traditionally in .. or .
90
# (For the binary library built from it, we use ${READLINE_DIR}${subdir}.)
91
READLINE_DIR = ${srcdir}/../readline
92
READLINE_DEP = $$(READLINE_DIR)
93
 
94
# All the includes used for CFLAGS and for lint.
95
# -I. for config files.
96
# -I.. for gdb's config files (especially config.h)
97
# -I${srcdir} possibly for regex.h also.
98
# -I${srcdir}/config for more generic config files.
99
INCLUDE_CFLAGS = -I. -I.. -I${srcdir} -I${srcdir}/.. -I${srcdir}/../config -I$(INCLUDE_DIR)
100
 
101
# M{H,T}_CFLAGS, if defined, has host- and target-dependent CFLAGS
102
# from the config/ directory.
103
GLOBAL_CFLAGS = ${MT_CFLAGS} ${MH_CFLAGS}
104
#PROFILE_CFLAGS = -pg
105
 
106
# CFLAGS is specifically reserved for setting from the command line
107
# when running make.  I.E.  "make CFLAGS=-Wmissing-prototypes".
108
CFLAGS = -g
109
# INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
110
INTERNAL_CFLAGS = ${CFLAGS} ${GLOBAL_CFLAGS} ${PROFILE_CFLAGS} \
111
        ${INCLUDE_CFLAGS} ${BFD_CFLAGS} -DGDBSERVER
112
 
113
# LDFLAGS is specifically reserved for setting from the command line
114
# when running make.
115
 
116
# Perhaps should come from parent Makefile
117
VERSION = gdbserver-4.12.3
118
DIST=gdb
119
 
120
LINT=/usr/5bin/lint
121
LINTFLAGS= $(BFD_CFLAGS)
122
 
123
# Host and target-dependent makefile fragments come in here.
124
 
125
# Host: Sun 4 or Sparcstation, running SunOS 4
126
XDEPFILES=
127
XM_FILE= xm-sun4os4.h
128
NAT_FILE= nm-sun4os4.h
129
NATDEPFILES= fork-child.o infptrace.o inftarg.o corelow.o sparc-nat.o
130
HOST_IPC=-DBSD_IPC
131
GDBSERVER_DEPFILES= low-sparc.o
132
# Setting XM_CLIBS=-lresolv would let us use the DNS, but that would screw
133
# anyone who wants to use NIS, which includes at least one Cygnus customer
134
# (PR 3593).  So leave it this way until/unless we find a resolver which can
135
# get names from either DNS or NIS from the same GDB binary.
136
 
137
# Target: Sun 4 or Sparcstation, running SunOS 4
138
TDEPFILES= sparc-tdep.o solib.o solib-svr4.o solib-legacy.o
139
TM_FILE= tm-sun4os4.h
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/sparc/sun4os4.mh ./../config/sparc/sun4os4.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.