Commit | Line | Data |
---|---|---|
044751b8 SC |
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 | MINUS_G=-g | |
92 | DEBUG_FLAGS = $(MINUS_G) | |
93 | LDFLAGS = $(DEBUG_FLAGS) | |
94 | H_CFLAGS=-D__MSDOS__ -D__GO32__ | |
95 | CFLAGS = $(H_CFLAGS) $(DEBUG_FLAGS) $(USG) -I. $(LOCAL_INCLUDES) $(CPPFLAGS) $(READLINE_DEFINES) | |
96 | ||
97 | # A good alternative is gcc -traditional. | |
98 | #CC = gcc -traditional | |
99 | RM = rm | |
100 | CP = cp | |
101 | ||
102 | LOCAL_INCLUDES = -I$(srcdir)/../ | |
103 | ||
104 | CSOURCES = readline.c history.c funmap.c keymaps.c vi_mode.c \ | |
105 | emacs_keymap.c vi_keymap.c | |
106 | ||
107 | HSOURCES = readline.h chardefs.h history.h keymaps.h | |
108 | SOURCES = $(CSOURCES) $(HSOURCES) | |
109 | ||
110 | DOCUMENTATION = readline.texi inc-read.texi \ | |
111 | history.texi inc-hist.texi | |
112 | ||
113 | SUPPORT = COPYING Makefile $(DOCUMENTATION) ChangeLog | |
114 | ||
115 | THINGS_TO_TAR = $(SOURCES) $(SUPPORT) | |
116 | ||
117 | ########################################################################## | |
118 | ||
119 | STAGESTUFF = *.o | |
120 | ||
121 | all: libreadline.a | |
122 | ||
123 | info: | |
124 | echo FIXME | |
125 | echo FIXME | |
126 | echo FIXME | |
127 | ||
128 | clean-info: force | |
129 | -rm -f *.info* | |
130 | ||
131 | history.info: $(srcdir)/history.texi | |
132 | $(MAKEINFO) -o history.info $(srcdir)/history.texi | |
133 | ||
134 | readline.info: $(srcdir)/readline.texi $(srcdir)/inc-read.texi | |
135 | $(MAKEINFO) -o readline.info $(srcdir)/readline.texi | |
136 | ||
137 | libreadline.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 | ||
142 | readline.o: readline.h chardefs.h keymaps.h history.h readline.c vi_mode.c | |
143 | history.o: history.c history.h | |
144 | funmap.o: readline.h | |
145 | keymaps.o: emacs_keymap.c vi_keymap.c keymaps.h chardefs.h keymaps.c | |
146 | ||
147 | tilde.o: $(srcdir)/../glob/tilde.c | |
148 | $(CC) -c $(CFLAGS) $(srcdir)/../glob/tilde.c | |
149 | ||
150 | libtest: libreadline.a libtest.c | |
151 | $(CC) -o libtest $(CFLAGS) $(CPPFLAGS) -L. libtest.c -lreadline -ltermcap | |
152 | ||
153 | readline: 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 | ||
158 | readline.tar: $(THINGS_TO_TAR) | |
159 | tar -cf readline.tar $(THINGS_TO_TAR) | |
160 | ||
161 | readline.tar.Z: readline.tar | |
162 | compress -f readline.tar | |
163 | ||
164 | install: | |
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 | ||
172 | install-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 | ||
180 | includes: | |
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/ | |
188 | clean: | |
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. | |
195 | stage1: force | |
196 | -mkdir stage1 | |
197 | -mv $(STAGESTUFF) stage1 | |
198 | ||
199 | stage2: force | |
200 | -mkdir stage2 | |
201 | -mv $(STAGESTUFF) stage2 | |
202 | ||
203 | stage3: force | |
204 | -mkdir stage3 | |
205 | -mv $(STAGESTUFF) stage3 | |
206 | ||
207 | against=stage2 | |
208 | ||
209 | comparison: force | |
210 | for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done | |
211 | ||
212 | de-stage1: force | |
213 | -(cd stage1 ; mv -f * ..) | |
214 | -rmdir stage1 | |
215 | ||
216 | de-stage2: force | |
217 | -(cd stage2 ; mv -f * ..) | |
218 | -rmdir stage2 | |
219 | ||
220 | de-stage3: force | |
221 | -(cd stage3 ; mv -f * ..) | |
222 | -rmdir stage3 | |
223 | ||
224 | force: | |
225 | ||
226 | # with the gnu make, this is done automatically. | |
227 | ||
228 | Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag) | |
229 | $(SHELL) ./config.status |