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