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