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
|
54
|
121 # Additional -D flags for movemail (add to MOVE_FLAGS if desired):
|
|
122 # MAIL_USE_POP Support mail retrieval from a POP mailbox.
|
|
123 # MAIL_USE_MMDF Support MMDF mailboxes.
|
|
124 # MAIL_USE_FLOCK Use flock for file locking (see the comments
|
|
125 # about locking in movemail.c)
|
|
126 # MAIL_UNLINK_SPOOL Unlink the user spool mailbox after reading
|
|
127 # it (instead of just emptying it).
|
|
128 # KERBEROS Support Kerberized POP.
|
|
129 # KRB5 Support Kerberos Version 5 pop instead of
|
|
130 # Version 4 (define this in addition to
|
|
131 # KERBEROS).
|
|
132 # HESIOD Support Hesiod lookups of user mailboxes.
|
|
133 # MAILHOST A string, the host name of the default POP
|
|
134 # mail host for the sit
|
|
135
|
|
136 MOVE_FLAGS=
|
|
137 #
|
|
138 # Additional libraries for movemail:
|
|
139 # For KERBEROS
|
|
140 # MOVE_LIBS= -lkrb -ldes -lcom_err
|
|
141 # For KERBEROS + KRB5
|
|
142 # MOVE_LIBS= -lkrb5 -lcrypto -lisode -lcom_err
|
|
143 # Add "-lhesiod" if HESIOD is defined.
|
|
144
|
|
145 MOVE_LIBS=
|
|
146
|
0
|
147 /* ========================== start of cpp stuff ======================= */
|
|
148
|
|
149 /* From here on, comments must be done in C syntax. (see comment above
|
|
150 about this.) */
|
|
151
|
|
152 #define NO_SHORTNAMES
|
|
153 #define THIS_IS_YMAKEFILE
|
|
154 #define NOT_C_CODE
|
|
155 #include "../src/config.h"
|
|
156
|
|
157 /* With the traditional VPATH setting, it is not possible to
|
|
158 simultaneously compile in-place and in another directory. The
|
|
159 mistaken definition is that *all* dependencies are searched for in
|
|
160 the VPATH directory, rather than just the dependencies that are not
|
|
161 themselves targets. Thus, if there is an up-to-date .o file in the
|
|
162 in-place location, it will not get recompiled in the not-in-place
|
|
163 location.
|
|
164
|
14
|
165 The GNU Make "vpath" directive continues this tradition, but at
|
0
|
166 least lets you restrict the classes of files that it applies to.
|
|
167 This allows us to kludge around the problem. */
|
|
168 #ifdef USE_GNU_MAKE
|
|
169 vpath %.c @srcdir@
|
|
170 vpath %.h @srcdir@
|
|
171 /* now list files that should NOT be searched in the srcdir.
|
14
|
172 This includes any .c or .h that is built from something else
|
0
|
173 (e.g. a .in file). */
|
|
174 /* none here */
|
|
175 #else
|
|
176 VPATH=@srcdir@
|
|
177 #endif
|
|
178
|
14
|
179 /* We will not really call alloca;
|
|
180 do not let the file name alloca.c get messed up. */
|
0
|
181 #ifdef alloca
|
|
182 #undef alloca
|
|
183 #endif
|
|
184
|
|
185 /* Some s/*.h files define this to request special libraries. */
|
|
186 #ifndef LIBS_SYSTEM
|
|
187 #define LIBS_SYSTEM
|
|
188 #endif
|
|
189
|
|
190 /* Some m/*.h files define this to request special libraries. */
|
|
191 #ifndef LIBS_MACHINE
|
|
192 #define LIBS_MACHINE
|
|
193 #endif
|
|
194
|
|
195 #ifndef LD_SWITCH_X_SYSTEM
|
|
196 #define LD_SWITCH_X_SYSTEM
|
|
197 #endif
|
|
198
|
|
199 #ifndef LD_SWITCH_X_SITE
|
|
200 #define LD_SWITCH_X_SITE
|
|
201 #endif
|
|
202
|
|
203 #ifndef C_SWITCH_SYSTEM
|
|
204 #define C_SWITCH_SYSTEM
|
|
205 #endif
|
|
206
|
|
207 #ifndef C_SWITCH_MACHINE
|
|
208 #define C_SWITCH_MACHINE
|
|
209 #endif
|
|
210
|
|
211 #ifndef C_SWITCH_X_SYSTEM
|
|
212 #define C_SWITCH_X_SYSTEM
|
|
213 #endif
|
|
214
|
|
215 #ifndef C_SWITCH_X_SITE
|
|
216 #define C_SWITCH_X_SITE
|
|
217 #endif
|
|
218
|
|
219 #ifndef C_SWITCH_SITE
|
|
220 #define C_SWITCH_SITE
|
|
221 #endif
|
|
222
|
|
223 #ifndef LD_SWITCH_SITE
|
|
224 #define LD_SWITCH_SITE
|
|
225 #endif
|
|
226
|
|
227 #undef MOVEMAIL_NEEDS_BLESSING
|
|
228 #ifndef MAIL_USE_FLOCK
|
|
229 #ifndef MAIL_USE_LOCKF
|
|
230 #define MOVEMAIL_NEEDS_BLESSING
|
|
231 #endif
|
|
232 #endif
|
|
233
|
|
234 #ifdef MOVEMAIL_NEEDS_BLESSING
|
|
235 #define BLESSMAIL blessmail
|
|
236 #else
|
|
237 #define BLESSMAIL
|
|
238 #endif
|
|
239
|
|
240 #if defined (HAVE_SOCKS)
|
|
241 #define LIB_SOCKS -lsocks
|
|
242 #else
|
|
243 #define LIB_SOCKS
|
|
244 #endif
|
|
245
|
|
246 LOADLIBES=LIBS_SYSTEM LIBS_MACHINE LIB_SOCKS LD_SWITCH_SITE
|
|
247 LOAD_X_LIBES=LD_SWITCH_X_SITE LD_SWITCH_X_SYSTEM
|
|
248 C_SWITCH_X=C_SWITCH_X_SITE C_SWITCH_X_SYSTEM C_SWITCH_SITE
|
|
249
|
|
250 /* We need to #define emacs to get the right versions of some files.
|
|
251 Some other files - those shared with other GNU utilities - need
|
|
252 HAVE_CONFIG_H #defined before they know they can take advantage of
|
|
253 the information in ../src/config.h. */
|
|
254 ALL_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -Demacs -DHAVE_CONFIG_H \
|
|
255 -DSTDC_HEADERS -I. -I../src -I${srcdir} -I${srcdir}/../src \
|
|
256 ${LDFLAGS} ${CPPFLAGS} ${CFLAGS}
|
|
257 BASE_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H -DSTDC_HEADERS \
|
|
258 -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS}
|
|
259 LINK_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -Demacs -DHAVE_CONFIG_H \
|
|
260 -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CFLAGS}
|
|
261 CPP_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -Demacs -DHAVE_CONFIG_H \
|
|
262 -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS}
|
14
|
263 /* Formerly -Demacs was missing, but it is needed to suppress the
|
|
264 defining of malloc to xmalloc. [Yes it is fucked up. Blame FSF
|
0
|
265 for this.] */
|
|
266 ALLOCA_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -Demacs -DHAVE_CONFIG_H \
|
|
267 -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS}
|
|
268
|
|
269 /* This is the default compilation command.
|
|
270 But we should never rely on it, because some make version
|
|
271 failed to find it for getopt.o.
|
|
272 Using an explicit command made it work. */
|
|
273 .c.o:
|
|
274 ${CC} -c ${CPP_CFLAGS} $<
|
|
275
|
|
276 all: ${UTILITIES} ${INSTALLABLES} ${SCRIPTS}
|
|
277
|
|
278 /* Ultrix sh blows chunks. It core dumps on these statements. */
|
|
279
|
|
280 #ifndef ultrix
|
|
281 rcs2log: force
|
|
282 @if [ ! -r rcs2log ] ; then \
|
|
283 rm -f rcs2log ; ${LN_S} ${srcdir}/rcs2log . ; \
|
|
284 fi
|
|
285
|
|
286 vcdiff: force
|
|
287 @if [ ! -r vcdiff ] ; then \
|
|
288 rm -f vcdiff ; ${LN_S} ${srcdir}/vcdiff . ; \
|
|
289 fi
|
|
290
|
26
|
291 tm-au :
|
|
292 ${LN_S} ${srcdir}/$@ $@
|
|
293 tm-file :
|
|
294 ${LN_S} ${srcdir}/$@ $@
|
|
295 tm-html :
|
|
296 ${LN_S} ${srcdir}/$@ $@
|
|
297 tm-image :
|
|
298 ${LN_S} ${srcdir}/$@ $@
|
|
299 tm-mpeg :
|
|
300 ${LN_S} ${srcdir}/$@ $@
|
|
301 tm-plain :
|
|
302 ${LN_S} ${srcdir}/$@ $@
|
|
303 tm-ps :
|
|
304 ${LN_S} ${srcdir}/$@ $@
|
|
305 tmdecode :
|
|
306 ${LN_S} ${srcdir}/$@ $@
|
38
|
307 gzip-el.sh:
|
|
308 ${LN_S} ${srcdir}/$@ $@
|
22
|
309
|
0
|
310 force:
|
|
311 #else /* ultrix */
|
|
312 rcs2log:
|
|
313 vcdiff:
|
22
|
314 $(TM_SCRIPTS):
|
0
|
315 #endif /* ultrix */
|
|
316
|
|
317 #ifdef MOVEMAIL_NEEDS_BLESSING
|
|
318 blessmail:
|
|
319 ../src/emacs -batch -l ../lisp/blessmail.el
|
|
320 chmod +x blessmail
|
|
321 #endif
|
|
322
|
|
323 maybe-blessmail: BLESSMAIL
|
|
324 #ifdef MOVEMAIL_NEEDS_BLESSING
|
14
|
325 /* Do not charge ahead and do it! Let the installer decide.
|
0
|
326 ./blessmail ${archlibdir}/movemail */
|
|
327 @if [ `wc -l <blessmail` != 2 ] ; then \
|
|
328 dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \
|
|
329 echo Assuming $$dir is really the mail spool directory, you should; \
|
|
330 echo run lib-src/blessmail ${archlibdir}/movemail; \
|
|
331 echo as root, to give movemail appropriate permissions.; \
|
|
332 echo Do that after running make install.; \
|
|
333 fi
|
|
334 #endif
|
|
335
|
|
336 /* Install the internal utilities. Until they are installed, we can
|
|
337 just run them directly from lib-src. */
|
|
338 ${archlibdir}: all
|
|
339 @echo
|
|
340 @echo "Installing utilities run internally by XEmacs."
|
|
341 ./make-path ${archlibdir}
|
|
342 if [ `(cd ${archlibdir} && /bin/pwd)` != `/bin/pwd` ]; then \
|
|
343 for file in ${UTILITIES}; do \
|
|
344 (cd ..; $(INSTALL_PROGRAM) lib-src/$$file ${archlibdir}/$$file) ; \
|
|
345 done ; \
|
|
346 fi
|
|
347 if [ `(cd ${archlibdir} && /bin/pwd)` \
|
|
348 != `(cd ${srcdir} && /bin/pwd)` ]; then \
|
|
349 for file in ${SCRIPTS}; do \
|
|
350 (cd ..; $(INSTALL_PROGRAM) ${srcdir}/$$file ${archlibdir}/$$file); \
|
|
351 done ; \
|
|
352 fi
|
|
353
|
|
354 /* We don't need to install `wakeup' explicitly, because it will be
|
|
355 copied when this whole directory is copied. */
|
|
356 install: ${archlibdir}
|
|
357 @echo
|
|
358 @echo "Installing utilities for users to run."
|
|
359 for file in ${INSTALLABLES} ; do \
|
|
360 (cd ..; $(INSTALL_PROGRAM) lib-src/$${file} ${bindir}/$${file}) ; \
|
|
361 done
|
|
362 for file in ${INSTALLABLE_SCRIPTS} ; do \
|
|
363 (cd ..; $(INSTALL_PROGRAM) ${srcdir}/$${file} ${bindir}/$${file}) ; \
|
|
364 done
|
|
365
|
|
366 uninstall:
|
|
367 (cd ${bindir}; \
|
|
368 rm -f ${INSTALLABLES} ${INSTALLABLE_SCRIPTS})
|
|
369 (cd ${archlibdir}; \
|
|
370 rm -f ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS})
|
|
371
|
|
372 mostlyclean:
|
|
373 -rm -f core *.o
|
|
374
|
|
375 clean: mostlyclean
|
|
376 -rm -f ${INSTALLABLES} ${UTILITIES}
|
|
377
|
|
378 distclean: clean
|
12
|
379 -rm -f DOC* *.tab.c *.tab.h aixcc.c TAGS
|
0
|
380 -rm -f Makefile Makefile.in blessmail
|
|
381
|
|
382 realclean: distclean
|
|
383 true
|
|
384
|
|
385 extraclean: realclean
|
|
386 -rm -f *~ \#*
|
|
387
|
|
388 unlock:
|
|
389 chmod u+w $(SOURCES)
|
|
390
|
|
391 relock:
|
|
392 chmod u-w $(SOURCES)
|
|
393
|
|
394 /* Test the contents of the directory. */
|
|
395 check:
|
|
396 @echo "We don't have any tests for XEmacs yet."
|
|
397
|
|
398 TAGS: etags
|
|
399 etags *.[ch]
|
|
400
|
|
401 GETOPTOBJS = getopt.o getopt1.o $(ALLOCA)
|
|
402 GETOPTDEPS = $(GETOPTOBJS) ${srcdir}/getopt.h
|
|
403 getopt.o: ${srcdir}/getopt.c ${srcdir}/getopt.h
|
|
404 ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt.c
|
|
405 getopt1.o: ${srcdir}/getopt1.c ${srcdir}/getopt.h
|
|
406 ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt1.c
|
|
407 alloca.o: ${srcdir}/../src/alloca.c
|
|
408 ${CC} -c ${ALLOCA_CFLAGS} ${srcdir}/../src/alloca.c
|
|
409
|
|
410 #ifdef REGEXP_IN_LIBC
|
|
411 REGEXOBJ =
|
|
412 REGEXDEPS =
|
|
413 #else
|
|
414 REGEXOBJ = regex.o
|
|
415 REGEXDEPS = $(REGEXOBJ) ${srcdir}/../src/regex.h
|
|
416 #endif
|
|
417
|
|
418 regex.o: ${srcdir}/../src/regex.c ${srcdir}/../src/regex.h
|
|
419 $(CC) -c ${BASE_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c
|
|
420
|
|
421 etags: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXDEPS) ../src/config.h
|
|
422 $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" -DETAGS_REGEXPS ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXOBJ) $(LOADLIBES) -o etags
|
|
423
|
14
|
424 /* We depend on etags to assure that parallel makes do not write two
|
0
|
425 etags.o files on top of each other. */
|
|
426 ctags: ${srcdir}/etags.c $(GETOPTDEPS) etags
|
|
427 $(CC) ${ALL_CFLAGS} -DCTAGS -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(LOADLIBES) -o ctags
|
|
428
|
|
429 wakeup: ${srcdir}/wakeup.c
|
|
430 $(CC) ${ALL_CFLAGS} ${srcdir}/wakeup.c $(LOADLIBES) -o wakeup
|
|
431
|
|
432 profile: ${srcdir}/profile.c
|
|
433 $(CC) ${ALL_CFLAGS} ${srcdir}/profile.c $(LOADLIBES) -o profile
|
|
434
|
|
435 make-docfile: ${srcdir}/make-docfile.c
|
|
436 $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) -o make-docfile
|
|
437
|
|
438 digest-doc: ${srcdir}/digest-doc.c
|
|
439 $(CC) ${ALL_CFLAGS} ${srcdir}/digest-doc.c $(LOADLIBES) -o digest-doc
|
|
440
|
|
441 sorted-doc: ${srcdir}/sorted-doc.c ${ALLOCA}
|
|
442 $(CC) ${ALL_CFLAGS} ${srcdir}/sorted-doc.c ${ALLOCA} $(LOADLIBES) -o sorted-doc
|
|
443
|
|
444 b2m: ${srcdir}/b2m.c ../src/config.h
|
|
445 $(CC) ${ALL_CFLAGS} ${srcdir}/b2m.c $(LOADLIBES) -o b2m
|
|
446
|
54
|
447 movemail: ${srcdir}/movemail.c ${srcdir}/pop.c ${srcdir}/pop.h ../src/config.h
|
|
448 $(CC) ${ALL_CFLAGS} ${srcdir}/movemail.c ${srcdir}/pop.c $(LOADLIBES) -o movemail
|
0
|
449
|
|
450 cvtmail: ${srcdir}/cvtmail.c
|
|
451 $(CC) ${ALL_CFLAGS} ${srcdir}/cvtmail.c $(LOADLIBES) -o cvtmail
|
|
452
|
|
453 fakemail: ${srcdir}/fakemail.c ../src/config.h
|
|
454 $(CC) ${ALL_CFLAGS} ${srcdir}/fakemail.c $(LOADLIBES) -o fakemail
|
|
455
|
|
456 yow: ${srcdir}/yow.c ../src/paths.h
|
|
457 $(CC) ${ALL_CFLAGS} ${srcdir}/yow.c $(LOADLIBES) -o yow
|
|
458
|
|
459 emacsserver: ${srcdir}/emacsserver.c ../src/config.h
|
|
460 $(CC) ${ALL_CFLAGS} ${srcdir}/emacsserver.c $(LOADLIBES) -o emacsserver
|
|
461
|
|
462 emacsclient: ${srcdir}/emacsclient.c ../src/config.h
|
|
463 $(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c $(LOADLIBES) -o emacsclient
|
|
464
|
|
465 hexl: ${srcdir}/hexl.c
|
|
466 $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl
|
|
467
|
14
|
468 /* Why oh why does HP not include half of the standard X distribution? */
|
0
|
469
|
|
470 #if defined (HAVE_XAUTH)
|
|
471 gnuslib.o: ${srcdir}/gnuslib.c ${srcdir}/gnuserv.h ../src/config.h
|
|
472 $(CC) -c ${CPP_CFLAGS} ${C_SWITCH_X} ${srcdir}/gnuslib.c
|
|
473
|
|
474 gnuclient: ${srcdir}/gnuclient.c gnuslib.o ${srcdir}/gnuserv.h
|
|
475 $(CC) ${ALL_CFLAGS} -o gnuclient ${srcdir}/gnuclient.c gnuslib.o $(LOADLIBES) $(LOAD_X_LIBES) -lXau
|
|
476 gnuattach: ${srcdir}/gnuclient.c gnuslib.o ${srcdir}/gnuserv.h gnuclient
|
|
477 $(CC) ${ALL_CFLAGS} -o gnuattach -DGNUATTACH ${srcdir}/gnuclient.c gnuslib.o $(LOADLIBES) $(LOAD_X_LIBES) -lXau
|
|
478 gnudoit: ${srcdir}/gnudoit.c gnuslib.o ${srcdir}/gnuserv.h
|
|
479 $(CC) ${ALL_CFLAGS} -o gnudoit ${srcdir}/gnudoit.c gnuslib.o $(LOADLIBES) $(LOAD_X_LIBES) -lXau
|
|
480 gnuserv: ${srcdir}/gnuserv.c gnuslib.o ${srcdir}/gnuserv.h
|
|
481 $(CC) ${ALL_CFLAGS} ${C_SWITCH_X} -o gnuserv ${srcdir}/gnuserv.c gnuslib.o $(LOADLIBES) $(LOAD_X_LIBES) -lXau
|
|
482
|
|
483 #else /* !HAVE_XAUTH */
|
|
484
|
|
485 gnuclient: ${srcdir}/gnuclient.c gnuslib.o ${srcdir}/gnuserv.h
|
|
486 $(CC) ${ALL_CFLAGS} -o gnuclient ${srcdir}/gnuclient.c gnuslib.o $(LOADLIBES)
|
|
487 gnuattach: ${srcdir}/gnuclient.c gnuslib.o ${srcdir}/gnuserv.h gnuclient
|
|
488 $(CC) ${ALL_CFLAGS} -o gnuattach -DGNUATTACH ${srcdir}/gnuclient.c gnuslib.o $(LOADLIBES)
|
|
489 gnudoit: ${srcdir}/gnudoit.c gnuslib.o ${srcdir}/gnuserv.h
|
|
490 $(CC) ${ALL_CFLAGS} -o gnudoit ${srcdir}/gnudoit.c gnuslib.o $(LOADLIBES)
|
|
491 gnuserv: ${srcdir}/gnuserv.c gnuslib.o ${srcdir}/gnuserv.h
|
|
492 $(CC) ${ALL_CFLAGS} -o gnuserv ${srcdir}/gnuserv.c gnuslib.o $(LOADLIBES)
|
|
493 #endif /* !HAVE_XAUTH */
|
|
494
|
14
|
495 /* mmencode binary is used by tm - but is really part of the metamail package */
|
|
496 /* mmencode.c was merged copy of mmencode.c and codes.c of metamail */
|
|
497 mmencode : ${srcdir}/mmencode.c
|
|
498 $(CC) ${ALL_CFLAGS} ${srcdir}/mmencode.c -o mmencode
|
|
499
|
0
|
500 /* The timer utility (timer.c, getdate.y) is not used in XEmacs
|
|
501 because XEmacs provides built-in timer facilities. */
|
|
502
|
|
503 make-path: ${srcdir}/make-path.c ../src/config.h
|
|
504 $(CC) $(ALL_CFLAGS) ${srcdir}/make-path.c -o make-path
|
|
505
|
|
506 /* These are NOT included in INSTALLABLES or UTILITIES.
|
|
507 See ../src/Makefile.in.in. */
|
|
508 emacstool: ${srcdir}/emacstool.c
|
|
509 $(CC) ${srcdir}/emacstool.c -o emacstool ${ALL_CFLAGS} \
|
|
510 -lsuntool -lsunwindow -lpixrect $(LOADLIBES)
|
|
511
|
|
512 /* For SUN Japanese Language Environment. */
|
|
513 nemacstool: ${srcdir}/emacstool.c
|
|
514 $(CC) -o nemacstool -DJLE ${ALL_CFLAGS} ${srcdir}/emacstool.c \
|
|
515 -lsuntool -lmle -lsunwindow -lpixrect $(LOADLIBES)
|
|
516
|
|
517 xvetool: ${srcdir}/emacstool.c
|
|
518 $(CC) -o xvetool -DXVIEW ${ALL_CFLAGS} ${srcdir}/emacstool.c \
|
|
519 -lxview -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \
|
|
520 $(LOADLIBES)
|
|
521
|
|
522 xveterm: ${srcdir}/emacstool.c
|
|
523 $(CC) -o xveterm -DXVIEW -DTTERM ${ALL_CFLAGS} ${srcdir}/emacstool.c \
|
|
524 -lxview -lolgx -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \
|
|
525 $(LOADLIBES)
|
|
526
|
|
527 aixcc: ${srcdir}/aixcc.c
|
|
528 $(CC) $(ALL_CFLAGS) -o aixcc ${srcdir}/aixcc.c
|
|
529
|
|
530 aixcc.c: ${srcdir}/aixcc.lex
|
|
531 lex ${srcdir}/aixcc.lex
|
|
532 mv lex.yy.c aixcc.c
|