annotate lib-src/Makefile.in.in @ 149:538048ae2ab8 r20-3b1

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