aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorJim Blandy1993-05-15 22:20:34 +0000
committerJim Blandy1993-05-15 22:20:34 +0000
commit0d73e8e39ca9aa38a369af684d8fddf063ec2f78 (patch)
tree11a33fe125eb4477c82b6fbe1904431d6ecac706 /lib-src
parent6d8856bd6b3e3bda9c42de5d62f1ef36816f6442 (diff)
downloademacs-0d73e8e39ca9aa38a369af684d8fddf063ec2f78.tar.gz
emacs-0d73e8e39ca9aa38a369af684d8fddf063ec2f78.zip
Install patches from David J. Mackenzie to make the srcdir option
work. * Makefile.in (srcdir): Get this value from the top-level Makefile. (INSTALLABLES): Split this into two lists - INSTALLABLES and INSTALLABLE_SCRIPTS. (INSTALLABLE_SCRIPTS): New list. (EXECUTABLES): Include INSTALLABLE_SCRIPTS. (${archlibdir}): The scripts to be installed live in the source tree, not in the object tree. (test-distrib): Note that the data file lives in the source tree, not the object tree. (GETOPTDEPS): Note that getopt.h lives in the source tree. (all other targets): Change references to source files to use ${srcdir}, except for config.h, which lives in the object dir. (timer.o): Note that this depends on ../src/config.h.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/Makefile.in123
1 files changed, 65 insertions, 58 deletions
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in
index 85c7207159d..3d97f17aab2 100644
--- a/lib-src/Makefile.in
+++ b/lib-src/Makefile.in
@@ -41,12 +41,12 @@ bindir=${exec_prefix}/bin
41# data. ${archlibdir} is usually below this. 41# data. ${archlibdir} is usually below this.
42libdir=${exec_prefix}/lib 42libdir=${exec_prefix}/lib
43 43
44# Where to find the source code - setting this to anything but 44# Where to find the source code. The source code for Emacs's C kernel is
45# . doesn't work yet. The source code for Emacs's C kernel is
46# expected to be in ${srcdir}/src, and the source code for Emacs's 45# expected to be in ${srcdir}/src, and the source code for Emacs's
47# utility programs is expected to be in ${srcdir}/lib-src. This is 46# utility programs is expected to be in ${srcdir}/lib-src. This is
48# set by the configure script's `--srcdir' option. 47# set by the configure script's `--srcdir' option.
49srcdir=. 48srcdir=@srcdir@/lib-src
49VPATH=@srcdir@/lib-src
50 50
51# ==================== Emacs-specific directories ==================== 51# ==================== Emacs-specific directories ====================
52 52
@@ -80,7 +80,8 @@ INSTALL_DATA = ${INSTALL}
80# ============================= Targets ============================== 80# ============================= Targets ==============================
81 81
82# Things that a user might actually run, which should be installed in bindir. 82# Things that a user might actually run, which should be installed in bindir.
83INSTALLABLES = etags ctags emacsclient b2m rcs-checkin 83INSTALLABLES = etags ctags emacsclient b2m
84INSTALLABLE_SCRIPTS = rcs-checkin
84 85
85# Things that Emacs runs internally, or during the build process, 86# Things that Emacs runs internally, or during the build process,
86# which should not be installed in bindir. 87# which should not be installed in bindir.
@@ -91,7 +92,7 @@ UTILITIES= test-distrib make-path wakeup make-docfile digest-doc sorted-doc \
91# deleted by the distclean target. 92# deleted by the distclean target.
92SCRIPTS= rcs2log vcdiff 93SCRIPTS= rcs2log vcdiff
93 94
94EXECUTABLES= ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} 95EXECUTABLES= ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}
95 96
96SOURCES = COPYING ChangeLog Makefile.in README aixcc.lex emacs.csh \ 97SOURCES = COPYING ChangeLog Makefile.in README aixcc.lex emacs.csh \
97 makedoc.com *.[chy] rcs2log vcdiff 98 makedoc.com *.[chy] rcs2log vcdiff
@@ -111,7 +112,11 @@ ${archlibdir}: all
111 @echo "Installing utilities run internally by Emacs." 112 @echo "Installing utilities run internally by Emacs."
112 ./make-path ${archlibdir} 113 ./make-path ${archlibdir}
113 if [ `(cd ${archlibdir};/bin/pwd)` != `/bin/pwd` ]; then \ 114 if [ `(cd ${archlibdir};/bin/pwd)` != `/bin/pwd` ]; then \
114 for file in ${EXECUTABLES} ; do \ 115 for file in ${UTILITIES} ${INSTALLABLES}; do \
116 cp $${file} ${archlibdir} ; \
117 chmod 755 ${archlibdir}/$${file} ; \
118 done ; \
119 cd ${srcdir}; for file in ${SCRIPTS} ${INSTALLABLE_SCRIPTS}; do \
115 cp $${file} ${archlibdir} ; \ 120 cp $${file} ${archlibdir} ; \
116 chmod 755 ${archlibdir}/$${file} ; \ 121 chmod 755 ${archlibdir}/$${file} ; \
117 done ; \ 122 done ; \
@@ -171,94 +176,96 @@ TAGS: etags
171# have not been clobbered by whatever means were used to copy and 176# have not been clobbered by whatever means were used to copy and
172# distribute Emacs. If they were clobbered, all the .elc files were 177# distribute Emacs. If they were clobbered, all the .elc files were
173# clobbered too. 178# clobbered too.
174test-distrib: test-distrib.c 179test-distrib: ${srcdir}/test-distrib.c
175 $(CC) -o test-distrib test-distrib.c 180 $(CC) -o test-distrib ${srcdir}/test-distrib.c
176 ./test-distrib 181 ./test-distrib ${srcdir}/testfile
177 182
178GETOPTOBJS = getopt.o getopt1.o 183GETOPTOBJS = getopt.o getopt1.o
179GETOPTDEPS = $(GETOPTOBJS) getopt.h 184GETOPTDEPS = $(GETOPTOBJS) ${srcdir}/getopt.h
180getopt.o: getopt.c getopt.h 185getopt.o: getopt.c getopt.h
181getopt1.o: getopt1.c getopt.h 186getopt1.o: getopt1.c getopt.h
182 187
183etags: etags.c $(GETOPTDEPS) 188etags: ${srcdir}/etags.c $(GETOPTDEPS)
184 $(CC) ${CFLAGS} -DETAGS etags.c $(GETOPTOBJS) $(LOADLIBES) -o etags 189 $(CC) ${CFLAGS} -DETAGS ${srcdir}/etags.c $(GETOPTOBJS) $(LOADLIBES) -o etags
185 190
186ctags: etags.c $(GETOPTDEPS) 191ctags: ${srcdir}/etags.c $(GETOPTDEPS)
187 $(CC) ${CFLAGS} -DCTAGS etags.c $(GETOPTOBJS) $(LOADLIBES) -o ctags 192 $(CC) ${CFLAGS} -DCTAGS ${srcdir}/etags.c $(GETOPTOBJS) $(LOADLIBES) -o ctags
188 193
189wakeup: wakeup.c 194wakeup: ${srcdir}/wakeup.c
190 $(CC) ${CFLAGS} wakeup.c $(LOADLIBES) -o wakeup 195 $(CC) ${CFLAGS} ${srcdir}/wakeup.c $(LOADLIBES) -o wakeup
191 196
192make-docfile: make-docfile.c 197make-docfile: ${srcdir}/make-docfile.c
193 $(CC) ${CFLAGS} make-docfile.c $(LOADLIBES) -o make-docfile 198 $(CC) ${CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) -o make-docfile
194 199
195digest-doc: digest-doc.c 200digest-doc: ${srcdir}/digest-doc.c
196 $(CC) ${CFLAGS} digest-doc.c $(LOADLIBES) -o digest-doc 201 $(CC) ${CFLAGS} ${srcdir}/digest-doc.c $(LOADLIBES) -o digest-doc
197 202
198sorted-doc: sorted-doc.c 203sorted-doc: ${srcdir}/sorted-doc.c
199 $(CC) ${CFLAGS} sorted-doc.c $(LOADLIBES) -o sorted-doc 204 $(CC) ${CFLAGS} ${srcdir}/sorted-doc.c $(LOADLIBES) -o sorted-doc
200 205
201b2m: b2m.c ../src/config.h 206b2m: ${srcdir}/b2m.c ../src/config.h
202 $(CC) ${CFLAGS} b2m.c $(LOADLIBES) -o b2m 207 $(CC) -I${srcdir}/../src ${CFLAGS} ${srcdir}/b2m.c $(LOADLIBES) -o b2m
203 208
204movemail: movemail.c ../src/config.h 209movemail: ${srcdir}/movemail.c ../src/config.h
205 $(CC) ${CFLAGS} movemail.c $(LOADLIBES) -o movemail 210 $(CC) -I${srcdir}/../src ${CFLAGS} ${srcdir}/movemail.c $(LOADLIBES) -o movemail
206 211
207cvtmail: cvtmail.c 212cvtmail: ${srcdir}/cvtmail.c
208 $(CC) ${CFLAGS} cvtmail.c $(LOADLIBES) -o cvtmail 213 $(CC) ${CFLAGS} ${srcdir}/cvtmail.c $(LOADLIBES) -o cvtmail
209 214
210fakemail: fakemail.c ../src/config.h 215fakemail: ${srcdir}/fakemail.c ../src/config.h
211 $(CC) ${CFLAGS} fakemail.c $(LOADLIBES) -o fakemail 216 $(CC) -I${srcdir}/../src ${CFLAGS} ${srcdir}/fakemail.c $(LOADLIBES) -o fakemail
212 217
213yow: yow.c ../src/paths.h 218yow: ${srcdir}/yow.c ../src/paths.h
214 $(CC) ${CFLAGS} yow.c $(LOADLIBES) -o yow 219 $(CC) ${CFLAGS} ${srcdir}/yow.c $(LOADLIBES) -o yow
215 220
216env: env.c ../src/config.h 221env: ${srcdir}/env.c ../src/config.h
217 $(CC) -DEMACS ${CFLAGS} env.c $(LOADLIBES) -o env 222 $(CC) -DEMACS -I${srcdir}/../src ${CFLAGS} ${srcdir}/env.c $(LOADLIBES) -o env
218 223
219emacsserver: emacsserver.c ../src/config.h 224emacsserver: ${srcdir}/emacsserver.c ../src/config.h
220 $(CC) ${CFLAGS} emacsserver.c $(LOADLIBES) -o emacsserver 225 $(CC) -I${srcdir}/../src ${CFLAGS} ${srcdir}/emacsserver.c $(LOADLIBES) -o emacsserver
221 226
222emacsclient: emacsclient.c ../src/config.h 227emacsclient: ${srcdir}/emacsclient.c ../src/config.h
223 $(CC) ${CFLAGS} emacsclient.c $(LOADLIBES) -o emacsclient 228 $(CC) -I${srcdir}/../src ${CFLAGS} ${srcdir}/emacsclient.c $(LOADLIBES) -o emacsclient
224 229
225hexl: hexl.c 230hexl: ${srcdir}/hexl.c
226 $(CC) ${CFLAGS} hexl.c $(LOADLIBES) -o hexl 231 $(CC) ${CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl
227 232
228getdate.o: getdate.y ../src/config.h 233getdate.o: ${srcdir}/getdate.y ../src/config.h
229 ${YACC} ${YFLAGS} getdate.y 234 ${YACC} ${YFLAGS} ${srcdir}/getdate.y
230 $(CC) $(CFLAGS) -c y.tab.c 235 $(CC) -I${srcdir}/../src $(CFLAGS) -c y.tab.c
231 mv y.tab.o getdate.o 236 mv y.tab.o getdate.o
237timer.o: ${srcdir}/timer.c ../src/config.h
238 $(CC) -c -I${srcdir}/../src $(CFLAGS) ${srcdir}/timer.c
232timer: getdate.o timer.o 239timer: getdate.o timer.o
233 $(CC) $(CFLAGS) getdate.o timer.o -o timer 240 $(CC) -I${srcdir}/../src $(CFLAGS) getdate.o timer.o -o timer
234 241
235make-path: make-path.c 242make-path: ${srcdir}/make-path.c
236 $(CC) $(CFLAGS) make-path.c -o make-path 243 $(CC) $(CFLAGS) ${srcdir}/make-path.c -o make-path
237 244
238# These are NOT included in INSTALLABLES or UTILITIES. 245# These are NOT included in INSTALLABLES or UTILITIES.
239# See ../src/ymakefile. 246# See ../src/ymakefile.
240emacstool: emacstool.c 247emacstool: ${srcdir}/emacstool.c
241 $(CC) emacstool.c -o emacstool ${CFLAGS} \ 248 $(CC) ${srcdir}/emacstool.c -o emacstool ${CFLAGS} \
242 -lsuntool -lsunwindow -lpixrect $(LOADLIBES) 249 -lsuntool -lsunwindow -lpixrect $(LOADLIBES)
243 250
244# For SUN Japanese Language Environment 251# For SUN Japanese Language Environment
245nemacstool: emacstool.c 252nemacstool: ${srcdir}/emacstool.c
246 $(CC) -o nemacstool -DJLE ${CFLAGS} emacstool.c \ 253 $(CC) -o nemacstool -DJLE ${CFLAGS} ${srcdir}/emacstool.c \
247 -lsuntool -lmle -lsunwindow -lpixrect $(LOADLIBES) 254 -lsuntool -lmle -lsunwindow -lpixrect $(LOADLIBES)
248 255
249xvetool: emacstool.c 256xvetool: ${srcdir}/emacstool.c
250 $(CC) -o xvetool -DXVIEW ${CFLAGS} emacstool.c \ 257 $(CC) -o xvetool -DXVIEW ${CFLAGS} ${srcdir}/emacstool.c \
251 -lxview -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \ 258 -lxview -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \
252 $(LOADLIBES) 259 $(LOADLIBES)
253 260
254xveterm: emacstool.c 261xveterm: ${srcdir}/emacstool.c
255 $(CC) -o xveterm -DXVIEW -DTTERM ${CFLAGS} emacstool.c \ 262 $(CC) -o xveterm -DXVIEW -DTTERM ${CFLAGS} ${srcdir}/emacstool.c \
256 -lxview -lolgx -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \ 263 -lxview -lolgx -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \
257 $(LOADLIBES) 264 $(LOADLIBES)
258 265
259aixcc: aixcc.c 266aixcc: ${srcdir}/aixcc.c
260 $(CC) $(CFLAGS) -o aixcc aixcc.c 267 $(CC) $(CFLAGS) -o aixcc ${srcdir}/aixcc.c
261 268
262aixcc.c: aixcc.lex 269aixcc.c: ${srcdir}/aixcc.lex
263 lex aixcc.lex 270 lex ${srcdir}/aixcc.lex
264 mv lex.yy.c aixcc.c 271 mv lex.yy.c aixcc.c