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