annotate lib-src/Makefile.in.in @ 54:05472e90ae02 r19-16-pre2

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