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