Keep Fortran tests
[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
76NWSOURCE = /gaunt/grossman/unsupported/Novell
77NWINCLUDES = -I/gaunt/grossman/PPC-NETWARE/ndk/include
78
79LD_FOR_TARGET = ` \
80 if [ -f ../../ld/ld.new ] ; then \
81 echo ../../ld/ld.new; \
82 else \
83 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
84 echo $(LD); \
85 else \
86 t='$(program_transform_name)'; echo ld | sed -e '' $$t; \
87 fi; \
88 fi`
89
27847c6f
SG
90AR = ar
91AR_FLAGS = qv
92RANLIB = ranlib
93
94# Flags that describe where you can find the termcap library.
95# This can be overridden in the host Makefile fragment file.
96TERMCAP = -ltermcap
97
98# System V: If you compile gdb with a compiler which uses the coff
99# encapsulation feature (this is a function of the compiler used, NOT
100# of the m-?.h file selected by config.gdb), you must make sure that
101# the GNU nm is the one that is used by munch.
102
103# If you are compiling with GCC, make sure that either 1) You use the
104# -traditional flag, or 2) You have the fixed include files where GCC
105# can reach them. Otherwise the ioctl calls in inflow.c
106# will be incorrectly compiled. The "fixincludes" script in the gcc
107# distribution will fix your include files up.
108#CC=cc
109#CC=gcc -traditional
110GCC=gcc
111
112# Directory containing source files. Don't clean up the spacing,
113# this exact string is matched for by the "configure" script.
114srcdir = .
115
116# It is also possible that you will need to add -I/usr/include/sys to the
117# CFLAGS section if your system doesn't have fcntl.h in /usr/include (which
118# is where it should be according to Posix).
119
120# If you use bison instead of yacc, it needs to include the "-y" argument.
121#BISON=bison -y
122BISON=yacc
123YACC=$(BISON)
124
125# where to find texinfo; GDB dist should include a recent one
126TEXIDIR=${srcdir}/../texinfo
127
128# where to find makeinfo, preferably one designed for texinfo-2
129MAKEINFO=makeinfo
130
131# Set this up with gcc if you have gnu ld and the loader will print out
132# line numbers for undefinded refs.
133#CC-LD=gcc -static
134CC-LD=${CC}
135
136# Where is the "include" directory? Traditionally ../include or ./include
137INCLUDE_DIR = ${srcdir}/../../include
138INCLUDE_DEP = $$(INCLUDE_DIR)
139
140# Where is the source dir for the MMALLOC library? Traditionally ../mmalloc
141# or ./mmalloc (When we want the binary library built from it, we use
142# ${MMALLOC_DIR}${subdir}.)
143# Note that mmalloc can still be used on systems without mmap().
144# To use your system malloc, comment out the following defines.
145MMALLOC_DIR = ${srcdir}/../mmalloc
146MMALLOC_DEP = $$(MMALLOC_DIR)
147# To use your system malloc, uncomment MMALLOC_DISABLE.
148#MMALLOC_DISABLE = -DNO_MMALLOC
149# To use mmalloc but disable corruption checking, uncomment MMALLOC_CHECK
150#MMALLOC_CHECK = -DNO_MMALLOC_CHECK
151MMALLOC_CFLAGS = ${MMALLOC_CHECK} ${MMALLOC_DISABLE}
152
153# Where is the source dir for the READLINE library? Traditionally in .. or .
154# (For the binary library built from it, we use ${READLINE_DIR}${subdir}.)
155READLINE_DIR = ${srcdir}/../readline
156READLINE_DEP = $$(READLINE_DIR)
157
158# All the includes used for CFLAGS and for lint.
159# -I. for config files.
160# -I${srcdir} possibly for regex.h also.
161# -I${srcdir}/config for more generic config files.
162INCLUDE_CFLAGS = -I. -I${srcdir} -I${srcdir}/.. -I${srcdir}/../config -I$(INCLUDE_DIR)
163
164# M{H,T}_CFLAGS, if defined, has host- and target-dependent CFLAGS
165# from the config/ directory.
166GLOBAL_CFLAGS = ${MT_CFLAGS} ${MH_CFLAGS}
167#PROFILE_CFLAGS = -pg
168
169# CFLAGS is specifically reserved for setting from the command line
170# when running make. I.E. "make CFLAGS=-Wmissing-prototypes".
171CFLAGS = -g
172# INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
b7da2494 173INTERNAL_CFLAGS = ${CFLAGS} ${GLOBAL_CFLAGS} ${PROFILE_CFLAGS} ${MMALLOC_CFLAGS} ${INCLUDE_CFLAGS} ${USER_CFLAGS} ${NWINCLUDES}
27847c6f
SG
174LDFLAGS = $(CFLAGS)
175
176# Perhaps should come from parent Makefile
177VERSION = gdbserve-4.12
178DIST=gdb
179
180LINT=/usr/5bin/lint
181LINTFLAGS= -I${BFD_DIR}
182
183# Host and target-dependent makefile fragments come in here.
184####
185# End of host and target-dependent makefile fragments
186
187# All source files that go into linking GDB remote server.
188
27847c6f
SG
189DEPFILES = $(GDBSERVE_DEPFILES)
190
b7da2494 191SOURCES = $(ALLDEPFILES)
27847c6f
SG
192TAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS}
193
27847c6f
SG
194# Prevent Sun make from putting in the machine type. Setting
195# TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1.
196.c.o:
b7da2494 197 ${CC_FOR_TARGET} -c ${INTERNAL_CFLAGS} $<
27847c6f 198
b7da2494 199all: gdbserve.nlm
27847c6f
SG
200
201# Traditionally "install" depends on "all". But it may be useful
202# not to; for example, if the user has made some trivial change to a
203# source file and doesn't care about rebuilding or just wants to save the
204# time it takes for make to check that all is up to date.
205# install-only is intended to address that need.
206install: all install-only
207install-only:
208 $(INSTALL_XFORM) gdbserver $(bindir)/gdbserver
209 $(INSTALL_XFORM1) $(srcdir)/gdbserver.1 $(man1dir)/gdbserver.1
210
211uninstall: force
212 rm -f $(bindir)/gdbserver $(man1dir)/gdbserver.1
213# @$(MAKE) DO=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do
214
215installcheck:
216check:
217info dvi:
218install-info:
219clean-info:
220
b7da2494
SG
221gdbserve.nlm: gdbserve.O $(srcdir)/gdbserve.def
222 ${NLMCONV_FOR_TARGET} -T $(srcdir)/gdbserve.def
27847c6f 223
b7da2494
SG
224gdbserve.O: prelude.o gdbserve.o $(TDEPFILES)
225 ${LD_FOR_TARGET} $(LDFLAGS) -r -o gdbserve.O prelude.o gdbserve.o ${TDEPFILES}
27847c6f
SG
226
227config.status:
228 @echo "You must configure gdbserver. Look at the README file for details."
229 @false
230
231# Put the proper machine-specific files first, so M-. on a machine
232# specific routine gets the one for the correct machine.
233# The xyzzy stuff below deals with empty DEPFILES
234TAGS: ${TAGFILES}
235 etags `find ${srcdir}/../config -name $(TM_FILE) -print` \
236 `find ${srcdir}/../config -name ${XM_FILE} -print` \
237 `find ${srcdir}/../config -name ${NAT_FILE} -print` \
238 `for i in yzzy ${DEPFILES}; do \
239 if [ x$$i != xyzzy ]; then \
240 echo ${srcdir}/$$i | sed -e 's/\.o$$/\.c/' ; \
241 fi; \
242 done` \
243 ${TAGFILES}
244tags: TAGS
245
246clean:
247 rm -f *.o ${ADD_FILES} *~
248 rm -f init.c version.c
b7da2494 249 rm -f gdbserve.O gdbserve.nlm core make.log
27847c6f
SG
250
251distclean: clean c-exp.tab.c m2-exp.tab.c ch-exp.tab.c TAGS
252 rm -f tm.h xm.h config.status
253 rm -f Makefile
254
255realclean: clean
256 rm -f c-exp.tab.c m2-exp.tab.c ch-exp.tab.c TAGS
257 rm -f tm.h xm.h config.status
258 rm -f Makefile
259
260STAGESTUFF=${OBS} ${TSOBS} ${NTSOBS} ${ADD_FILES} init.c init.o version.c gdb
261
262Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
263 $(SHELL) ./config.status
264
265force:
266
267version.c: Makefile
268 echo 'char *version = "$(VERSION)";' >version.c
269
270# GNU Make has an annoying habit of putting *all* the Makefile variables
271# into the environment, unless you include this target as a circumvention.
272# Rumor is that this will be fixed (and this target can be removed)
273# in GNU Make 4.0.
274.NOEXPORT:
275
276# GNU Make 3.63 has a different problem: it keeps tacking command line
277# overrides onto the definition of $(MAKE). This variable setting
278# will remove them.
279MAKEOVERRIDES=
280
281# This is the end of "Makefile.in".
This page took 0.057238 seconds and 4 git commands to generate.