annotate lib-src/Makefile.in.in @ 5933:c1e8f3294298 cygwin

revert timeval comment, backed out change to winsock.h and just lots of warnings??? Also updated config.inc.samp to reflect a way to work around lack of windows-runnable hg
author Henry Thompson <ht@markup.co.uk>
date Thu, 10 Dec 2015 17:55:59 +0000
parents 0e2f2837c2bd
children
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.
3062
21d92abaac3a [xemacs-hg @ 2005-11-13 10:39:28 by ben]
ben
parents: 2720
diff changeset
4 ## Copyright (C) 2005 Ben Wing.
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
5
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
6 ## This file is part of XEmacs.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
7
5402
308d34e9f07d Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents: 4894
diff changeset
8 ## XEmacs is free software: you can redistribute it and/or modify it
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
9 ## under the terms of the GNU General Public License as published by the
5402
308d34e9f07d Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents: 4894
diff changeset
10 ## Free Software Foundation, either version 3 of the License, or (at your
308d34e9f07d Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents: 4894
diff changeset
11 ## option) any later version.
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
12
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
13 ## 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
14 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
15 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
16 ## for more details.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
17
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
18 ## You should have received a copy of the GNU General Public License
5402
308d34e9f07d Changed bulk of GPLv2 or later files identified by script
Mats Lidell <matsl@xemacs.org>
parents: 4894
diff changeset
19 ## along with XEmacs. If not, see <http://www.gnu.org/licenses/>.
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
20
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
21 ## Note: FSF Makefile.in.in does something weird so that the comments
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
22 ## 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
23 ## in C format. How the hell is this supposed to work? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
24
5512
4aa8ee813265 Add a DESTDIR variable to all Makefiles, defaulting to the empty string, and
Jerry James <james@xemacs.org>
parents: 5402
diff changeset
25 DESTDIR=
4aa8ee813265 Add a DESTDIR variable to all Makefiles, defaulting to the empty string, and
Jerry James <james@xemacs.org>
parents: 5402
diff changeset
26
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
27 ## For performance and consistency, no built-in rules
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
28 .SUFFIXES:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
29 .SUFFIXES: .c .h .o
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
30 ## ==================== Things "configure" will edit ====================
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
31
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
32 @SET_MAKE@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
33 SHELL = /bin/sh
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
34 RM = rm -f
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
35 pwd = /bin/pwd
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
36
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
37 CC=@CC@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
38 CPP=@CPP@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
39 CFLAGS=@CFLAGS@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
40 CPPFLAGS=@CPPFLAGS@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
41 LDFLAGS=@LDFLAGS@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
42 ALLOCA=@ALLOCA@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
43 LN_S=@LN_S@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
44 version=@version@
3972
6cd3955b7e4d [xemacs-hg @ 2007-05-21 03:50:13 by stephent]
stephent
parents: 3083
diff changeset
45 etags_xemacs_version=@verbose_version@
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
46
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
47 ## 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
48 ## by configure.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
49 PROGNAME=@PROGNAME@
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 ## ==================== Where To Install Things ====================
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
52
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
53 prefix=@prefix@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
54 exec_prefix=@exec_prefix@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
55 bindir=@bindir@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
56 libdir=@libdir@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
57 srcdir=@srcdir@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
58 datadir=@datadir@
4118
9aa33376bb5e [xemacs-hg @ 2007-08-15 12:28:06 by michaels]
michaels
parents: 3972
diff changeset
59 datarootdir=@datarootdir@
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
60 instvardir=@instvardir@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
61 top_srcdir=@top_srcdir@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
62 archlibdir=@archlibdir@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
63 configuration=@configuration@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
64 moduledir=@moduledir@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
65 sitemoduledir=@sitemoduledir@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
66
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
67 ## ==================== Utility Programs for the Build =================
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
68
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
69 INSTALL = @install_pp@ @INSTALL@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
70 INSTALL_PROGRAM = @INSTALL_PROGRAM@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
71 INSTALL_DATA = @INSTALL_DATA@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
72
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
73 ## ========================== Lists of Files ===========================
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
74
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
75 #define NO_SHORTNAMES
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
76 #define NOT_C_CODE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
77 #include "../src/config.h"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
78
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
79 #ifndef WIN32_NATIVE
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
80 #define INSTALL_GNUSERV
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
81 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
82
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
83 ## ----------------------------------------------------------------
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
84 ## Things that a user might actually run directly,
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
85 ## which should be installed in ${bindir}.
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
86
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
87 PUBLIC_INSTALLABLE_EXES=\
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
88 #ifdef INSTALL_GNUSERV
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
89 gnuclient\
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
90 #endif
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
91 #ifdef HAVE_SHLIB
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
92 ellcc\
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
93 #endif
819
6504113e7c2d [xemacs-hg @ 2002-04-25 18:03:23 by andyp]
andyp
parents: 776
diff changeset
94 #ifdef HAVE_MS_WINDOWS
6504113e7c2d [xemacs-hg @ 2002-04-25 18:03:23 by andyp]
andyp
parents: 776
diff changeset
95 winclient\
6504113e7c2d [xemacs-hg @ 2002-04-25 18:03:23 by andyp]
andyp
parents: 776
diff changeset
96 #endif
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
97 etags ctags b2m ootags
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
98
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
99 #ifdef INSTALL_GNUSERV
4782
1523f1d28be1 Remove more obsolete files. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents: 4773
diff changeset
100 PUBLIC_INSTALLABLE_SCRIPTS=gnudoit gnuattach
1523f1d28be1 Remove more obsolete files. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents: 4773
diff changeset
101 #else
1523f1d28be1 Remove more obsolete files. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents: 4773
diff changeset
102 PUBLIC_INSTALLABLE_SCRIPTS=
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
103 #endif
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
104
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
105 PUBLIC_INSTALLABLES = ${PUBLIC_INSTALLABLE_EXES} ${PUBLIC_INSTALLABLE_SCRIPTS}
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
106
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
107 ## ----------------------------------------------------------------
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
108 ## Things that XEmacs runs internally on the user's behalf,
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
109 ## which should be installed in ${archlibdir}.
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
110
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
111 PRIVATE_INSTALLABLE_EXES=\
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
112 #ifdef INSTALL_GNUSERV
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
113 gnuserv\
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
114 #endif
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
115 #ifdef WIN32_NATIVE
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
116 i minitar\
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
117 #else
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
118 fakemail\
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
119 #endif
4773
c858892e4f2b Remove build rules that try to make wakeup out of the now nonexistent wakeup.c.
Jerry James <james@xemacs.org>
parents: 4118
diff changeset
120 profile make-docfile digest-doc\
4785
d6cfba1cc388 Remove the lib-src/yow binary, which is currently unused anyway. See message
Jerry James <james@xemacs.org>
parents: 4782
diff changeset
121 sorted-doc movemail cvtmail hexl mmencode
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
122
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
123 GEN_SCRIPTS = rcs2log vcdiff gzip-el.sh
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
124 PKG_SCRIPTS = add-big-package.sh
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
125 PRIVATE_INSTALLABLE_SCRIPTS = $(GEN_SCRIPTS) $(PKG_SCRIPTS)
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
126
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
127 PRIVATE_INSTALLABLES = ${PRIVATE_INSTALLABLE_EXES} ${PRIVATE_INSTALLABLE_SCRIPTS}
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
128
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
129 ## ----------------------------------------------------------------
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
130 ## Things that XEmacs uses during the build process itself.
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
131 ## Not installed.
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
132
2720
6fa9919a9a0b [xemacs-hg @ 2005-04-08 23:10:01 by crestani]
crestani
parents: 2015
diff changeset
133 #ifdef DUMP_IN_EXEC
2015
2364237fbc0f [xemacs-hg @ 2004-04-15 20:56:17 by olivierg]
olivierg
parents: 1886
diff changeset
134 BUILD_UTILITIES = make-path make-dump-id insert-data-in-exec
2720
6fa9919a9a0b [xemacs-hg @ 2005-04-08 23:10:01 by crestani]
crestani
parents: 2015
diff changeset
135 #else
6fa9919a9a0b [xemacs-hg @ 2005-04-08 23:10:01 by crestani]
crestani
parents: 2015
diff changeset
136 BUILD_UTILITIES = make-path make-dump-id
6fa9919a9a0b [xemacs-hg @ 2005-04-08 23:10:01 by crestani]
crestani
parents: 2015
diff changeset
137 #endif
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
138
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
139 EXES = ${PUBLIC_INSTALLABLE_EXES} ${PRIVATE_INSTALLABLE_EXES} ${BUILD_UTILITIES}
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
140 SCRIPTS = ${PUBLIC_INSTALLABLE_SCRIPTS} ${PRIVATE_INSTALLABLE_SCRIPTS}
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
141 PROGS = ${EXES} ${SCRIPTS}
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
142
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
143 ## Additional -D flags for movemail (add to MOVE_FLAGS if desired):
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
144 ## MAIL_USE_POP Support mail retrieval from a POP mailbox.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
145 ## MAIL_USE_MMDF Support MMDF mailboxes.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
146 ## MAIL_USE_FLOCK Use flock for file locking (see the comments
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
147 ## about locking in movemail.c)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
148 ## MAIL_UNLINK_SPOOL Unlink the user spool mailbox after reading
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
149 ## it (instead of just emptying it).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
150 ## KERBEROS Support Kerberized POP.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
151 ## KRB5 Support Kerberos Version 5 pop instead of
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
152 ## Version 4 (define this in addition to
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
153 ## KERBEROS).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
154 ## HESIOD Support Hesiod lookups of user mailboxes.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
155 ## MAILHOST A string, the host name of the default POP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
156 ## mail host for the site.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
157
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
158 MOVE_FLAGS=
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
159 ##
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
160 ## Additional libraries for movemail:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
161 ## For KERBEROS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
162 ## MOVE_LIBS= -lkrb -ldes -lcom_err
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
163 ## For KERBEROS + KRB5
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
164 ## MOVE_LIBS= -lkrb5 -lcrypto -lisode -lcom_err
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
165 ## Add "-lhesiod" if HESIOD is defined.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
166
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
167 MOVE_LIBS=
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
168
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
169 ## ========================== start of cpp stuff =======================
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
170
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
171 #ifdef USE_GNU_MAKE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
172 vpath %.c @srcdir@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
173 vpath %.h @srcdir@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
174 #else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
175 VPATH=@srcdir@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
176 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
177
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
178 c_switch_general=@c_switch_general@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
179 c_switch_all=@c_switch_all@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
180 ld_switch_general=@ld_switch_general@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
181 ld_switch_all=@ld_switch_all@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
182 ld_libs_general=@ld_libs_general@
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 ## 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
185
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 430
diff changeset
186 ## 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
187 ## ./configure in the source tree, and then run
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 430
diff changeset
188 ## $(srcdir).2.26/configure in some other build tree.
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 430
diff changeset
189 ## Where will the generated files like config.h be included from?
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 430
diff changeset
190 ## This is also why you _must_ use <...> instead of "..."
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 430
diff changeset
191 ## when #include'ing generated files.
446
1ccc32a20af4 Import from CVS: tag r21-2-38
cvs
parents: 442
diff changeset
192 cppflags = -I. -I../src -I$(srcdir) -I$(top_srcdir)/src $(CPPFLAGS)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
193 cflags = $(CFLAGS) $(cppflags) $(c_switch_general)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
194 ldflags = $(LDFLAGS) $(ld_switch_general) $(ld_libs_general)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
195
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
196 ## This is the default compilation command.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
197 ## But we should never rely on it, because some make version
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
198 ## failed to find it for getopt.o.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
199 ## Using an explicit command made it work.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
200 .c.o:
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
201 ${CC} -c $(cflags) $<
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
202
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
203 .PHONY : all maybe-blessmail install uninstall check
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
204
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
205 all: ${PROGS}
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
206
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
207 ## Make symlinks for shell scripts if using --srcdir
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
208 ${SCRIPTS}:
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
209 for f in ${SCRIPTS}; do \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
210 if test ! -r $$f; then ${LN_S} ${srcdir}/$$f $$f; fi; \
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
211 done
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
212
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
213 #undef MOVEMAIL_NEEDS_BLESSING
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
214 #if !defined (MAIL_USE_FLOCK) && ! defined (MAIL_USE_LOCKF)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
215 #define MOVEMAIL_NEEDS_BLESSING
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
216 blessmail = blessmail
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
217 blessmail:
776
79940b592197 [xemacs-hg @ 2002-03-15 07:43:14 by ben]
ben
parents: 709
diff changeset
218 ../src/xemacs -batch -no-packages -l ../lisp/blessmail.el
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
219 chmod +x $@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
220 #endif /* movemail needs blessing */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
221
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
222 maybe-blessmail: $(blessmail)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
223 #ifdef MOVEMAIL_NEEDS_BLESSING
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
224 ## Do not charge ahead and do it! Let the installer decide.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
225 ## ./blessmail ${archlibdir}/movemail
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
226 @if test `wc -l <blessmail` != 2; then \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
227 dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
228 echo "*************************************************************";\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
229 echo "Assuming $$dir is really the mail spool directory, you should";\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
230 echo "run lib-src/blessmail ${archlibdir}/movemail"; \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
231 echo "as root, to give movemail appropriate permissions."; \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
232 echo "Do that after running make install."; \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
233 echo "You can also do make blessmail. "; \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
234 echo "*************************************************************";\
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
235 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
236 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
237
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
238 do-blessmail: $(blessmail)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
239 #ifdef MOVEMAIL_NEEDS_BLESSING
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
240 ./blessmail ${archlibdir}/movemail
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
241 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
242
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
243 ## Install the internal utilities. Until they are installed, we can
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
244 ## just run them directly from lib-src.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
245 ${archlibdir}: all
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
246 @echo; echo "Installing utilities run internally by XEmacs."
5512
4aa8ee813265 Add a DESTDIR variable to all Makefiles, defaulting to the empty string, and
Jerry James <james@xemacs.org>
parents: 5402
diff changeset
247 ./make-path $(DESTDIR)${archlibdir}
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
248 if test "`(cd ${archlibdir} && $(pwd))`" != "`$(pwd)`"; then \
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
249 for f in ${PRIVATE_INSTALLABLE_EXES}; do \
5512
4aa8ee813265 Add a DESTDIR variable to all Makefiles, defaulting to the empty string, and
Jerry James <james@xemacs.org>
parents: 5402
diff changeset
250 (cd .. && $(INSTALL_PROGRAM) lib-src/$$f $(DESTDIR)${archlibdir}/$$f) ; \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
251 done ; \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
252 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
253 if test "`(cd ${archlibdir} && $(pwd))`" \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
254 != "`(cd ${srcdir} && $(pwd))`"; then \
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
255 for f in ${PRIVATE_INSTALLABLE_SCRIPTS}; do \
5512
4aa8ee813265 Add a DESTDIR variable to all Makefiles, defaulting to the empty string, and
Jerry James <james@xemacs.org>
parents: 5402
diff changeset
256 (cd .. && $(INSTALL_PROGRAM) ${srcdir}/$$f $(DESTDIR)${archlibdir}/$$f); \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
257 done ; \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
258 fi
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
259
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
260 install: ${archlibdir}
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
261 @echo; echo "Installing utilities for users to run."
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
262 for file in ${PUBLIC_INSTALLABLE_EXES} ; do \
5512
4aa8ee813265 Add a DESTDIR variable to all Makefiles, defaulting to the empty string, and
Jerry James <james@xemacs.org>
parents: 5402
diff changeset
263 (cd .. && $(INSTALL_PROGRAM) lib-src/$${file} $(DESTDIR)${bindir}/$${file}) ; \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
264 done
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
265 for file in ${PUBLIC_INSTALLABLE_SCRIPTS} ; do \
5512
4aa8ee813265 Add a DESTDIR variable to all Makefiles, defaulting to the empty string, and
Jerry James <james@xemacs.org>
parents: 5402
diff changeset
266 (cd .. && $(INSTALL_PROGRAM) ${srcdir}/$${file} $(DESTDIR)${bindir}/$${file}) ; \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
267 done
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 uninstall:
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
270 cd ${bindir} && $(RM) ${PUBLIC_INSTALLABLES}
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
271 cd ${archlibdir} && $(RM) ${PRIVATE_INSTALLABLES}
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
272
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
273 .PHONY: mostlyclean clean distclean realclean extraclean
3062
21d92abaac3a [xemacs-hg @ 2005-11-13 10:39:28 by ben]
ben
parents: 2720
diff changeset
274 .PHONY: distclean-noconfig realclean-noconfig extraclean-noconfig
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
275 mostlyclean:
3083
193188e494b2 [xemacs-hg @ 2005-11-22 07:14:37 by ben]
ben
parents: 3062
diff changeset
276 -$(RM) *.o *.i core
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
277 clean: mostlyclean
3083
193188e494b2 [xemacs-hg @ 2005-11-22 07:14:37 by ben]
ben
parents: 3062
diff changeset
278 -$(RM) ${EXES} *.exe
3062
21d92abaac3a [xemacs-hg @ 2005-11-13 10:39:28 by ben]
ben
parents: 2720
diff changeset
279 distclean-noconfig: clean
3083
193188e494b2 [xemacs-hg @ 2005-11-22 07:14:37 by ben]
ben
parents: 3062
diff changeset
280 -$(RM) DOC *.tab.c *.tab.h TAGS ellcc.h blessmail config.values
3062
21d92abaac3a [xemacs-hg @ 2005-11-13 10:39:28 by ben]
ben
parents: 2720
diff changeset
281 ## This is used in making a distribution.
21d92abaac3a [xemacs-hg @ 2005-11-13 10:39:28 by ben]
ben
parents: 2720
diff changeset
282 ## Do not use it on development directories!
21d92abaac3a [xemacs-hg @ 2005-11-13 10:39:28 by ben]
ben
parents: 2720
diff changeset
283 distclean: distclean-noconfig
3083
193188e494b2 [xemacs-hg @ 2005-11-22 07:14:37 by ben]
ben
parents: 3062
diff changeset
284 -$(RM) GNUmakefile Makefile Makefile.in
3062
21d92abaac3a [xemacs-hg @ 2005-11-13 10:39:28 by ben]
ben
parents: 2720
diff changeset
285 realclean-noconfig: distclean-noconfig
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
286 realclean: distclean
3062
21d92abaac3a [xemacs-hg @ 2005-11-13 10:39:28 by ben]
ben
parents: 2720
diff changeset
287 extraclean-noconfig: realclean-noconfig
3083
193188e494b2 [xemacs-hg @ 2005-11-22 07:14:37 by ben]
ben
parents: 3062
diff changeset
288 -$(RM) *~ \#*
3062
21d92abaac3a [xemacs-hg @ 2005-11-13 10:39:28 by ben]
ben
parents: 2720
diff changeset
289 extraclean: realclean
3083
193188e494b2 [xemacs-hg @ 2005-11-22 07:14:37 by ben]
ben
parents: 3062
diff changeset
290 -$(RM) *~ \#*
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
291
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
292 ## Test the contents of the directory.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
293 check:
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 446
diff changeset
294 @echo "We don't have any tests for lib-src yet."
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
295
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
296 TAGS: etags
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
297 etags *.[ch]
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 GETOPTOBJS = getopt.o getopt1.o $(ALLOCA)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
300 GETOPTDEPS = $(GETOPTOBJS) ${srcdir}/getopt.h
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
301 getopt.o: ${srcdir}/getopt.c ${srcdir}/getopt.h
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
302 ${CC} -c $(cflags) ${srcdir}/getopt.c
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
303 getopt1.o: ${srcdir}/getopt1.c ${srcdir}/getopt.h
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
304 ${CC} -c $(cflags) ${srcdir}/getopt1.c
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 430
diff changeset
305 alloca.o: ${top_srcdir}/src/alloca.c
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
306 ${CC} -c $(cflags) ${srcdir}/../src/alloca.c
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 regex.o: ${srcdir}/../src/regex.c ${top_srcdir}/src/regex.h
446
1ccc32a20af4 Import from CVS: tag r21-2-38
cvs
parents: 442
diff changeset
309 $(CC) -c $(cflags) \
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
310 -DINHIBIT_STRING_HEADER ${top_srcdir}/src/regex.c
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
311
3972
6cd3955b7e4d [xemacs-hg @ 2007-05-21 03:50:13 by stephent]
stephent
parents: 3083
diff changeset
312 etags_args = $(cflags) -DEMACS_NAME='"XEmacs"' -DVERSION='"${etags_xemacs_version}"' \
709
1df7a5cfb04a [xemacs-hg @ 2001-12-20 07:58:18 by yoshiki]
yoshiki
parents: 460
diff changeset
313 ${srcdir}/etags.c $(GETOPTOBJS) regex.o $(ldflags)
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 430
diff changeset
314 etags_deps = ${srcdir}/etags.c $(GETOPTDEPS) regex.o ../src/config.h
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
315
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
316 etags: ${etags_deps}
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
317 $(CC) ${etags_args} -o $@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
318
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 430
diff changeset
319 ellcc_args = $(cflags) ${srcdir}/ellcc.c $(ldflags)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
320 ellcc_deps = ${srcdir}/ellcc.c ellcc.h ../src/config.h
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 ellcc: ${ellcc_deps}
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
323 $(CC) ${ellcc_args} -o $@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
324
3972
6cd3955b7e4d [xemacs-hg @ 2007-05-21 03:50:13 by stephent]
stephent
parents: 3083
diff changeset
325 ## #### we should probably do the same as for pot's etags
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 430
diff changeset
326 ootags_args = $(cflags) -DVERSION='"${version}"' ${srcdir}/ootags.c \
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
327 $(GETOPTOBJS) regex.o $(ldflags)
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 430
diff changeset
328 ootags_deps = ${srcdir}/ootags.c $(GETOPTDEPS) regex.o ../src/config.h
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
329
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
330 ootags: ${ootags_deps}
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
331 $(CC) ${ootags_args} -o $@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
332
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
333 ## ctags depends on etags to assure that parallel makes do not write
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
334 ## two etags.o files on top of each other.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
335 ctags: ${etags_deps} etags
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
336 $(CC) -DCTAGS ${etags_args} -o $@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
337
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
338 profile: ${srcdir}/profile.c
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
339 $(CC) $(cflags) ${srcdir}/profile.c $(ldflags) -o $@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
340
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
341 make-docfile: ${srcdir}/make-docfile.c
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
342 $(CC) $(cflags) ${srcdir}/make-docfile.c $(ldflags) -o $@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
343
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
344 digest-doc: ${srcdir}/digest-doc.c
446
1ccc32a20af4 Import from CVS: tag r21-2-38
cvs
parents: 442
diff changeset
345 $(CC) -Demacs $(cflags) ${srcdir}/digest-doc.c $(ldflags) -o $@
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
346
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
347 sorted-doc: ${srcdir}/sorted-doc.c
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
348 $(CC) $(cflags) ${srcdir}/sorted-doc.c $(ldflags) -o $@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
349
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
350 b2m: ${srcdir}/b2m.c ../src/config.h
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
351 $(CC) $(cflags) ${srcdir}/b2m.c $(ldflags) -o $@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
352
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
353 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
354 ../src/config.h
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
355 $(CC) $(cflags) ${MOVE_FLAGS} ${srcdir}/movemail.c ${srcdir}/pop.c \
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
356 $(GETOPTOBJS) regex.o $(ldflags) ${MOVE_LIBS} -o $@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
357
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
358 cvtmail: ${srcdir}/cvtmail.c
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
359 $(CC) $(cflags) ${srcdir}/cvtmail.c $(ldflags) -o $@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
360
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
361 fakemail: ${srcdir}/fakemail.c ../src/config.h
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
362 $(CC) $(cflags) ${srcdir}/fakemail.c $(ldflags) -o $@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
363
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
364 i: ${srcdir}/i.c
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
365 $(CC) $(cflags) ${srcdir}/i.c $(ldflags) -o $@
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
366
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
367 minitar: ${srcdir}/../nt/minitar.c
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
368 $(CC) $(cflags) ${srcdir}/../nt/minitar.c $(ldflags) -lz -o $@
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
369
819
6504113e7c2d [xemacs-hg @ 2002-04-25 18:03:23 by andyp]
andyp
parents: 776
diff changeset
370 winclient: ${srcdir}/winclient.c
6504113e7c2d [xemacs-hg @ 2002-04-25 18:03:23 by andyp]
andyp
parents: 776
diff changeset
371 $(CC) $(cflags) ${srcdir}/winclient.c $(ldflags) -o $@
6504113e7c2d [xemacs-hg @ 2002-04-25 18:03:23 by andyp]
andyp
parents: 776
diff changeset
372
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
373 hexl: ${srcdir}/hexl.c
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
374 $(CC) $(cflags) ${srcdir}/hexl.c $(ldflags) -o $@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
375
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
376 make-dump-id: ${srcdir}/make-dump-id.c
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
377 $(CC) $(cflags) ${srcdir}/make-dump-id.c $(ldflags) -o $@
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 438
diff changeset
378
5728
0e2f2837c2bd Fix reversed test for the insert-data-in-exec build rule in
Jerry James <james@xemacs.org>
parents: 5512
diff changeset
379 #ifdef DUMP_IN_EXEC
2015
2364237fbc0f [xemacs-hg @ 2004-04-15 20:56:17 by olivierg]
olivierg
parents: 1886
diff changeset
380 insert-data-in-exec: ${srcdir}/insert-data-in-exec.c
2364237fbc0f [xemacs-hg @ 2004-04-15 20:56:17 by olivierg]
olivierg
parents: 1886
diff changeset
381 $(CC) $(cflags) ${srcdir}/insert-data-in-exec.c $(ldflags) -o $@
2720
6fa9919a9a0b [xemacs-hg @ 2005-04-08 23:10:01 by crestani]
crestani
parents: 2015
diff changeset
382 #endif /* not DUMP_IN_EXEC */
2015
2364237fbc0f [xemacs-hg @ 2004-04-15 20:56:17 by olivierg]
olivierg
parents: 1886
diff changeset
383
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
384 cflags_gnuserv = $(CFLAGS) $(cppflags) $(c_switch_all)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
385 ldflags_gnuserv = $(LDFLAGS) $(ld_switch_all) @libs_xauth@ $(ld_libs_general)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
386 gnuslib.o: ${srcdir}/gnuslib.c ${srcdir}/gnuserv.h ../src/config.h
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
387 $(CC) -c $(cflags_gnuserv) ${srcdir}/gnuslib.c
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
388 gnuclient: ${srcdir}/gnuclient.c gnuslib.o ${srcdir}/gnuserv.h
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
389 $(CC) $(cflags_gnuserv) ${srcdir}/$@.c gnuslib.o ${ldflags_gnuserv} -o $@
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
390 gnuserv: ${srcdir}/gnuserv.c gnuslib.o ${srcdir}/gnuserv.h
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
391 $(CC) $(cflags_gnuserv) ${srcdir}/$@.c gnuslib.o ${ldflags_gnuserv} -o $@
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 ## 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
394 ## 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
395 mmencode : ${srcdir}/mmencode.c
1886
ee0959363838 [xemacs-hg @ 2004-01-27 17:49:44 by james]
james
parents: 819
diff changeset
396 $(CC) $(cflags) ${srcdir}/mmencode.c $(ldflags) -o $@
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
397
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 ## The timer utility (timer.c, getdate.y) is not used in XEmacs
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
400 ## because XEmacs provides built-in timer facilities.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
401
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
402 make-path: ${srcdir}/make-path.c ../src/config.h
1886
ee0959363838 [xemacs-hg @ 2004-01-27 17:49:44 by james]
james
parents: 819
diff changeset
403 $(CC) -Demacs $(cflags) ${srcdir}/make-path.c $(ldflags) -o $@