annotate lib-src/Makefile.in.in @ 157:6b37e6ddd302 r20-3b5

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