annotate lib-src/Makefile.in.in @ 438:84b14dcb0985 r21-2-27

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