Mercurial > hg > xemacs-beta
comparison lib-src/Makefile.in.in @ 272:c5d627a313b1 r21-0b34
Import from CVS: tag r21-0b34
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:28:48 +0200 |
parents | 11cf20601dec |
children | 6330739388db |
comparison
equal
deleted
inserted
replaced
271:c7b7086b0a39 | 272:c5d627a313b1 |
---|---|
23 ## above a certain point in this file are in shell format instead of | 23 ## above a certain point in this file are in shell format instead of |
24 ## in C format. How the hell is this supposed to work? */ | 24 ## in C format. How the hell is this supposed to work? */ |
25 | 25 |
26 ## For performance and consistency, no built-in rules | 26 ## For performance and consistency, no built-in rules |
27 .SUFFIXES: | 27 .SUFFIXES: |
28 .SUFFIXES: .c .o .i .h | 28 .SUFFIXES: .c .h .o |
29 ## ==================== Things "configure" will edit ==================== | 29 ## ==================== Things "configure" will edit ==================== |
30 | 30 |
31 @SET_MAKE@ | 31 @SET_MAKE@ |
32 SHELL = /bin/sh | 32 SHELL = /bin/sh |
33 RM = rm -f | 33 RM = rm -f |
120 #else | 120 #else |
121 VPATH=@srcdir@ | 121 VPATH=@srcdir@ |
122 #endif | 122 #endif |
123 | 123 |
124 c_switch_general=@c_switch_general@ | 124 c_switch_general=@c_switch_general@ |
125 c_switch_window_system=@c_switch_window_system@ | |
126 c_switch_all=@c_switch_all@ | 125 c_switch_all=@c_switch_all@ |
127 ld_switch_general=@ld_switch_general@ | 126 ld_switch_general=@ld_switch_general@ |
128 ld_switch_window_system=@ld_switch_window_system@ | |
129 ld_switch_all=@ld_switch_all@ | 127 ld_switch_all=@ld_switch_all@ |
130 ld_libs_general=@ld_libs_general@ | 128 ld_libs_general=@ld_libs_general@ |
131 ld_libs_window_system=@ld_libs_window_system@ | |
132 ld_libs_all=@ld_libs_all@ | |
133 | 129 |
134 ## We need to #define emacs to get the right versions of some files. | 130 ## We need to #define emacs to get the right versions of some files. |
135 | 131 |
136 lib_src_cppflags = -Demacs -I../src -I${srcdir} -I${srcdir}/../src $(CPPFLAGS) | 132 cppflags = -Demacs -I../src $(CPPFLAGS) |
137 lib_src_cppflags = -Demacs -I../src $(CPPFLAGS) | 133 cflags = $(CFLAGS) $(cppflags) $(c_switch_general) |
138 cflags = $(CFLAGS) $(lib_src_cppflags) $(c_switch_all) | 134 ldflags = $(LDFLAGS) $(ld_switch_general) $(ld_libs_general) |
139 ldflags = $(LDFLAGS) $(ld_switch_all) $(ld_libs_general) | |
140 | 135 |
141 ## This is the default compilation command. | 136 ## This is the default compilation command. |
142 ## But we should never rely on it, because some make version | 137 ## But we should never rely on it, because some make version |
143 ## failed to find it for getopt.o. | 138 ## failed to find it for getopt.o. |
144 ## Using an explicit command made it work. | 139 ## Using an explicit command made it work. |
164 #endif /* movemail needs blessing */ | 159 #endif /* movemail needs blessing */ |
165 | 160 |
166 maybe-blessmail: $(blessmail) | 161 maybe-blessmail: $(blessmail) |
167 #ifdef MOVEMAIL_NEEDS_BLESSING | 162 #ifdef MOVEMAIL_NEEDS_BLESSING |
168 ## Do not charge ahead and do it! Let the installer decide. | 163 ## Do not charge ahead and do it! Let the installer decide. |
169 ## ./blessmail ${archlibdir}/movemail | 164 ## ./blessmail ${archlibdir}/movemail |
170 @if test `wc -l <blessmail` != 2; then \ | 165 @if test `wc -l <blessmail` != 2; then \ |
171 dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \ | 166 dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \ |
172 echo "*************************************************************";\ | 167 echo "*************************************************************";\ |
173 echo "Assuming $$dir is really the mail spool directory, you should";\ | 168 echo "Assuming $$dir is really the mail spool directory, you should";\ |
174 echo "run lib-src/blessmail ${archlibdir}/movemail"; \ | 169 echo "run lib-src/blessmail ${archlibdir}/movemail"; \ |
179 fi | 174 fi |
180 #endif | 175 #endif |
181 | 176 |
182 do-blessmail: $(blessmail) | 177 do-blessmail: $(blessmail) |
183 #ifdef MOVEMAIL_NEEDS_BLESSING | 178 #ifdef MOVEMAIL_NEEDS_BLESSING |
184 ./blessmail ${archlibdir}/movemail | 179 ./blessmail ${archlibdir}/movemail |
185 #endif | 180 #endif |
186 | 181 |
187 ## Install the internal utilities. Until they are installed, we can | 182 ## Install the internal utilities. Until they are installed, we can |
188 ## just run them directly from lib-src. | 183 ## just run them directly from lib-src. |
189 ${archlibdir}: all | 184 ${archlibdir}: all |
252 ${CC} -c $(cflags) ${srcdir}/getopt1.c | 247 ${CC} -c $(cflags) ${srcdir}/getopt1.c |
253 alloca.o: ${srcdir}/../src/alloca.c | 248 alloca.o: ${srcdir}/../src/alloca.c |
254 ${CC} -c $(cflags) ${srcdir}/../src/alloca.c | 249 ${CC} -c $(cflags) ${srcdir}/../src/alloca.c |
255 | 250 |
256 regex.o: ${srcdir}/../src/regex.c ${srcdir}/../src/regex.h | 251 regex.o: ${srcdir}/../src/regex.c ${srcdir}/../src/regex.h |
257 $(CC) -c `echo ${cflags} | sed 's/-Demacs/ /'` \ | 252 $(CC) -c `echo $(cflags) | sed 's/-Demacs/ /'` \ |
258 -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c | 253 -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c |
259 | 254 |
260 etags_args = -I. ${cflags} -I${srcdir} -I${srcdir}/../src \ | 255 etags_args = -I. $(cflags) -I${srcdir} -I${srcdir}/../src \ |
261 -DVERSION='"${version}"' ${srcdir}/etags.c \ | 256 -DVERSION='"${version}"' ${srcdir}/etags.c \ |
262 $(GETOPTOBJS) regex.o $(ldflags) | 257 $(GETOPTOBJS) regex.o $(ldflags) |
263 etags_deps = ${srcdir}/etags.c $(GETOPTDEPS) regex.o ../src/config.h | 258 etags_deps = ${srcdir}/etags.c $(GETOPTDEPS) regex.o ../src/config.h |
264 | 259 |
265 etags: ${etags_deps} | 260 etags: ${etags_deps} |
268 ## two etags.o files on top of each other. | 263 ## two etags.o files on top of each other. |
269 ctags: ${etags_deps} etags | 264 ctags: ${etags_deps} etags |
270 $(CC) -DCTAGS ${etags_args} -o $@ | 265 $(CC) -DCTAGS ${etags_args} -o $@ |
271 | 266 |
272 wakeup: ${srcdir}/wakeup.c | 267 wakeup: ${srcdir}/wakeup.c |
273 $(CC) ${cflags} ${srcdir}/wakeup.c $(ldflags) -o $@ | 268 $(CC) $(cflags) ${srcdir}/wakeup.c $(ldflags) -o $@ |
274 | 269 |
275 profile: ${srcdir}/profile.c | 270 profile: ${srcdir}/profile.c |
276 $(CC) ${cflags} ${srcdir}/profile.c $(ldflags) -o $@ | 271 $(CC) $(cflags) ${srcdir}/profile.c $(ldflags) -o $@ |
277 | 272 |
278 make-docfile: ${srcdir}/make-docfile.c | 273 make-docfile: ${srcdir}/make-docfile.c |
279 $(CC) ${cflags} ${srcdir}/make-docfile.c $(ldflags) -o $@ | 274 $(CC) $(cflags) ${srcdir}/make-docfile.c $(ldflags) -o $@ |
280 | 275 |
281 digest-doc: ${srcdir}/digest-doc.c | 276 digest-doc: ${srcdir}/digest-doc.c |
282 $(CC) ${cflags} ${srcdir}/digest-doc.c $(ldflags) -o $@ | 277 $(CC) $(cflags) ${srcdir}/digest-doc.c $(ldflags) -o $@ |
283 | 278 |
284 sorted-doc: ${srcdir}/sorted-doc.c | 279 sorted-doc: ${srcdir}/sorted-doc.c |
285 $(CC) ${cflags} ${srcdir}/sorted-doc.c $(ldflags) -o $@ | 280 $(CC) $(cflags) ${srcdir}/sorted-doc.c $(ldflags) -o $@ |
286 | 281 |
287 b2m: ${srcdir}/b2m.c ../src/config.h | 282 b2m: ${srcdir}/b2m.c ../src/config.h |
288 $(CC) ${cflags} ${srcdir}/b2m.c $(ldflags) -o $@ | 283 $(CC) $(cflags) ${srcdir}/b2m.c $(ldflags) -o $@ |
289 | 284 |
290 movemail: ${srcdir}/movemail.c ${srcdir}/pop.c ${srcdir}/pop.h ../src/config.h | 285 movemail: ${srcdir}/movemail.c ${srcdir}/pop.c ${srcdir}/pop.h ../src/config.h |
291 $(CC) ${cflags} ${MOVE_FLAGS} ${srcdir}/movemail.c ${srcdir}/pop.c $(ldflags) ${MOVE_LIBS} -o $@ | 286 $(CC) $(cflags) ${MOVE_FLAGS} ${srcdir}/movemail.c ${srcdir}/pop.c $(ldflags) ${MOVE_LIBS} -o $@ |
292 | 287 |
293 cvtmail: ${srcdir}/cvtmail.c | 288 cvtmail: ${srcdir}/cvtmail.c |
294 $(CC) ${cflags} ${srcdir}/cvtmail.c $(ldflags) -o $@ | 289 $(CC) $(cflags) ${srcdir}/cvtmail.c $(ldflags) -o $@ |
295 | 290 |
296 fakemail: ${srcdir}/fakemail.c ../src/config.h | 291 fakemail: ${srcdir}/fakemail.c ../src/config.h |
297 $(CC) ${cflags} ${srcdir}/fakemail.c $(ldflags) -o $@ | 292 $(CC) $(cflags) ${srcdir}/fakemail.c $(ldflags) -o $@ |
298 | 293 |
299 yow: ${srcdir}/yow.c ../src/paths.h | 294 yow: ${srcdir}/yow.c ../src/paths.h |
300 $(CC) ${cflags} ${srcdir}/yow.c $(ldflags) -o $@ | 295 $(CC) $(cflags) ${srcdir}/yow.c $(ldflags) -o $@ |
301 | 296 |
302 hexl: ${srcdir}/hexl.c | 297 hexl: ${srcdir}/hexl.c |
303 $(CC) ${cflags} ${srcdir}/hexl.c $(ldflags) -o $@ | 298 $(CC) $(cflags) ${srcdir}/hexl.c $(ldflags) -o $@ |
304 | 299 |
305 make-msgfile: ${srcdir}/make-msgfile.c | 300 make-msgfile: ${srcdir}/make-msgfile.c |
306 $(CC) $(cflags) ${srcdir}/make-msgfile.c $(ldflags) -o $@ | 301 $(CC) $(cflags) ${srcdir}/make-msgfile.c $(ldflags) -o $@ |
307 | 302 |
308 make-po: ${srcdir}/make-po.c | 303 make-po: ${srcdir}/make-po.c |
309 $(CC) $(cflags) ${srcdir}/make-po.c $(ldflags) -o $@ | 304 $(CC) $(cflags) ${srcdir}/make-po.c $(ldflags) -o $@ |
310 | 305 |
311 ## Why oh why does HP not include half of the standard X distribution? | 306 cflags_gnuserv = $(CFLAGS) $(cppflags) $(c_switch_all) |
312 | |
313 ldflags_gnuserv = $(LDFLAGS) $(ld_switch_all) @libs_xauth@ $(ld_libs_general) | 307 ldflags_gnuserv = $(LDFLAGS) $(ld_switch_all) @libs_xauth@ $(ld_libs_general) |
314 gnuslib.o: ${srcdir}/gnuslib.c ${srcdir}/gnuserv.h ../src/config.h | 308 gnuslib.o: ${srcdir}/gnuslib.c ${srcdir}/gnuserv.h ../src/config.h |
315 $(CC) -c ${cflags} ${srcdir}/gnuslib.c | 309 $(CC) -c $(cflags_gnuserv) ${srcdir}/gnuslib.c |
316 gnuclient: ${srcdir}/gnuclient.c gnuslib.o ${srcdir}/gnuserv.h | 310 gnuclient: ${srcdir}/gnuclient.c gnuslib.o ${srcdir}/gnuserv.h |
317 $(CC) ${cflags} ${srcdir}/$@.c gnuslib.o ${ldflags_gnuserv} -o $@ | 311 $(CC) $(cflags_gnuserv) ${srcdir}/$@.c gnuslib.o ${ldflags_gnuserv} -o $@ |
318 gnuserv: ${srcdir}/gnuserv.c gnuslib.o ${srcdir}/gnuserv.h | 312 gnuserv: ${srcdir}/gnuserv.c gnuslib.o ${srcdir}/gnuserv.h |
319 $(CC) ${cflags} ${srcdir}/$@.c gnuslib.o ${ldflags_gnuserv} -o $@ | 313 $(CC) $(cflags_gnuserv) ${srcdir}/$@.c gnuslib.o ${ldflags_gnuserv} -o $@ |
320 | 314 |
321 ## mmencode binary is used by tm - but is really part of the metamail package | 315 ## mmencode binary is used by tm - but is really part of the metamail package |
322 ## mmencode.c was merged copy of mmencode.c and codes.c of metamail | 316 ## mmencode.c was merged copy of mmencode.c and codes.c of metamail |
323 mmencode : ${srcdir}/mmencode.c | 317 mmencode : ${srcdir}/mmencode.c |
324 $(CC) ${cflags} ${srcdir}/mmencode.c -o $@ | 318 $(CC) $(cflags) ${srcdir}/mmencode.c -o $@ |
325 | 319 |
326 | 320 |
327 ## The timer utility (timer.c, getdate.y) is not used in XEmacs | 321 ## The timer utility (timer.c, getdate.y) is not used in XEmacs |
328 ## because XEmacs provides built-in timer facilities. | 322 ## because XEmacs provides built-in timer facilities. |
329 | 323 |