* config/mh-ncr3000 (INSTALL): Don't use /usr/ucb/install,
[deliverable/binutils-gdb.git] / readline / Makefile.dos
1 # This file was generated automatically by configure. Do not edit.
2 target_makefile_frag =
3 host_makefile_frag =
4 CROSS=-DCROSS_COMPILE
5 ALL=all.cross
6 host_alias = go32
7 host_cpu = i386
8 host_vendor = dj
9 host_os = dos
10 version_path =
11 target_alias = h8300hds
12 target_cpu = h8300
13 target_vendor = hitachi
14 target_os = hds
15 subdir =
16 unsubdir = .
17 VPATH = .
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
41 srcdir = .
42
43 prefix = /usr/local
44
45 bindir = $(prefix)/bin
46 datadir = $(prefix)/lib
47 libdir = $(prefix)/lib
48 mandir = $(datadir)/man
49 man1dir = $(mandir)/man1
50 man2dir = $(mandir)/man2
51 man3dir = $(mandir)/man3
52 man4dir = $(mandir)/man4
53 man5dir = $(mandir)/man5
54 man6dir = $(mandir)/man6
55 man7dir = $(mandir)/man7
56 man8dir = $(mandir)/man8
57 man9dir = $(mandir)/man9
58 infodir = $(datadir)/info
59 includedir = $(prefix)/include
60 docdir = $(datadir)/doc
61
62 SHELL = /bin/sh
63
64 INSTALL = install -c
65 INSTALL_PROGRAM = $(INSTALL)
66 INSTALL_DATA = $(INSTALL)
67
68 AR = ar
69 AR_FLAGS = qv
70 BISON = bison
71 MAKEINFO = makeinfo
72 RANLIB = 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.
79 TYPES = -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.
89 READLINE_DEFINES = $(TYPES) -DVI_MODE
90
91 DEBUG_FLAGS = -g
92 LDFLAGS = $(DEBUG_FLAGS)
93 H_CFLAGS=-D__MSDOS__ -D__GO32__
94 CFLAGS = $(H_CFLAGS) $(DEBUG_FLAGS) $(USG) -I. $(LOCAL_INCLUDES) $(CPPFLAGS) $(READLINE_DEFINES)
95
96 # A good alternative is gcc -traditional.
97 #CC = gcc -traditional
98 RM = rm
99 CP = cp
100
101 LOCAL_INCLUDES = -I$(srcdir)/../
102
103 CSOURCES = readline.c history.c funmap.c keymaps.c vi_mode.c \
104 emacs_keymap.c vi_keymap.c
105
106 HSOURCES = readline.h chardefs.h history.h keymaps.h
107 SOURCES = $(CSOURCES) $(HSOURCES)
108
109 DOCUMENTATION = readline.texi inc-read.texi \
110 history.texi inc-hist.texi
111
112 SUPPORT = COPYING Makefile $(DOCUMENTATION) ChangeLog
113
114 THINGS_TO_TAR = $(SOURCES) $(SUPPORT)
115
116 ##########################################################################
117
118 STAGESTUFF = *.o
119
120 all: libreadline.a
121
122 info:
123 echo FIXME
124 echo FIXME
125 echo FIXME
126
127 clean-info: force
128 -rm -f *.info*
129
130 history.info: $(srcdir)/history.texi
131 $(MAKEINFO) -o history.info $(srcdir)/history.texi
132
133 readline.info: $(srcdir)/readline.texi $(srcdir)/inc-read.texi
134 $(MAKEINFO) -o readline.info $(srcdir)/readline.texi
135
136 libreadline.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
141 readline.o: readline.h chardefs.h keymaps.h history.h readline.c vi_mode.c
142 history.o: history.c history.h
143 funmap.o: readline.h
144 keymaps.o: emacs_keymap.c vi_keymap.c keymaps.h chardefs.h keymaps.c
145
146 tilde.o: $(srcdir)/../glob/tilde.c
147 $(CC) -c $(CFLAGS) $(srcdir)/../glob/tilde.c
148
149 libtest: libreadline.a libtest.c
150 $(CC) -o libtest $(CFLAGS) $(CPPFLAGS) -L. libtest.c -lreadline -ltermcap
151
152 readline: 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
157 readline.tar: $(THINGS_TO_TAR)
158 tar -cf readline.tar $(THINGS_TO_TAR)
159
160 readline.tar.Z: readline.tar
161 compress -f readline.tar
162
163 install:
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
171 install-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
179 includes:
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/
187 clean:
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.
194 stage1: force
195 -mkdir stage1
196 -mv $(STAGESTUFF) stage1
197
198 stage2: force
199 -mkdir stage2
200 -mv $(STAGESTUFF) stage2
201
202 stage3: force
203 -mkdir stage3
204 -mv $(STAGESTUFF) stage3
205
206 against=stage2
207
208 comparison: force
209 for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done
210
211 de-stage1: force
212 -(cd stage1 ; mv -f * ..)
213 -rmdir stage1
214
215 de-stage2: force
216 -(cd stage2 ; mv -f * ..)
217 -rmdir stage2
218
219 de-stage3: force
220 -(cd stage3 ; mv -f * ..)
221 -rmdir stage3
222
223 force:
224
225 # with the gnu make, this is done automatically.
226
227 Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
228 $(SHELL) ./config.status
This page took 0.049431 seconds and 4 git commands to generate.