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