0
|
1 /* Makefile for lib-src subdirectory in XEmacs.
|
|
2
|
|
3 Copyright (C) 1985, 1987, 1988, 1993, 1994 Free Software Foundation, Inc.
|
|
4
|
|
5 This file is part of XEmacs.
|
|
6
|
|
7 XEmacs is free software; you can redistribute it and/or modify it
|
|
8 under the terms of the GNU General Public License as published by the
|
|
9 Free Software Foundation; either version 2, or (at your option) any
|
|
10 later version.
|
|
11
|
|
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT
|
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
15 for more details.
|
|
16
|
|
17 You should have received a copy of the GNU General Public License
|
|
18 along with XEmacs; see the file COPYING. If not, write to the Free
|
|
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
20 Boston, MA 02111-1307, USA. */
|
|
21
|
|
22 /* Note: FSF Makefile.in.in does something weird so that the comments
|
|
23 above a certain point in this file are in shell format instead of
|
14
|
24 in C format. I do not know how the hell this is supposed to work. */
|
0
|
25
|
14
|
26 /* Avoid trouble on systems where the $SHELL variable might be
|
0
|
27 inherited from the environment. */
|
|
28 SHELL = /bin/sh
|
|
29
|
14
|
30 /* Some people use these in paths they define. We do not want their paths
|
0
|
31 getting changed on them. */
|
|
32 #undef sparc
|
|
33 #undef sun
|
|
34 #undef unix
|
|
35 #undef sgi
|
|
36 #undef NeXT
|
|
37 #undef mips
|
|
38
|
14
|
39 /* ==================== Things "configure" will edit ==================== */
|
0
|
40
|
|
41 CC=@CC@
|
|
42 CFLAGS=@CFLAGS@
|
|
43 ALLOCA=@ALLOCA@
|
|
44 YACC=@YACC@
|
|
45 LN_S=@LN_S@
|
|
46 version=@version@
|
|
47 configuration=@configuration@
|
|
48
|
|
49 /* ==================== Where To Install Things ==================== */
|
|
50
|
|
51 /* The default location for installation. Everything is placed in
|
|
52 subdirectories of this directory. The default values for many of
|
|
53 the variables below are expressed in terms of this one, so you may
|
|
54 not need to change them. This is set with the --prefix option to
|
14
|
55 "../configure". */
|
0
|
56 prefix=@prefix@
|
|
57
|
14
|
58 /* Like "prefix", but used for architecture-specific files. This is
|
|
59 set with the --exec-prefix option to "../configure". */
|
0
|
60 exec_prefix=@exec_prefix@
|
|
61
|
|
62 /* Where to install Emacs and other binaries that people will want to
|
|
63 run directly (like etags). This is set with the --bindir option
|
14
|
64 to "../configure". */
|
0
|
65 bindir=@bindir@
|
|
66
|
|
67 /* Where to install and expect executable files to be run by Emacs
|
|
68 rather than directly by users, and other architecture-dependent
|
|
69 data. ${archlibdir} is usually below this. This is set with the
|
14
|
70 --libdir option to "../configure". */
|
0
|
71 libdir=@libdir@
|
|
72
|
|
73 /* Where to find the source code. This is set by the configure
|
14
|
74 "--srcdir" option. However, the value of ${srcdir} in
|
0
|
75 this makefile is not identical to what was specified with --srcdir,
|
14
|
76 since the variable here has "/lib-src" added at the end. */
|
0
|
77 srcdir=@srcdir@
|
|
78
|
|
79 /* ==================== Emacs-specific directories ==================== */
|
|
80
|
|
81 /* These variables hold the values Emacs will actually use. They are
|
|
82 based on the values of the standard Make variables above.
|
|
83
|
|
84 Where to put executables to be run by Emacs rather than the user.
|
|
85 This path usually includes the Emacs version and configuration name,
|
|
86 so that multiple configurations for multiple versions of Emacs may
|
|
87 be installed at once. This can be set with the --archlibdir option
|
14
|
88 to "../configure". */
|
0
|
89 archlibdir=@archlibdir@
|
|
90
|
|
91 /* ==================== Utility Programs for the Build ================= */
|
|
92
|
|
93 /* ../configure figures out the correct values for these. */
|
|
94 INSTALL = @INSTALL@
|
|
95 INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
96 INSTALL_DATA = @INSTALL_DATA@
|
|
97
|
|
98 /* ========================== Lists of Files =========================== */
|
|
99
|
|
100 /* Things that a user might actually run,
|
|
101 which should be installed in bindir. */
|
|
102 INSTALLABLES = etags ctags emacsclient b2m gnuclient gnuattach gnudoit
|
22
|
103 INSTALLABLE_SCRIPTS = rcs-checkin pstogif
|
0
|
104
|
|
105 /* Things that Emacs runs internally, or during the build process,
|
|
106 which should not be installed in bindir. */
|
|
107 UTILITIES= make-path wakeup profile make-docfile digest-doc \
|
|
108 sorted-doc movemail cvtmail fakemail yow emacsserver hexl \
|
14
|
109 gnuserv mmencode
|
0
|
110
|
14
|
111 /* Like UTILITIES, but they are not system-dependent, and should not be
|
0
|
112 deleted by the distclean target. */
|
14
|
113 TM_SCRIPTS=tm-au tm-file tm-html tm-image tm-mpeg tm-plain tm-ps tmdecode
|
38
|
114 SCRIPTS= rcs2log vcdiff gzip-el.sh $(TM_SCRIPTS)
|
0
|
115
|
|
116 EXECUTABLES= ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}
|
|
117
|
|
118 SOURCES = COPYING ChangeLog Makefile.in.in README aixcc.lex emacs.csh \
|
26
|
119 makedoc.com *.[chy] $(SCRIPTS)
|
0
|
120
|
56
|
121 /*
|
|
122 Additional -D flags for movemail (add to MOVE_FLAGS if desired):
|
|
123 MAIL_USE_POP Support mail retrieval from a POP mailbox.
|
|
124 MAIL_USE_MMDF Support MMDF mailboxes.
|
|
125 MAIL_USE_FLOCK Use flock for file locking (see the comments
|
|
126 about locking in movemail.c)
|
|
127 MAIL_UNLINK_SPOOL Unlink the user spool mailbox after reading
|
|
128 it (instead of just emptying it).
|
|
129 KERBEROS Support Kerberized POP.
|
|
130 KRB5 Support Kerberos Version 5 pop instead of
|
|
131 Version 4 (define this in addition to
|
|
132 KERBEROS).
|
|
133 HESIOD Support Hesiod lookups of user mailboxes.
|
|
134 MAILHOST A string, the host name of the default POP
|
|
135 mail host for the sit
|
|
136 */
|
54
|
137
|
|
138 MOVE_FLAGS=
|
56
|
139
|
|
140 /*
|
|
141 Additional libraries for movemail:
|
|
142 For KERBEROS
|
|
143 MOVE_LIBS= -lkrb -ldes -lcom_err
|
|
144 For KERBEROS + KRB5
|
|
145 MOVE_LIBS= -lkrb5 -lcrypto -lisode -lcom_err
|
|
146 Add "-lhesiod" if HESIOD is defined.
|
|
147 */
|
54
|
148
|
|
149 MOVE_LIBS=
|
|
150
|
0
|
151 /* ========================== start of cpp stuff ======================= */
|
|
152
|
|
153 /* From here on, comments must be done in C syntax. (see comment above
|
|
154 about this.) */
|
|
155
|
56
|
156 /* Apparently the above comment is bogus. There is no place where
|
|
157 shell-style comments are allowed. -slb */
|
|
158
|
0
|
159 #define NO_SHORTNAMES
|
|
160 #define THIS_IS_YMAKEFILE
|
|
161 #define NOT_C_CODE
|
|
162 #include "../src/config.h"
|
|
163
|
|
164 /* With the traditional VPATH setting, it is not possible to
|
|
165 simultaneously compile in-place and in another directory. The
|
|
166 mistaken definition is that *all* dependencies are searched for in
|
|
167 the VPATH directory, rather than just the dependencies that are not
|
|
168 themselves targets. Thus, if there is an up-to-date .o file in the
|
|
169 in-place location, it will not get recompiled in the not-in-place
|
|
170 location.
|
|
171
|
14
|
172 The GNU Make "vpath" directive continues this tradition, but at
|
0
|
173 least lets you restrict the classes of files that it applies to.
|
|
174 This allows us to kludge around the problem. */
|
|
175 #ifdef USE_GNU_MAKE
|
|
176 vpath %.c @srcdir@
|
|
177 vpath %.h @srcdir@
|
|
178 /* now list files that should NOT be searched in the srcdir.
|
14
|
179 This includes any .c or .h that is built from something else
|
0
|
180 (e.g. a .in file). */
|
|
181 /* none here */
|
|
182 #else
|
|
183 VPATH=@srcdir@
|
|
184 #endif
|
|
185
|
14
|
186 /* We will not really call alloca;
|
|
187 do not let the file name alloca.c get messed up. */
|
0
|
188 #ifdef alloca
|
|
189 #undef alloca
|
|
190 #endif
|
|
191
|
|
192 /* Some s/*.h files define this to request special libraries. */
|
|
193 #ifndef LIBS_SYSTEM
|
|
194 #define LIBS_SYSTEM
|
|
195 #endif
|
|
196
|
|
197 /* Some m/*.h files define this to request special libraries. */
|
|
198 #ifndef LIBS_MACHINE
|
|
199 #define LIBS_MACHINE
|
|
200 #endif
|
|
201
|
|
202 #ifndef LD_SWITCH_X_SYSTEM
|
|
203 #define LD_SWITCH_X_SYSTEM
|
|
204 #endif
|
|
205
|
|
206 #ifndef LD_SWITCH_X_SITE
|
|
207 #define LD_SWITCH_X_SITE
|
|
208 #endif
|
|
209
|
|
210 #ifndef C_SWITCH_SYSTEM
|
|
211 #define C_SWITCH_SYSTEM
|
|
212 #endif
|
|
213
|
|
214 #ifndef C_SWITCH_MACHINE
|
|
215 #define C_SWITCH_MACHINE
|
|
216 #endif
|
|
217
|
|
218 #ifndef C_SWITCH_X_SYSTEM
|
|
219 #define C_SWITCH_X_SYSTEM
|
|
220 #endif
|
|
221
|
|
222 #ifndef C_SWITCH_X_SITE
|
|
223 #define C_SWITCH_X_SITE
|
|
224 #endif
|
|
225
|
|
226 #ifndef C_SWITCH_SITE
|
|
227 #define C_SWITCH_SITE
|
|
228 #endif
|
|
229
|
|
230 #ifndef LD_SWITCH_SITE
|
|
231 #define LD_SWITCH_SITE
|
|
232 #endif
|
|
233
|
|
234 #undef MOVEMAIL_NEEDS_BLESSING
|
|
235 #ifndef MAIL_USE_FLOCK
|
|
236 #ifndef MAIL_USE_LOCKF
|
|
237 #define MOVEMAIL_NEEDS_BLESSING
|
|
238 #endif
|
|
239 #endif
|
|
240
|
|
241 #ifdef MOVEMAIL_NEEDS_BLESSING
|
|
242 #define BLESSMAIL blessmail
|
|
243 #else
|
|
244 #define BLESSMAIL
|
|
245 #endif
|
|
246
|
|
247 #if defined (HAVE_SOCKS)
|
|
248 #define LIB_SOCKS -lsocks
|
|
249 #else
|
|
250 #define LIB_SOCKS
|
|
251 #endif
|
|
252
|
|
253 LOADLIBES=LIBS_SYSTEM LIBS_MACHINE LIB_SOCKS LD_SWITCH_SITE
|
|
254 LOAD_X_LIBES=LD_SWITCH_X_SITE LD_SWITCH_X_SYSTEM
|
|
255 C_SWITCH_X=C_SWITCH_X_SITE C_SWITCH_X_SYSTEM C_SWITCH_SITE
|
|
256
|
|
257 /* We need to #define emacs to get the right versions of some files.
|
|
258 Some other files - those shared with other GNU utilities - need
|
|
259 HAVE_CONFIG_H #defined before they know they can take advantage of
|
|
260 the information in ../src/config.h. */
|
|
261 ALL_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -Demacs -DHAVE_CONFIG_H \
|
|
262 -DSTDC_HEADERS -I. -I../src -I${srcdir} -I${srcdir}/../src \
|
|
263 ${LDFLAGS} ${CPPFLAGS} ${CFLAGS}
|
|
264 BASE_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H -DSTDC_HEADERS \
|
|
265 -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS}
|
|
266 LINK_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -Demacs -DHAVE_CONFIG_H \
|
|
267 -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CFLAGS}
|
|
268 CPP_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -Demacs -DHAVE_CONFIG_H \
|
|
269 -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS}
|
14
|
270 /* Formerly -Demacs was missing, but it is needed to suppress the
|
|
271 defining of malloc to xmalloc. [Yes it is fucked up. Blame FSF
|
0
|
272 for this.] */
|
|
273 ALLOCA_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -Demacs -DHAVE_CONFIG_H \
|
|
274 -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS}
|
|
275
|
|
276 /* This is the default compilation command.
|
|
277 But we should never rely on it, because some make version
|
|
278 failed to find it for getopt.o.
|
|
279 Using an explicit command made it work. */
|
|
280 .c.o:
|
|
281 ${CC} -c ${CPP_CFLAGS} $<
|
|
282
|
|
283 all: ${UTILITIES} ${INSTALLABLES} ${SCRIPTS}
|
|
284
|
|
285 /* Ultrix sh blows chunks. It core dumps on these statements. */
|
|
286
|
|
287 #ifndef ultrix
|
|
288 rcs2log: force
|
|
289 @if [ ! -r rcs2log ] ; then \
|
|
290 rm -f rcs2log ; ${LN_S} ${srcdir}/rcs2log . ; \
|
|
291 fi
|
|
292
|
|
293 vcdiff: force
|
|
294 @if [ ! -r vcdiff ] ; then \
|
|
295 rm -f vcdiff ; ${LN_S} ${srcdir}/vcdiff . ; \
|
|
296 fi
|
|
297
|
26
|
298 tm-au :
|
|
299 ${LN_S} ${srcdir}/$@ $@
|
|
300 tm-file :
|
|
301 ${LN_S} ${srcdir}/$@ $@
|
|
302 tm-html :
|
|
303 ${LN_S} ${srcdir}/$@ $@
|
|
304 tm-image :
|
|
305 ${LN_S} ${srcdir}/$@ $@
|
|
306 tm-mpeg :
|
|
307 ${LN_S} ${srcdir}/$@ $@
|
|
308 tm-plain :
|
|
309 ${LN_S} ${srcdir}/$@ $@
|
|
310 tm-ps :
|
|
311 ${LN_S} ${srcdir}/$@ $@
|
|
312 tmdecode :
|
|
313 ${LN_S} ${srcdir}/$@ $@
|
38
|
314 gzip-el.sh:
|
|
315 ${LN_S} ${srcdir}/$@ $@
|
22
|
316
|
0
|
317 force:
|
|
318 #else /* ultrix */
|
|
319 rcs2log:
|
|
320 vcdiff:
|
22
|
321 $(TM_SCRIPTS):
|
0
|
322 #endif /* ultrix */
|
|
323
|
|
324 #ifdef MOVEMAIL_NEEDS_BLESSING
|
|
325 blessmail:
|
|
326 ../src/emacs -batch -l ../lisp/blessmail.el
|
|
327 chmod +x blessmail
|
|
328 #endif
|
|
329
|
|
330 maybe-blessmail: BLESSMAIL
|
|
331 #ifdef MOVEMAIL_NEEDS_BLESSING
|
14
|
332 /* Do not charge ahead and do it! Let the installer decide.
|
0
|
333 ./blessmail ${archlibdir}/movemail */
|
|
334 @if [ `wc -l <blessmail` != 2 ] ; then \
|
|
335 dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \
|
|
336 echo Assuming $$dir is really the mail spool directory, you should; \
|
|
337 echo run lib-src/blessmail ${archlibdir}/movemail; \
|
|
338 echo as root, to give movemail appropriate permissions.; \
|
|
339 echo Do that after running make install.; \
|
|
340 fi
|
|
341 #endif
|
|
342
|
|
343 /* Install the internal utilities. Until they are installed, we can
|
|
344 just run them directly from lib-src. */
|
|
345 ${archlibdir}: all
|
|
346 @echo
|
|
347 @echo "Installing utilities run internally by XEmacs."
|
|
348 ./make-path ${archlibdir}
|
|
349 if [ `(cd ${archlibdir} && /bin/pwd)` != `/bin/pwd` ]; then \
|
|
350 for file in ${UTILITIES}; do \
|
|
351 (cd ..; $(INSTALL_PROGRAM) lib-src/$$file ${archlibdir}/$$file) ; \
|
|
352 done ; \
|
|
353 fi
|
|
354 if [ `(cd ${archlibdir} && /bin/pwd)` \
|
|
355 != `(cd ${srcdir} && /bin/pwd)` ]; then \
|
|
356 for file in ${SCRIPTS}; do \
|
|
357 (cd ..; $(INSTALL_PROGRAM) ${srcdir}/$$file ${archlibdir}/$$file); \
|
|
358 done ; \
|
|
359 fi
|
|
360
|
|
361 /* We don't need to install `wakeup' explicitly, because it will be
|
|
362 copied when this whole directory is copied. */
|
|
363 install: ${archlibdir}
|
|
364 @echo
|
|
365 @echo "Installing utilities for users to run."
|
|
366 for file in ${INSTALLABLES} ; do \
|
|
367 (cd ..; $(INSTALL_PROGRAM) lib-src/$${file} ${bindir}/$${file}) ; \
|
|
368 done
|
|
369 for file in ${INSTALLABLE_SCRIPTS} ; do \
|
|
370 (cd ..; $(INSTALL_PROGRAM) ${srcdir}/$${file} ${bindir}/$${file}) ; \
|
|
371 done
|
|
372
|
|
373 uninstall:
|
|
374 (cd ${bindir}; \
|
|
375 rm -f ${INSTALLABLES} ${INSTALLABLE_SCRIPTS})
|
|
376 (cd ${archlibdir}; \
|
|
377 rm -f ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS})
|
|
378
|
|
379 mostlyclean:
|
|
380 -rm -f core *.o
|
|
381
|
|
382 clean: mostlyclean
|
|
383 -rm -f ${INSTALLABLES} ${UTILITIES}
|
|
384
|
|
385 distclean: clean
|
12
|
386 -rm -f DOC* *.tab.c *.tab.h aixcc.c TAGS
|
0
|
387 -rm -f Makefile Makefile.in blessmail
|
|
388
|
|
389 realclean: distclean
|
|
390 true
|
|
391
|
|
392 extraclean: realclean
|
|
393 -rm -f *~ \#*
|
|
394
|
|
395 unlock:
|
|
396 chmod u+w $(SOURCES)
|
|
397
|
|
398 relock:
|
|
399 chmod u-w $(SOURCES)
|
|
400
|
|
401 /* Test the contents of the directory. */
|
|
402 check:
|
|
403 @echo "We don't have any tests for XEmacs yet."
|
|
404
|
|
405 TAGS: etags
|
|
406 etags *.[ch]
|
|
407
|
|
408 GETOPTOBJS = getopt.o getopt1.o $(ALLOCA)
|
|
409 GETOPTDEPS = $(GETOPTOBJS) ${srcdir}/getopt.h
|
|
410 getopt.o: ${srcdir}/getopt.c ${srcdir}/getopt.h
|
|
411 ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt.c
|
|
412 getopt1.o: ${srcdir}/getopt1.c ${srcdir}/getopt.h
|
|
413 ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt1.c
|
|
414 alloca.o: ${srcdir}/../src/alloca.c
|
|
415 ${CC} -c ${ALLOCA_CFLAGS} ${srcdir}/../src/alloca.c
|
|
416
|
|
417 #ifdef REGEXP_IN_LIBC
|
|
418 REGEXOBJ =
|
|
419 REGEXDEPS =
|
|
420 #else
|
|
421 REGEXOBJ = regex.o
|
|
422 REGEXDEPS = $(REGEXOBJ) ${srcdir}/../src/regex.h
|
|
423 #endif
|
|
424
|
|
425 regex.o: ${srcdir}/../src/regex.c ${srcdir}/../src/regex.h
|
|
426 $(CC) -c ${BASE_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c
|
|
427
|
|
428 etags: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXDEPS) ../src/config.h
|
|
429 $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" -DETAGS_REGEXPS ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXOBJ) $(LOADLIBES) -o etags
|
|
430
|
14
|
431 /* We depend on etags to assure that parallel makes do not write two
|
0
|
432 etags.o files on top of each other. */
|
|
433 ctags: ${srcdir}/etags.c $(GETOPTDEPS) etags
|
|
434 $(CC) ${ALL_CFLAGS} -DCTAGS -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(LOADLIBES) -o ctags
|
|
435
|
|
436 wakeup: ${srcdir}/wakeup.c
|
|
437 $(CC) ${ALL_CFLAGS} ${srcdir}/wakeup.c $(LOADLIBES) -o wakeup
|
|
438
|
|
439 profile: ${srcdir}/profile.c
|
|
440 $(CC) ${ALL_CFLAGS} ${srcdir}/profile.c $(LOADLIBES) -o profile
|
|
441
|
|
442 make-docfile: ${srcdir}/make-docfile.c
|
|
443 $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) -o make-docfile
|
|
444
|
|
445 digest-doc: ${srcdir}/digest-doc.c
|
|
446 $(CC) ${ALL_CFLAGS} ${srcdir}/digest-doc.c $(LOADLIBES) -o digest-doc
|
|
447
|
|
448 sorted-doc: ${srcdir}/sorted-doc.c ${ALLOCA}
|
|
449 $(CC) ${ALL_CFLAGS} ${srcdir}/sorted-doc.c ${ALLOCA} $(LOADLIBES) -o sorted-doc
|
|
450
|
|
451 b2m: ${srcdir}/b2m.c ../src/config.h
|
|
452 $(CC) ${ALL_CFLAGS} ${srcdir}/b2m.c $(LOADLIBES) -o b2m
|
|
453
|
54
|
454 movemail: ${srcdir}/movemail.c ${srcdir}/pop.c ${srcdir}/pop.h ../src/config.h
|
|
455 $(CC) ${ALL_CFLAGS} ${srcdir}/movemail.c ${srcdir}/pop.c $(LOADLIBES) -o movemail
|
0
|
456
|
|
457 cvtmail: ${srcdir}/cvtmail.c
|
|
458 $(CC) ${ALL_CFLAGS} ${srcdir}/cvtmail.c $(LOADLIBES) -o cvtmail
|
|
459
|
|
460 fakemail: ${srcdir}/fakemail.c ../src/config.h
|
|
461 $(CC) ${ALL_CFLAGS} ${srcdir}/fakemail.c $(LOADLIBES) -o fakemail
|
|
462
|
|
463 yow: ${srcdir}/yow.c ../src/paths.h
|
|
464 $(CC) ${ALL_CFLAGS} ${srcdir}/yow.c $(LOADLIBES) -o yow
|
|
465
|
|
466 emacsserver: ${srcdir}/emacsserver.c ../src/config.h
|
|
467 $(CC) ${ALL_CFLAGS} ${srcdir}/emacsserver.c $(LOADLIBES) -o emacsserver
|
|
468
|
|
469 emacsclient: ${srcdir}/emacsclient.c ../src/config.h
|
|
470 $(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c $(LOADLIBES) -o emacsclient
|
|
471
|
|
472 hexl: ${srcdir}/hexl.c
|
|
473 $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl
|
|
474
|
14
|
475 /* Why oh why does HP not include half of the standard X distribution? */
|
0
|
476
|
|
477 #if defined (HAVE_XAUTH)
|
|
478 gnuslib.o: ${srcdir}/gnuslib.c ${srcdir}/gnuserv.h ../src/config.h
|
|
479 $(CC) -c ${CPP_CFLAGS} ${C_SWITCH_X} ${srcdir}/gnuslib.c
|
|
480
|
|
481 gnuclient: ${srcdir}/gnuclient.c gnuslib.o ${srcdir}/gnuserv.h
|
|
482 $(CC) ${ALL_CFLAGS} -o gnuclient ${srcdir}/gnuclient.c gnuslib.o $(LOADLIBES) $(LOAD_X_LIBES) -lXau
|
|
483 gnuattach: ${srcdir}/gnuclient.c gnuslib.o ${srcdir}/gnuserv.h gnuclient
|
|
484 $(CC) ${ALL_CFLAGS} -o gnuattach -DGNUATTACH ${srcdir}/gnuclient.c gnuslib.o $(LOADLIBES) $(LOAD_X_LIBES) -lXau
|
|
485 gnudoit: ${srcdir}/gnudoit.c gnuslib.o ${srcdir}/gnuserv.h
|
|
486 $(CC) ${ALL_CFLAGS} -o gnudoit ${srcdir}/gnudoit.c gnuslib.o $(LOADLIBES) $(LOAD_X_LIBES) -lXau
|
|
487 gnuserv: ${srcdir}/gnuserv.c gnuslib.o ${srcdir}/gnuserv.h
|
|
488 $(CC) ${ALL_CFLAGS} ${C_SWITCH_X} -o gnuserv ${srcdir}/gnuserv.c gnuslib.o $(LOADLIBES) $(LOAD_X_LIBES) -lXau
|
|
489
|
|
490 #else /* !HAVE_XAUTH */
|
|
491
|
|
492 gnuclient: ${srcdir}/gnuclient.c gnuslib.o ${srcdir}/gnuserv.h
|
|
493 $(CC) ${ALL_CFLAGS} -o gnuclient ${srcdir}/gnuclient.c gnuslib.o $(LOADLIBES)
|
|
494 gnuattach: ${srcdir}/gnuclient.c gnuslib.o ${srcdir}/gnuserv.h gnuclient
|
|
495 $(CC) ${ALL_CFLAGS} -o gnuattach -DGNUATTACH ${srcdir}/gnuclient.c gnuslib.o $(LOADLIBES)
|
|
496 gnudoit: ${srcdir}/gnudoit.c gnuslib.o ${srcdir}/gnuserv.h
|
|
497 $(CC) ${ALL_CFLAGS} -o gnudoit ${srcdir}/gnudoit.c gnuslib.o $(LOADLIBES)
|
|
498 gnuserv: ${srcdir}/gnuserv.c gnuslib.o ${srcdir}/gnuserv.h
|
|
499 $(CC) ${ALL_CFLAGS} -o gnuserv ${srcdir}/gnuserv.c gnuslib.o $(LOADLIBES)
|
|
500 #endif /* !HAVE_XAUTH */
|
|
501
|
14
|
502 /* mmencode binary is used by tm - but is really part of the metamail package */
|
|
503 /* mmencode.c was merged copy of mmencode.c and codes.c of metamail */
|
|
504 mmencode : ${srcdir}/mmencode.c
|
|
505 $(CC) ${ALL_CFLAGS} ${srcdir}/mmencode.c -o mmencode
|
|
506
|
0
|
507 /* The timer utility (timer.c, getdate.y) is not used in XEmacs
|
|
508 because XEmacs provides built-in timer facilities. */
|
|
509
|
|
510 make-path: ${srcdir}/make-path.c ../src/config.h
|
|
511 $(CC) $(ALL_CFLAGS) ${srcdir}/make-path.c -o make-path
|
|
512
|
|
513 /* These are NOT included in INSTALLABLES or UTILITIES.
|
|
514 See ../src/Makefile.in.in. */
|
|
515 emacstool: ${srcdir}/emacstool.c
|
|
516 $(CC) ${srcdir}/emacstool.c -o emacstool ${ALL_CFLAGS} \
|
|
517 -lsuntool -lsunwindow -lpixrect $(LOADLIBES)
|
|
518
|
|
519 /* For SUN Japanese Language Environment. */
|
|
520 nemacstool: ${srcdir}/emacstool.c
|
|
521 $(CC) -o nemacstool -DJLE ${ALL_CFLAGS} ${srcdir}/emacstool.c \
|
|
522 -lsuntool -lmle -lsunwindow -lpixrect $(LOADLIBES)
|
|
523
|
|
524 xvetool: ${srcdir}/emacstool.c
|
|
525 $(CC) -o xvetool -DXVIEW ${ALL_CFLAGS} ${srcdir}/emacstool.c \
|
|
526 -lxview -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \
|
|
527 $(LOADLIBES)
|
|
528
|
|
529 xveterm: ${srcdir}/emacstool.c
|
|
530 $(CC) -o xveterm -DXVIEW -DTTERM ${ALL_CFLAGS} ${srcdir}/emacstool.c \
|
|
531 -lxview -lolgx -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \
|
|
532 $(LOADLIBES)
|
|
533
|
|
534 aixcc: ${srcdir}/aixcc.c
|
|
535 $(CC) $(ALL_CFLAGS) -o aixcc ${srcdir}/aixcc.c
|
|
536
|
|
537 aixcc.c: ${srcdir}/aixcc.lex
|
|
538 lex ${srcdir}/aixcc.lex
|
|
539 mv lex.yy.c aixcc.c
|