* nlm/Makefile.in: remove MMALLOC, READLINE, TERMCAP, and other cruft.
[deliverable/binutils-gdb.git] / gdb / nlm / Makefile.in
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
19 prefix = /usr/local
20
21 program_transform_name =
22 exec_prefix = $(prefix)
23 bindir = $(exec_prefix)/bin
24 libdir = $(exec_prefix)/lib
25 tooldir = $(libdir)/$(target_alias)
26
27 datadir = $(prefix)/lib
28 mandir = $(prefix)/man
29 man1dir = $(mandir)/man1
30 man2dir = $(mandir)/man2
31 man3dir = $(mandir)/man3
32 man4dir = $(mandir)/man4
33 man5dir = $(mandir)/man5
34 man6dir = $(mandir)/man6
35 man7dir = $(mandir)/man7
36 man8dir = $(mandir)/man8
37 man9dir = $(mandir)/man9
38 infodir = $(prefix)/info
39 includedir = $(prefix)/include
40 docdir = $(datadir)/doc
41
42 SHELL = /bin/sh
43
44 INSTALL = `cd $(srcdir)/../..;pwd`/install.sh -c
45 INSTALL_PROGRAM = $(INSTALL)
46 INSTALL_DATA = $(INSTALL)
47 INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
48 INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1
49
50 CC_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
65 NLMCONV_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
76 NWINCLUDES = -I/gaunt/grossman/ALPHA-NLM/940830/clib/include
77
78 LD_FOR_TARGET = ` \
79 if [ -f ../../ld/ld.new ] ; then \
80 echo ../../ld/ld.new; \
81 else \
82 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
83 echo $(LD); \
84 else \
85 t='$(program_transform_name)'; echo ld | sed -e '' $$t; \
86 fi; \
87 fi`
88
89 AR = ar
90 AR_FLAGS = qv
91 RANLIB = ranlib
92
93 # System V: If you compile gdb with a compiler which uses the coff
94 # encapsulation feature (this is a function of the compiler used, NOT
95 # of the m-?.h file selected by config.gdb), you must make sure that
96 # the GNU nm is the one that is used by munch.
97
98 # If you are compiling with GCC, make sure that either 1) You use the
99 # -traditional flag, or 2) You have the fixed include files where GCC
100 # can reach them. Otherwise the ioctl calls in inflow.c
101 # will be incorrectly compiled. The "fixincludes" script in the gcc
102 # distribution will fix your include files up.
103 #CC=cc
104 #CC=gcc -traditional
105 GCC=gcc
106
107 # Directory containing source files. Don't clean up the spacing,
108 # this exact string is matched for by the "configure" script.
109 srcdir = .
110
111 # It is also possible that you will need to add -I/usr/include/sys to the
112 # CFLAGS section if your system doesn't have fcntl.h in /usr/include (which
113 # is where it should be according to Posix).
114
115 # where to find texinfo; GDB dist should include a recent one
116 TEXIDIR=${srcdir}/../texinfo
117
118 # where to find makeinfo, preferably one designed for texinfo-2
119 MAKEINFO=makeinfo
120
121 # Set this up with gcc if you have gnu ld and the loader will print out
122 # line numbers for undefinded refs.
123 #CC-LD=gcc -static
124 CC-LD=${CC}
125
126 # Where is the "include" directory? Traditionally ../include or ./include
127 INCLUDE_DIR = ${srcdir}/../../include
128 INCLUDE_DEP = $$(INCLUDE_DIR)
129
130 # All the includes used for CFLAGS and for lint.
131 # -I. for config files.
132 # -I${srcdir} possibly for regex.h also.
133 # -I${srcdir}/config for more generic config files.
134 INCLUDE_CFLAGS = -I. -I${srcdir} -I${srcdir}/.. -I${srcdir}/../config -I$(INCLUDE_DIR)
135
136 # M{H,T}_CFLAGS, if defined, has host- and target-dependent CFLAGS
137 # from the config/ directory.
138 GLOBAL_CFLAGS = ${MT_CFLAGS} ${MH_CFLAGS}
139 #PROFILE_CFLAGS = -pg
140
141 # CFLAGS is specifically reserved for setting from the command line
142 # when running make. I.E. "make CFLAGS=-Wmissing-prototypes".
143 CFLAGS = -g
144 # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
145 INTERNAL_CFLAGS = ${CFLAGS} ${GLOBAL_CFLAGS} ${PROFILE_CFLAGS} ${INCLUDE_CFLAGS} ${USER_CFLAGS} ${NWINCLUDES}
146 LDFLAGS = $(CFLAGS)
147
148 # Perhaps should come from parent Makefile
149 VERSION = gdbserve-4.12
150 DIST=gdb
151
152 LINT=/usr/5bin/lint
153 LINTFLAGS= -I${BFD_DIR}
154
155 # Host and target-dependent makefile fragments come in here.
156 ####
157 # End of host and target-dependent makefile fragments
158
159 # All source files that go into linking GDB remote server.
160
161 DEPFILES = $(GDBSERVE_DEPFILES)
162
163 SOURCES = $(ALLDEPFILES)
164 TAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS}
165
166 # Prevent Sun make from putting in the machine type. Setting
167 # TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1.
168 .c.o:
169 ${CC_FOR_TARGET} -c ${INTERNAL_CFLAGS} $<
170
171 .S.o:
172 ${CC_FOR_TARGET} -c ${INTERNAL_CFLAGS} $<
173
174 all: gdbserve.nlm
175
176 # Traditionally "install" depends on "all". But it may be useful
177 # not to; for example, if the user has made some trivial change to a
178 # source file and doesn't care about rebuilding or just wants to save the
179 # time it takes for make to check that all is up to date.
180 # install-only is intended to address that need.
181 install: all install-only
182 install-only:
183 $(INSTALL_XFORM) gdbserver $(bindir)/gdbserver
184 $(INSTALL_XFORM1) $(srcdir)/gdbserver.1 $(man1dir)/gdbserver.1
185
186 uninstall: force
187 rm -f $(bindir)/gdbserver $(man1dir)/gdbserver.1
188 # @$(MAKE) DO=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do
189
190 installcheck:
191 check:
192 info dvi:
193 install-info:
194 clean-info:
195
196 gdbserve.nlm: gdbserve.O $(srcdir)/gdbserve.def
197 ${NLMCONV_FOR_TARGET} -T $(srcdir)/gdbserve.def
198
199 gdbserve.O: prelude.o gdbserve.o $(TDEPFILES)
200 ${LD_FOR_TARGET} $(LDFLAGS) -r -o gdbserve.O prelude.o gdbserve.o ${TDEPFILES}
201
202 config.status:
203 @echo "You must configure gdbserver. Look at the README file for details."
204 @false
205
206 # Put the proper machine-specific files first, so M-. on a machine
207 # specific routine gets the one for the correct machine.
208 # The xyzzy stuff below deals with empty DEPFILES
209 TAGS: ${TAGFILES}
210 etags `find ${srcdir}/../config -name $(TM_FILE) -print` \
211 `find ${srcdir}/../config -name ${XM_FILE} -print` \
212 `find ${srcdir}/../config -name ${NAT_FILE} -print` \
213 `for i in yzzy ${DEPFILES}; do \
214 if [ x$$i != xyzzy ]; then \
215 echo ${srcdir}/$$i | sed -e 's/\.o$$/\.c/' ; \
216 fi; \
217 done` \
218 ${TAGFILES}
219 tags: TAGS
220
221 clean:
222 rm -f *.o ${ADD_FILES} *~
223 rm -f gdbserve.O gdbserve.nlm core make.log
224
225 distclean: clean TAGS
226 rm -f config.status
227 rm -f Makefile
228
229 realclean: clean
230 rm -f TAGS
231 rm -f config.status
232 rm -f Makefile
233
234 Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
235 $(SHELL) ./config.status
236
237 force:
238
239 # GNU Make has an annoying habit of putting *all* the Makefile variables
240 # into the environment, unless you include this target as a circumvention.
241 # Rumor is that this will be fixed (and this target can be removed)
242 # in GNU Make 4.0.
243 .NOEXPORT:
244
245 # GNU Make 3.63 has a different problem: it keeps tacking command line
246 # overrides onto the definition of $(MAKE). This variable setting
247 # will remove them.
248 MAKEOVERRIDES=
249
250 # This is the end of "Makefile.in".
This page took 0.03652 seconds and 5 git commands to generate.