* nlm/configure.in: Use sed instead of awk to get the value of
[deliverable/binutils-gdb.git] / gdb / nlm / Makefile.in
CommitLineData
27847c6f
SG
1#Copyright 1989, 1990, 1991, 1992, 1993, 1994 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
17# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
19prefix = /usr/local
20
21program_transform_name =
22exec_prefix = $(prefix)
23bindir = $(exec_prefix)/bin
24libdir = $(exec_prefix)/lib
25tooldir = $(libdir)/$(target_alias)
26
27datadir = $(prefix)/lib
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
40docdir = $(datadir)/doc
41
42SHELL = /bin/sh
43
44INSTALL = `cd $(srcdir)/../..;pwd`/install.sh -c
45INSTALL_PROGRAM = $(INSTALL)
46INSTALL_DATA = $(INSTALL)
47INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
48INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1
49
b7da2494
SG
50CC_FOR_TARGET = ` \
51 if [ -f ../../gcc/xgcc ] ; then \
52 if [ -f ../../newlib/Makefile ] ; then \
53 echo ../../gcc/xgcc -B../../gcc/ -idirafter ../newlib/targ-include -idirafter $${rootsrc}/../newlib/libc/include -nostdinc -L../../../newlib -B../../../newlib/; \
54 else \
55 echo ../../gcc/xgcc -B../../gcc/; \
56 fi; \
57 else \
58 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
59 echo $(CC); \
60 else \
61 t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
62 fi; \
63 fi`
64
65NLMCONV_FOR_TARGET = ` \
66 if [ -f ../../binutils/nlmconv ] ; then \
67 echo ../../binutils/nlmconv; \
68 else \
69 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
70 echo $(NLMCONV); \
71 else \
72 t='$(program_transform_name)'; echo nlmconv | sed -e '' $$t; \
73 fi; \
74 fi`
75
27847c6f
SG
76AR = ar
77AR_FLAGS = qv
78RANLIB = ranlib
79
27847c6f
SG
80# If you are compiling with GCC, make sure that either 1) You use the
81# -traditional flag, or 2) You have the fixed include files where GCC
82# can reach them. Otherwise the ioctl calls in inflow.c
83# will be incorrectly compiled. The "fixincludes" script in the gcc
84# distribution will fix your include files up.
85#CC=cc
86#CC=gcc -traditional
87GCC=gcc
88
89# Directory containing source files. Don't clean up the spacing,
90# this exact string is matched for by the "configure" script.
91srcdir = .
92
93# It is also possible that you will need to add -I/usr/include/sys to the
94# CFLAGS section if your system doesn't have fcntl.h in /usr/include (which
95# is where it should be according to Posix).
96
27847c6f
SG
97# where to find texinfo; GDB dist should include a recent one
98TEXIDIR=${srcdir}/../texinfo
99
100# where to find makeinfo, preferably one designed for texinfo-2
101MAKEINFO=makeinfo
102
103# Set this up with gcc if you have gnu ld and the loader will print out
104# line numbers for undefinded refs.
105#CC-LD=gcc -static
106CC-LD=${CC}
107
108# Where is the "include" directory? Traditionally ../include or ./include
109INCLUDE_DIR = ${srcdir}/../../include
110INCLUDE_DEP = $$(INCLUDE_DIR)
111
27847c6f
SG
112# All the includes used for CFLAGS and for lint.
113# -I. for config files.
114# -I${srcdir} possibly for regex.h also.
115# -I${srcdir}/config for more generic config files.
116INCLUDE_CFLAGS = -I. -I${srcdir} -I${srcdir}/.. -I${srcdir}/../config -I$(INCLUDE_DIR)
117
118# M{H,T}_CFLAGS, if defined, has host- and target-dependent CFLAGS
119# from the config/ directory.
120GLOBAL_CFLAGS = ${MT_CFLAGS} ${MH_CFLAGS}
121#PROFILE_CFLAGS = -pg
122
123# CFLAGS is specifically reserved for setting from the command line
124# when running make. I.E. "make CFLAGS=-Wmissing-prototypes".
125CFLAGS = -g
126# INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
9255037d 127INTERNAL_CFLAGS = ${CFLAGS} ${GLOBAL_CFLAGS} ${PROFILE_CFLAGS} ${INCLUDE_CFLAGS} ${USER_CFLAGS}
27847c6f
SG
128LDFLAGS = $(CFLAGS)
129
130# Perhaps should come from parent Makefile
131VERSION = gdbserve-4.12
132DIST=gdb
133
134LINT=/usr/5bin/lint
135LINTFLAGS= -I${BFD_DIR}
136
137# Host and target-dependent makefile fragments come in here.
138####
139# End of host and target-dependent makefile fragments
140
141# All source files that go into linking GDB remote server.
142
27847c6f
SG
143DEPFILES = $(GDBSERVE_DEPFILES)
144
b7da2494 145SOURCES = $(ALLDEPFILES)
27847c6f
SG
146TAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS}
147
27847c6f
SG
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:
b7da2494 151 ${CC_FOR_TARGET} -c ${INTERNAL_CFLAGS} $<
27847c6f 152
74ace0c8
SG
153.S.o:
154 ${CC_FOR_TARGET} -c ${INTERNAL_CFLAGS} $<
155
b7da2494 156all: gdbserve.nlm
27847c6f
SG
157
158# Traditionally "install" depends on "all". But it may be useful
159# not to; for example, if the user has made some trivial change to a
160# source file and doesn't care about rebuilding or just wants to save the
161# time it takes for make to check that all is up to date.
162# install-only is intended to address that need.
163install: all install-only
164install-only:
2f2c0b2a 165 $(INSTALL_XFORM) gdbserve.nlm $(bindir)/gdbserve.nlm
27847c6f
SG
166
167uninstall: force
2f2c0b2a 168 rm -f $(bindir)/gdbserve.nlm
27847c6f
SG
169
170installcheck:
171check:
172info dvi:
173install-info:
174clean-info:
175
b7da2494
SG
176gdbserve.nlm: gdbserve.O $(srcdir)/gdbserve.def
177 ${NLMCONV_FOR_TARGET} -T $(srcdir)/gdbserve.def
27847c6f 178
b7da2494 179gdbserve.O: prelude.o gdbserve.o $(TDEPFILES)
2ec604df 180 ${CC_FOR_TARGET} $(LDFLAGS) -r -o gdbserve.O prelude.o gdbserve.o ${TDEPFILES}
27847c6f
SG
181
182config.status:
183 @echo "You must configure gdbserver. Look at the README file for details."
184 @false
185
186# Put the proper machine-specific files first, so M-. on a machine
187# specific routine gets the one for the correct machine.
188# The xyzzy stuff below deals with empty DEPFILES
189TAGS: ${TAGFILES}
190 etags `find ${srcdir}/../config -name $(TM_FILE) -print` \
191 `find ${srcdir}/../config -name ${XM_FILE} -print` \
192 `find ${srcdir}/../config -name ${NAT_FILE} -print` \
193 `for i in yzzy ${DEPFILES}; do \
194 if [ x$$i != xyzzy ]; then \
195 echo ${srcdir}/$$i | sed -e 's/\.o$$/\.c/' ; \
196 fi; \
197 done` \
198 ${TAGFILES}
199tags: TAGS
200
201clean:
202 rm -f *.o ${ADD_FILES} *~
b7da2494 203 rm -f gdbserve.O gdbserve.nlm core make.log
27847c6f 204
b35be510
C
205distclean: clean TAGS
206 rm -f config.status
27847c6f
SG
207 rm -f Makefile
208
209realclean: clean
b35be510
C
210 rm -f TAGS
211 rm -f config.status
27847c6f
SG
212 rm -f Makefile
213
27847c6f
SG
214Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
215 $(SHELL) ./config.status
216
217force:
218
27847c6f
SG
219# GNU Make has an annoying habit of putting *all* the Makefile variables
220# into the environment, unless you include this target as a circumvention.
221# Rumor is that this will be fixed (and this target can be removed)
222# in GNU Make 4.0.
223.NOEXPORT:
224
225# GNU Make 3.63 has a different problem: it keeps tacking command line
226# overrides onto the definition of $(MAKE). This variable setting
227# will remove them.
228MAKEOVERRIDES=
229
230# This is the end of "Makefile.in".
This page took 0.082495 seconds and 4 git commands to generate.