annotate lib-src/Makefile.in.in @ 203:850242ba4a81 r20-3b28

Import from CVS: tag r20-3b28
author cvs
date Mon, 13 Aug 2007 10:02:21 +0200
parents f53b5ca2e663
children 262b8bb4a523
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
1 ## Makefile for lib-src subdirectory in XEmacs.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
2 ## Copyright (C) 1985, 1987, 1988, 1993, 1994 Free Software Foundation, Inc.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
3 ## Copyright (C) 1996, 1997 Sun Microsystems, Inc.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
5 ## This file is part of XEmacs.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
7 ## XEmacs is free software; you can redistribute it and/or modify it
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
8 ## under the terms of the GNU General Public License as published by the
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
9 ## Free Software Foundation; either version 2, or (at your option) any
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
10 ## later version.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
12 ## XEmacs is distributed in the hope that it will be useful, but WITHOUT
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
13 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
14 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
15 ## for more details.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
17 ## You should have received a copy of the GNU General Public License
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
18 ## along with XEmacs; see the file COPYING. If not, write to
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
19 ## the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
20 ## Boston, MA 02111-1307, USA.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
22 ## Note: FSF Makefile.in.in does something weird so that the comments
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
23 ## above a certain point in this file are in shell format instead of
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
24 ## in C format. How the hell is this supposed to work? */
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
25
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
26 ## For performance and consistency, no built-in rules
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
27 .SUFFIXES:
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
28 .SUFFIXES: .c .o .i .h
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
29 ## ==================== Things "configure" will edit ====================
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
31 @SET_MAKE@
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
32 SHELL = /bin/sh
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
33 RM = rm -f
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 183
diff changeset
34 pwd = /bin/pwd
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
35
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 CC=@CC@
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 120
diff changeset
37 CPP=@CPP@
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 CFLAGS=@CFLAGS@
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 120
diff changeset
39 CPPFLAGS=@CPPFLAGS@
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 120
diff changeset
40 LDFLAGS=@LDFLAGS@
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 ALLOCA=@ALLOCA@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 LN_S=@LN_S@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 version=@version@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
45 ## ==================== Where To Install Things ====================
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
47 prefix=@prefix@
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
48 exec_prefix=@exec_prefix@
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
49 bindir=@bindir@
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 libdir=@libdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 srcdir=@srcdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 archlibdir=@archlibdir@
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
53 configuration=@configuration@
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
54 ## ==================== Utility Programs for the Build =================
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 INSTALL = @INSTALL@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 INSTALL_PROGRAM = @INSTALL_PROGRAM@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 INSTALL_DATA = @INSTALL_DATA@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
60 ## ========================== Lists of Files ===========================
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
62 ## Things that a user might actually run,
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
63 ## which should be installed in bindir.
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
64 INSTALLABLES = etags ctags b2m gnuclient
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
65 INSTALLABLE_SCRIPTS = rcs-checkin pstogif install-sid send-pr gnudoit gnuattach
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
67 ## Things that Emacs runs internally, or during the build process,
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
68 ## which should not be installed in bindir.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 UTILITIES= make-path wakeup profile make-docfile digest-doc \
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 120
diff changeset
70 sorted-doc movemail cvtmail fakemail yow hexl \
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
71 gnuserv mmencode
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
72 ## These need to be conditional on I18N3 make-msgfile make-po
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
74 ## Like UTILITIES, but they are not system-dependent, and should not be
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
75 ## deleted by the distclean target.
203
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 193
diff changeset
76 GEN_SCRIPTS = rcs2log vcdiff gzip-el.sh install-sid send-pr
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 193
diff changeset
77 TM_SCRIPTS = tm-au tm-file tm-html tm-image tm-mpeg tm-plain tm-ps tmdecode
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 193
diff changeset
78 PKG_SCRIPTS = add-little-package.sh add-big-package.sh
850242ba4a81 Import from CVS: tag r20-3b28
cvs
parents: 193
diff changeset
79 SCRIPTS = $(GEN_SCRIPTS) $(TM_SCRIPTS) $(PKG_SCRIPTS)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 EXECUTABLES= ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 SOURCES = COPYING ChangeLog Makefile.in.in README aixcc.lex emacs.csh \
26
441bb1e64a06 Import from CVS: tag r19-15b96
cvs
parents: 22
diff changeset
84 makedoc.com *.[chy] $(SCRIPTS)
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
85 ## Additional -D flags for movemail (add to MOVE_FLAGS if desired):
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
86 ## MAIL_USE_POP Support mail retrieval from a POP mailbox.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
87 ## MAIL_USE_MMDF Support MMDF mailboxes.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
88 ## MAIL_USE_FLOCK Use flock for file locking (see the comments
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
89 ## about locking in movemail.c)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
90 ## MAIL_UNLINK_SPOOL Unlink the user spool mailbox after reading
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
91 ## it (instead of just emptying it).
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
92 ## KERBEROS Support Kerberized POP.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
93 ## KRB5 Support Kerberos Version 5 pop instead of
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
94 ## Version 4 (define this in addition to
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
95 ## KERBEROS).
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
96 ## HESIOD Support Hesiod lookups of user mailboxes.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
97 ## MAILHOST A string, the host name of the default POP
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
98 ## mail host for the site.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
99
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 114
diff changeset
100 MOVE_FLAGS=
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
101 ##
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
102 ## Additional libraries for movemail:
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
103 ## For KERBEROS
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
104 ## MOVE_LIBS= -lkrb -ldes -lcom_err
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
105 ## For KERBEROS + KRB5
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
106 ## MOVE_LIBS= -lkrb5 -lcrypto -lisode -lcom_err
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
107 ## Add "-lhesiod" if HESIOD is defined.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
108
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 114
diff changeset
109 MOVE_LIBS=
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 114
diff changeset
110
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
111 ## ========================== start of cpp stuff =======================
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 #define NO_SHORTNAMES
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 #define NOT_C_CODE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 #include "../src/config.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 #ifdef USE_GNU_MAKE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 vpath %.c @srcdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 vpath %.h @srcdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 VPATH=@srcdir@
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 120
diff changeset
124 c_switch_general=@c_switch_general@
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 120
diff changeset
125 c_switch_window_system=@c_switch_window_system@
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 120
diff changeset
126 c_switch_all=@c_switch_all@
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 120
diff changeset
127 ld_switch_general=@ld_switch_general@
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 120
diff changeset
128 ld_switch_window_system=@ld_switch_window_system@
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 120
diff changeset
129 ld_switch_all=@ld_switch_all@
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 120
diff changeset
130 ld_libs_general=@ld_libs_general@
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 120
diff changeset
131 ld_libs_window_system=@ld_libs_window_system@
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 120
diff changeset
132 ld_libs_all=@ld_libs_all@
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
134 ## We need to #define emacs to get the right versions of some files.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 120
diff changeset
135
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
136 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
137 lib_src_cppflags = -Demacs -I../src $(CPPFLAGS)
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
138 cflags = $(CFLAGS) $(lib_src_cppflags) $(c_switch_all)
6b37e6ddd302 Import from CVS: tag r20-3b5
cvs
parents: 155
diff changeset
139 ldflags = $(LDFLAGS) $(ld_switch_all) $(ld_libs_general)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
141 ## This is the default compilation command.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
142 ## But we should never rely on it, because some make version
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
143 ## failed to find it for getopt.o.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
144 ## Using an explicit command made it work.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 .c.o:
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 120
diff changeset
146 ${CC} -c $(cflags) $<
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 183
diff changeset
148 all: ${UTILITIES} ${INSTALLABLES} srcdir-symlink.stamp
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 183
diff changeset
150 ## Make symlinks for shell scripts if using --srcdir
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 183
diff changeset
151 srcdir-symlink.stamp:
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 183
diff changeset
152 for f in ${SCRIPTS}; do \
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 183
diff changeset
153 if test ! -r $$f; then ${LN_S} ${srcdir}/$$f $$f; fi; \
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 183
diff changeset
154 done; \
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 183
diff changeset
155 touch $@;
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
156
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
157 #undef MOVEMAIL_NEEDS_BLESSING
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
158 #if !defined (MAIL_USE_FLOCK) && ! defined (MAIL_USE_LOCKF)
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
159 #define MOVEMAIL_NEEDS_BLESSING
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
160 blessmail = blessmail
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 blessmail:
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
162 ../src/xemacs -batch -l ../lisp/utils/blessmail.el
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
163 chmod +x $@
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
164 #endif /* movemail needs blessing */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
166 maybe-blessmail: $(blessmail)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 #ifdef MOVEMAIL_NEEDS_BLESSING
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
168 ## Do not charge ahead and do it! Let the installer decide.
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
169 ## ./blessmail ${archlibdir}/movemail
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
170 @if test `wc -l <blessmail` != 2; then \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
172 echo "*************************************************************";\
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
173 echo "Assuming $$dir is really the mail spool directory, you should";\
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
174 echo "run lib-src/blessmail ${archlibdir}/movemail"; \
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
175 echo "as root, to give movemail appropriate permissions."; \
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
176 echo "Do that after running make install."; \
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
177 echo "You can also do make blessmail. "; \
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
178 echo "*************************************************************";\
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
182 do-blessmail: $(blessmail)
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
183 #ifdef MOVEMAIL_NEEDS_BLESSING
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
184 ./blessmail ${archlibdir}/movemail
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
185 #endif
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 181
diff changeset
186
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
187 ## Install the internal utilities. Until they are installed, we can
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
188 ## just run them directly from lib-src.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 ${archlibdir}: all
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
190 @echo; echo "Installing utilities run internally by XEmacs."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 ./make-path ${archlibdir}
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 183
diff changeset
192 if test `(cd ${archlibdir} && $(pwd))` != `$(pwd)`; then \
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 183
diff changeset
193 for f in ${UTILITIES}; do \
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 183
diff changeset
194 (cd .. && $(INSTALL_PROGRAM) lib-src/$$f ${archlibdir}/$$f) ; \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 done ; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 fi
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 183
diff changeset
197 if test `(cd ${archlibdir} && $(pwd))` \
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 183
diff changeset
198 != `(cd ${srcdir} && $(pwd))`; then \
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 183
diff changeset
199 for f in ${SCRIPTS}; do \
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 183
diff changeset
200 (cd .. && $(INSTALL_PROGRAM) ${srcdir}/$$f ${archlibdir}/$$f); \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 done ; \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
204 ## We do not need to install "wakeup" explicitly, because it will be
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
205 ## copied when this whole directory is copied.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
206 .PHONY : all maybe-blessmail install uninstall
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 install: ${archlibdir}
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
208 @echo; echo "Installing utilities for users to run."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 for file in ${INSTALLABLES} ; do \
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 78
diff changeset
210 (cd .. && $(INSTALL_PROGRAM) lib-src/$${file} ${bindir}/$${file}) ; \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 for file in ${INSTALLABLE_SCRIPTS} ; do \
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 78
diff changeset
213 (cd .. && $(INSTALL_PROGRAM) ${srcdir}/$${file} ${bindir}/$${file}) ; \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 uninstall:
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 78
diff changeset
217 (cd ${bindir} && \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
218 $(RM) ${INSTALLABLES} ${INSTALLABLE_SCRIPTS})
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 78
diff changeset
219 (cd ${archlibdir} && \
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
220 $(RM) ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS})
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 167
diff changeset
222 .PHONY: mostlyclean clean distclean realclean extraclean
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 mostlyclean:
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 167
diff changeset
224 $(RM) *.o *.i core
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 clean: mostlyclean
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
226 $(RM) ${INSTALLABLES} ${UTILITIES}
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 distclean: clean
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
228 $(RM) DOC *.tab.c *.tab.h aixcc.c TAGS
181
bfd6434d15b3 Import from CVS: tag r20-3b17
cvs
parents: 179
diff changeset
229 $(RM) Makefile Makefile.in blessmail config.values
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 realclean: distclean
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 167
diff changeset
231 extraclean: distclean
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
232 $(RM) *~ \#*
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233
171
929b76928fce Import from CVS: tag r20-3b12
cvs
parents: 167
diff changeset
234 .PHONY: unlock relock check
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 unlock:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 chmod u+w $(SOURCES)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 relock:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 chmod u-w $(SOURCES)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
240 ## Test the contents of the directory.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 check:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 @echo "We don't have any tests for XEmacs yet."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 TAGS: etags
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 etags *.[ch]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 GETOPTOBJS = getopt.o getopt1.o $(ALLOCA)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 GETOPTDEPS = $(GETOPTOBJS) ${srcdir}/getopt.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 getopt.o: ${srcdir}/getopt.c ${srcdir}/getopt.h
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 120
diff changeset
250 ${CC} -c $(cflags) ${srcdir}/getopt.c
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 getopt1.o: ${srcdir}/getopt1.c ${srcdir}/getopt.h
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 120
diff changeset
252 ${CC} -c $(cflags) ${srcdir}/getopt1.c
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 alloca.o: ${srcdir}/../src/alloca.c
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
254 ${CC} -c $(cflags) ${srcdir}/../src/alloca.c
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 regex.o: ${srcdir}/../src/regex.c ${srcdir}/../src/regex.h
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 120
diff changeset
257 $(CC) -c `echo ${cflags} | sed 's/-Demacs/ /'` \
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
258 -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
260 etags_args = -I. ${cflags} -I${srcdir} -I${srcdir}/../src \
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
261 -DVERSION='"${version}"' ${srcdir}/etags.c \
193
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 183
diff changeset
262 $(GETOPTOBJS) regex.o $(ldflags)
f53b5ca2e663 Import from CVS: tag r20-3b23
cvs
parents: 183
diff changeset
263 etags_deps = ${srcdir}/etags.c $(GETOPTDEPS) regex.o ../src/config.h
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
265 etags: ${etags_deps}
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
266 $(CC) ${etags_args} -o $@
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
267 ## ctags depends on etags to assure that parallel makes do not write
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
268 ## two etags.o files on top of each other.
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
269 ctags: ${etags_deps} etags
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
270 $(CC) -DCTAGS ${etags_args} -o $@
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 wakeup: ${srcdir}/wakeup.c
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
273 $(CC) ${cflags} ${srcdir}/wakeup.c $(ldflags) -o $@
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275 profile: ${srcdir}/profile.c
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
276 $(CC) ${cflags} ${srcdir}/profile.c $(ldflags) -o $@
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 make-docfile: ${srcdir}/make-docfile.c
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
279 $(CC) ${cflags} ${srcdir}/make-docfile.c $(ldflags) -o $@
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 digest-doc: ${srcdir}/digest-doc.c
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
282 $(CC) ${cflags} ${srcdir}/digest-doc.c $(ldflags) -o $@
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283
175
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
284 sorted-doc: ${srcdir}/sorted-doc.c
2d532a89d707 Import from CVS: tag r20-3b14
cvs
parents: 173
diff changeset
285 $(CC) ${cflags} ${srcdir}/sorted-doc.c $(ldflags) -o $@
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287 b2m: ${srcdir}/b2m.c ../src/config.h
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
288 $(CC) ${cflags} ${srcdir}/b2m.c $(ldflags) -o $@
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 114
diff changeset
290 movemail: ${srcdir}/movemail.c ${srcdir}/pop.c ${srcdir}/pop.h ../src/config.h
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
291 $(CC) ${cflags} ${MOVE_FLAGS} ${srcdir}/movemail.c ${srcdir}/pop.c $(ldflags) ${MOVE_LIBS} -o $@
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 cvtmail: ${srcdir}/cvtmail.c
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
294 $(CC) ${cflags} ${srcdir}/cvtmail.c $(ldflags) -o $@
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296 fakemail: ${srcdir}/fakemail.c ../src/config.h
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
297 $(CC) ${cflags} ${srcdir}/fakemail.c $(ldflags) -o $@
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
299 yow: ${srcdir}/yow.c ../src/paths.h
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
300 $(CC) ${cflags} ${srcdir}/yow.c $(ldflags) -o $@
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
301
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
302 hexl: ${srcdir}/hexl.c
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
303 $(CC) ${cflags} ${srcdir}/hexl.c $(ldflags) -o $@
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 56
diff changeset
305 make-msgfile: ${srcdir}/make-msgfile.c
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
306 $(CC) $(cflags) ${srcdir}/make-msgfile.c $(ldflags) -o $@
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 56
diff changeset
307
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 56
diff changeset
308 make-po: ${srcdir}/make-po.c
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
309 $(CC) $(cflags) ${srcdir}/make-po.c $(ldflags) -o $@
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 56
diff changeset
310
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
311 ## 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
312
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
313 ldflags_gnuserv = $(LDFLAGS) $(ld_switch_all) @libs_xauth@ $(ld_libs_general)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314 gnuslib.o: ${srcdir}/gnuslib.c ${srcdir}/gnuserv.h ../src/config.h
159
3bb7ccffb0c0 Import from CVS: tag r20-3b6
cvs
parents: 157
diff changeset
315 $(CC) -c ${cflags} ${srcdir}/gnuslib.c
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 153
diff changeset
316 gnuclient: ${srcdir}/gnuclient.c gnuslib.o ${srcdir}/gnuserv.h
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
317 $(CC) ${cflags} ${srcdir}/$@.c gnuslib.o ${ldflags_gnuserv} -o $@
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318 gnuserv: ${srcdir}/gnuserv.c gnuslib.o ${srcdir}/gnuserv.h
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
319 $(CC) ${cflags} ${srcdir}/$@.c gnuslib.o ${ldflags_gnuserv} -o $@
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 56
diff changeset
320
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
321 ## mmencode binary is used by tm - but is really part of the metamail package
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
322 ## mmencode.c was merged copy of mmencode.c and codes.c of metamail
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
323 mmencode : ${srcdir}/mmencode.c
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
324 $(CC) ${cflags} ${srcdir}/mmencode.c -o $@
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 12
diff changeset
325
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 56
diff changeset
326
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
327 ## The timer utility (timer.c, getdate.y) is not used in XEmacs
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
328 ## because XEmacs provides built-in timer facilities.
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 make-path: ${srcdir}/make-path.c ../src/config.h
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
331 $(CC) $(cflags) ${srcdir}/make-path.c -o $@
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
332
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
333 ## These are NOT included in INSTALLABLES or UTILITIES.
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 159
diff changeset
334 ## See ../src/Makefile.in.in.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
335 aixcc: ${srcdir}/aixcc.c
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 171
diff changeset
336 $(CC) $(cflags) ${srcdir}/aixcc.c -o $@
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
338 aixcc.c: ${srcdir}/aixcc.lex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339 lex ${srcdir}/aixcc.lex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340 mv lex.yy.c aixcc.c