Break the thread of control that implies that a unix child
[deliverable/binutils-gdb.git] / readline / Makefile.dos
CommitLineData
044751b8
SC
1# This file was generated automatically by configure. Do not edit.
2target_makefile_frag =
3host_makefile_frag =
4CROSS=-DCROSS_COMPILE
5ALL=all.cross
6host_alias = go32
7host_cpu = i386
8host_vendor = dj
9host_os = dos
10version_path =
11target_alias = h8300hds
12target_cpu = h8300
13target_vendor = hitachi
14target_os = hds
15subdir =
16unsubdir = .
17VPATH = .
18#
19# Makefile
20# Copyright (C) 1990, 1991 Cygnus Support
21#
22# This file is free software; you can redistribute it and/or modify
23# it under the terms of the GNU General Public License as published by
24# the Free Software Foundation; either version 2 of the License, or
25# (at your option) any later version.
26#
27# This program is distributed in the hope that it will be useful,
28# but WITHOUT ANY WARRANTY; without even the implied warranty of
29# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30# GNU General Public License for more details.
31#
32# You should have received a copy of the GNU General Public License
33# along with this program; if not, write to the Free Software
34# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
35#
36
37#
38# Makefile for readline and history libraries.
39#
40
41srcdir = .
42
43prefix = /usr/local
44
45bindir = $(prefix)/bin
46datadir = $(prefix)/lib
47libdir = $(prefix)/lib
48mandir = $(datadir)/man
49man1dir = $(mandir)/man1
50man2dir = $(mandir)/man2
51man3dir = $(mandir)/man3
52man4dir = $(mandir)/man4
53man5dir = $(mandir)/man5
54man6dir = $(mandir)/man6
55man7dir = $(mandir)/man7
56man8dir = $(mandir)/man8
57man9dir = $(mandir)/man9
58infodir = $(datadir)/info
59includedir = $(prefix)/include
60docdir = $(datadir)/doc
61
62SHELL = /bin/sh
63
64INSTALL = install -c
65INSTALL_PROGRAM = $(INSTALL)
66INSTALL_DATA = $(INSTALL)
67
68AR = ar
69AR_FLAGS = qv
70BISON = bison
71MAKEINFO = makeinfo
72RANLIB = ar rvs
73
74#### Host, target, and site specific Makefile fragments come in here.
75###
76
77# Define TYPES as -DVOID_SIGHANDLER if your operating system uses
78# a return type of "void" for signal handlers.
79TYPES = -DVOID_SIGHANDLER
80
81# HP-UX compilation requires the BSD library.
82#LOCAL_LIBS = -lBSD
83
84# Xenix compilation requires -ldir -lx
85#LOCAL_LIBS = -ldir -lx
86
87# Comment out "-DVI_MODE" if you don't think that anyone will ever desire
88# the vi line editing mode and features.
89READLINE_DEFINES = $(TYPES) -DVI_MODE
90
61984ba2 91DEBUG_FLAGS = -g
044751b8
SC
92LDFLAGS = $(DEBUG_FLAGS)
93H_CFLAGS=-D__MSDOS__ -D__GO32__
94CFLAGS = $(H_CFLAGS) $(DEBUG_FLAGS) $(USG) -I. $(LOCAL_INCLUDES) $(CPPFLAGS) $(READLINE_DEFINES)
95
96# A good alternative is gcc -traditional.
97#CC = gcc -traditional
98RM = rm
99CP = cp
100
101LOCAL_INCLUDES = -I$(srcdir)/../
102
103CSOURCES = readline.c history.c funmap.c keymaps.c vi_mode.c \
104 emacs_keymap.c vi_keymap.c
105
106HSOURCES = readline.h chardefs.h history.h keymaps.h
107SOURCES = $(CSOURCES) $(HSOURCES)
108
109DOCUMENTATION = readline.texi inc-read.texi \
110 history.texi inc-hist.texi
111
112SUPPORT = COPYING Makefile $(DOCUMENTATION) ChangeLog
113
114THINGS_TO_TAR = $(SOURCES) $(SUPPORT)
115
116##########################################################################
117
118STAGESTUFF = *.o
119
120all: libreadline.a
121
122info:
123 echo FIXME
124 echo FIXME
125 echo FIXME
126
127clean-info: force
128 -rm -f *.info*
129
130history.info: $(srcdir)/history.texi
131 $(MAKEINFO) -o history.info $(srcdir)/history.texi
132
133readline.info: $(srcdir)/readline.texi $(srcdir)/inc-read.texi
134 $(MAKEINFO) -o readline.info $(srcdir)/readline.texi
135
136libreadline.a: readline.o history.o funmap.o keymaps.o tilde.o vi_mode.o
137 -$(RM) -f libreadline.a
138 $(AR) $(AR_FLAGS) libreadline.a readline.o history.o funmap.o keymaps.o tilde.o vi_mode.o
139 $(RANLIB) libreadline.a
140
141readline.o: readline.h chardefs.h keymaps.h history.h readline.c vi_mode.c
142history.o: history.c history.h
143funmap.o: readline.h
144keymaps.o: emacs_keymap.c vi_keymap.c keymaps.h chardefs.h keymaps.c
145
146tilde.o: $(srcdir)/../glob/tilde.c
147 $(CC) -c $(CFLAGS) $(srcdir)/../glob/tilde.c
148
149libtest: libreadline.a libtest.c
150 $(CC) -o libtest $(CFLAGS) $(CPPFLAGS) -L. libtest.c -lreadline -ltermcap
151
152readline: readline.c history.o keymaps.o funmap.o readline.h chardefs.h vi_mode.o
153 $(CC) $(CFLAGS) $(CPPFLAGS) $(READLINE_DEFINES) \
154 $(LOCAL_INCLUDES) -DTEST -o readline readline.c funmap.o \
155 keymaps.o history.o vi_mode.o -L. -ltermcap
156
157readline.tar: $(THINGS_TO_TAR)
158 tar -cf readline.tar $(THINGS_TO_TAR)
159
160readline.tar.Z: readline.tar
161 compress -f readline.tar
162
163install:
164 $(INSTALL_DATA) libreadline.a $(libdir)/libreadline.a
165 $(RANLIB) $(libdir)/libreadline.a
166 [ -d $(includedir)/readline ] || mkdir $(includedir)/readline
167 $(INSTALL_DATA) $(srcdir)/readline.h $(includedir)/readline/readline.h
168 $(INSTALL_DATA) $(srcdir)/keymaps.h $(includedir)/readline/keymaps.h
169 $(INSTALL_DATA) $(srcdir)/chardefs.h $(includedir)/readline/chardefs.h
170
171install-info: info
172 echo FIXME
173 echo FIXME
174 echo FIXME
175# for i in *.info* ; do \
176# $(INSTALL_DATA) $$i $(infodir)/$$i ; \
177# done
178
179includes:
180 if [ ! -r $(INCDIR)/readline ]; then\
181 mkdir $(INCDIR)/readline;\
182 chmod a+r $(INCDIR)/readline;\
183 fi
184 $(INSTALL_FILE) $(srcdir)/readline.h $(INCDIR)/readline/
185 $(INSTALL_FILE) $(srcdir)/keymaps.h $(INCDIR)/readline/
186 $(INSTALL_FILE) $(srcdir)/chardefs.h $(INCDIR)/readline/
187clean:
188 rm -f $(STAGESTUFF) *.a *.log *.cp *.tp *.vr *.fn
189 rm -f *.aux *.pg *.toc
190
191$(DESTDIR)/libreadline.a: libreadline.a
192
193# Copy the object files from a particular stage into a subdirectory.
194stage1: force
195 -mkdir stage1
196 -mv $(STAGESTUFF) stage1
197
198stage2: force
199 -mkdir stage2
200 -mv $(STAGESTUFF) stage2
201
202stage3: force
203 -mkdir stage3
204 -mv $(STAGESTUFF) stage3
205
206against=stage2
207
208comparison: force
209 for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done
210
211de-stage1: force
212 -(cd stage1 ; mv -f * ..)
213 -rmdir stage1
214
215de-stage2: force
216 -(cd stage2 ; mv -f * ..)
217 -rmdir stage2
218
219de-stage3: force
220 -(cd stage3 ; mv -f * ..)
221 -rmdir stage3
222
223force:
224
225# with the gnu make, this is done automatically.
226
227Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
228 $(SHELL) ./config.status
This page took 0.041342 seconds and 4 git commands to generate.