New files for DOSness
[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
91MINUS_G=-g
92DEBUG_FLAGS = $(MINUS_G)
93LDFLAGS = $(DEBUG_FLAGS)
94H_CFLAGS=-D__MSDOS__ -D__GO32__
95CFLAGS = $(H_CFLAGS) $(DEBUG_FLAGS) $(USG) -I. $(LOCAL_INCLUDES) $(CPPFLAGS) $(READLINE_DEFINES)
96
97# A good alternative is gcc -traditional.
98#CC = gcc -traditional
99RM = rm
100CP = cp
101
102LOCAL_INCLUDES = -I$(srcdir)/../
103
104CSOURCES = readline.c history.c funmap.c keymaps.c vi_mode.c \
105 emacs_keymap.c vi_keymap.c
106
107HSOURCES = readline.h chardefs.h history.h keymaps.h
108SOURCES = $(CSOURCES) $(HSOURCES)
109
110DOCUMENTATION = readline.texi inc-read.texi \
111 history.texi inc-hist.texi
112
113SUPPORT = COPYING Makefile $(DOCUMENTATION) ChangeLog
114
115THINGS_TO_TAR = $(SOURCES) $(SUPPORT)
116
117##########################################################################
118
119STAGESTUFF = *.o
120
121all: libreadline.a
122
123info:
124 echo FIXME
125 echo FIXME
126 echo FIXME
127
128clean-info: force
129 -rm -f *.info*
130
131history.info: $(srcdir)/history.texi
132 $(MAKEINFO) -o history.info $(srcdir)/history.texi
133
134readline.info: $(srcdir)/readline.texi $(srcdir)/inc-read.texi
135 $(MAKEINFO) -o readline.info $(srcdir)/readline.texi
136
137libreadline.a: readline.o history.o funmap.o keymaps.o tilde.o vi_mode.o
138 -$(RM) -f libreadline.a
139 $(AR) $(AR_FLAGS) libreadline.a readline.o history.o funmap.o keymaps.o tilde.o vi_mode.o
140 $(RANLIB) libreadline.a
141
142readline.o: readline.h chardefs.h keymaps.h history.h readline.c vi_mode.c
143history.o: history.c history.h
144funmap.o: readline.h
145keymaps.o: emacs_keymap.c vi_keymap.c keymaps.h chardefs.h keymaps.c
146
147tilde.o: $(srcdir)/../glob/tilde.c
148 $(CC) -c $(CFLAGS) $(srcdir)/../glob/tilde.c
149
150libtest: libreadline.a libtest.c
151 $(CC) -o libtest $(CFLAGS) $(CPPFLAGS) -L. libtest.c -lreadline -ltermcap
152
153readline: readline.c history.o keymaps.o funmap.o readline.h chardefs.h vi_mode.o
154 $(CC) $(CFLAGS) $(CPPFLAGS) $(READLINE_DEFINES) \
155 $(LOCAL_INCLUDES) -DTEST -o readline readline.c funmap.o \
156 keymaps.o history.o vi_mode.o -L. -ltermcap
157
158readline.tar: $(THINGS_TO_TAR)
159 tar -cf readline.tar $(THINGS_TO_TAR)
160
161readline.tar.Z: readline.tar
162 compress -f readline.tar
163
164install:
165 $(INSTALL_DATA) libreadline.a $(libdir)/libreadline.a
166 $(RANLIB) $(libdir)/libreadline.a
167 [ -d $(includedir)/readline ] || mkdir $(includedir)/readline
168 $(INSTALL_DATA) $(srcdir)/readline.h $(includedir)/readline/readline.h
169 $(INSTALL_DATA) $(srcdir)/keymaps.h $(includedir)/readline/keymaps.h
170 $(INSTALL_DATA) $(srcdir)/chardefs.h $(includedir)/readline/chardefs.h
171
172install-info: info
173 echo FIXME
174 echo FIXME
175 echo FIXME
176# for i in *.info* ; do \
177# $(INSTALL_DATA) $$i $(infodir)/$$i ; \
178# done
179
180includes:
181 if [ ! -r $(INCDIR)/readline ]; then\
182 mkdir $(INCDIR)/readline;\
183 chmod a+r $(INCDIR)/readline;\
184 fi
185 $(INSTALL_FILE) $(srcdir)/readline.h $(INCDIR)/readline/
186 $(INSTALL_FILE) $(srcdir)/keymaps.h $(INCDIR)/readline/
187 $(INSTALL_FILE) $(srcdir)/chardefs.h $(INCDIR)/readline/
188clean:
189 rm -f $(STAGESTUFF) *.a *.log *.cp *.tp *.vr *.fn
190 rm -f *.aux *.pg *.toc
191
192$(DESTDIR)/libreadline.a: libreadline.a
193
194# Copy the object files from a particular stage into a subdirectory.
195stage1: force
196 -mkdir stage1
197 -mv $(STAGESTUFF) stage1
198
199stage2: force
200 -mkdir stage2
201 -mv $(STAGESTUFF) stage2
202
203stage3: force
204 -mkdir stage3
205 -mv $(STAGESTUFF) stage3
206
207against=stage2
208
209comparison: force
210 for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done
211
212de-stage1: force
213 -(cd stage1 ; mv -f * ..)
214 -rmdir stage1
215
216de-stage2: force
217 -(cd stage2 ; mv -f * ..)
218 -rmdir stage2
219
220de-stage3: force
221 -(cd stage3 ; mv -f * ..)
222 -rmdir stage3
223
224force:
225
226# with the gnu make, this is done automatically.
227
228Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
229 $(SHELL) ./config.status
This page took 0.030105 seconds and 4 git commands to generate.