annotate lib-src/Makefile.in.in @ 155:43dd3413c7c7 r20-3b4

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