Mercurial > hg > xemacs-beta
comparison lib-src/Makefile.in.in @ 173:8eaf7971accc r20-3b13
Import from CVS: tag r20-3b13
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:49:09 +0200 |
parents | 929b76928fce |
children | 2d532a89d707 |
comparison
equal
deleted
inserted
replaced
172:a38aed19690b | 173:8eaf7971accc |
---|---|
21 | 21 |
22 ## Note: FSF Makefile.in.in does something weird so that the comments | 22 ## Note: FSF Makefile.in.in does something weird so that the comments |
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 SHELL = /bin/sh | |
27 RM = rm -f | |
28 | |
29 ## For performance and consistency, no built-in rules | 26 ## For performance and consistency, no built-in rules |
30 .SUFFIXES: | 27 .SUFFIXES: |
31 .SUFFIXES: .c .o .i .h | 28 .SUFFIXES: .c .o .i .h |
32 ## ==================== Things "configure" will edit ==================== | 29 ## ==================== Things "configure" will edit ==================== |
30 | |
31 @SET_MAKE@ | |
32 SHELL = /bin/sh | |
33 RM = rm -f | |
33 | 34 |
34 CC=@CC@ | 35 CC=@CC@ |
35 CPP=@CPP@ | 36 CPP=@CPP@ |
36 CFLAGS=@CFLAGS@ | 37 CFLAGS=@CFLAGS@ |
37 CPPFLAGS=@CPPFLAGS@ | 38 CPPFLAGS=@CPPFLAGS@ |
38 LDFLAGS=@LDFLAGS@ | 39 LDFLAGS=@LDFLAGS@ |
39 ALLOCA=@ALLOCA@ | 40 ALLOCA=@ALLOCA@ |
40 YACC=@YACC@ | |
41 LN_S=@LN_S@ | 41 LN_S=@LN_S@ |
42 version=@version@ | 42 version=@version@ |
43 | 43 |
44 ## ==================== Where To Install Things ==================== | 44 ## ==================== Where To Install Things ==================== |
45 | 45 |
274 | 274 |
275 regex.o: ${srcdir}/../src/regex.c ${srcdir}/../src/regex.h | 275 regex.o: ${srcdir}/../src/regex.c ${srcdir}/../src/regex.h |
276 $(CC) -c `echo ${cflags} | sed 's/-Demacs/ /'` \ | 276 $(CC) -c `echo ${cflags} | sed 's/-Demacs/ /'` \ |
277 -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c | 277 -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c |
278 | 278 |
279 etags: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXDEPS) ../src/config.h | 279 etags_args = -I. ${cflags} -I${srcdir} -I${srcdir}/../src \ |
280 $(CC) ${cflags} -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXOBJ) $(ldflags) -o etags | 280 -DVERSION='"${version}"' ${srcdir}/etags.c \ |
281 | 281 $(GETOPTOBJS) $(REGEXOBJ) $(ldflags) |
282 ## We depend on etags to assure that parallel makes do not write two | 282 etags_deps = ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXDEPS) ../src/config.h |
283 ## etags.o files on top of each other. | 283 |
284 ctags: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXDEPS) etags | 284 etags: ${etags_deps} |
285 $(CC) ${cflags} -DCTAGS -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXOBJ) $(ldflags) -o ctags | 285 $(CC) ${etags_args} -o $@ |
286 ## ctags depends on etags to assure that parallel makes do not write | |
287 ## two etags.o files on top of each other. | |
288 ctags: ${etags_deps} etags | |
289 $(CC) -DCTAGS ${etags_args} -o $@ | |
286 | 290 |
287 wakeup: ${srcdir}/wakeup.c | 291 wakeup: ${srcdir}/wakeup.c |
288 $(CC) ${cflags} ${srcdir}/wakeup.c $(ldflags) -o wakeup | 292 $(CC) ${cflags} ${srcdir}/wakeup.c $(ldflags) -o $@ |
289 | 293 |
290 profile: ${srcdir}/profile.c | 294 profile: ${srcdir}/profile.c |
291 $(CC) ${cflags} ${srcdir}/profile.c $(ldflags) -o profile | 295 $(CC) ${cflags} ${srcdir}/profile.c $(ldflags) -o $@ |
292 | 296 |
293 make-docfile: ${srcdir}/make-docfile.c | 297 make-docfile: ${srcdir}/make-docfile.c |
294 $(CC) ${cflags} ${srcdir}/make-docfile.c $(ldflags) -o make-docfile | 298 $(CC) ${cflags} ${srcdir}/make-docfile.c $(ldflags) -o $@ |
295 | 299 |
296 digest-doc: ${srcdir}/digest-doc.c | 300 digest-doc: ${srcdir}/digest-doc.c |
297 $(CC) ${cflags} ${srcdir}/digest-doc.c $(ldflags) -o digest-doc | 301 $(CC) ${cflags} ${srcdir}/digest-doc.c $(ldflags) -o $@ |
298 | 302 |
299 sorted-doc: ${srcdir}/sorted-doc.c ${ALLOCA} | 303 sorted-doc: ${srcdir}/sorted-doc.c ${ALLOCA} |
300 $(CC) ${cflags} ${srcdir}/sorted-doc.c ${ALLOCA} $(ldflags) -o sorted-doc | 304 $(CC) ${cflags} ${srcdir}/sorted-doc.c ${ALLOCA} $(ldflags) -o $@ |
301 | 305 |
302 b2m: ${srcdir}/b2m.c ../src/config.h | 306 b2m: ${srcdir}/b2m.c ../src/config.h |
303 $(CC) ${cflags} ${srcdir}/b2m.c $(ldflags) -o b2m | 307 $(CC) ${cflags} ${srcdir}/b2m.c $(ldflags) -o $@ |
304 | 308 |
305 movemail: ${srcdir}/movemail.c ${srcdir}/pop.c ${srcdir}/pop.h ../src/config.h | 309 movemail: ${srcdir}/movemail.c ${srcdir}/pop.c ${srcdir}/pop.h ../src/config.h |
306 $(CC) ${cflags} ${MOVE_FLAGS} ${srcdir}/movemail.c ${srcdir}/pop.c $(ldflags) ${MOVE_LIBS} -o movemail | 310 $(CC) ${cflags} ${MOVE_FLAGS} ${srcdir}/movemail.c ${srcdir}/pop.c $(ldflags) ${MOVE_LIBS} -o $@ |
307 | 311 |
308 cvtmail: ${srcdir}/cvtmail.c | 312 cvtmail: ${srcdir}/cvtmail.c |
309 $(CC) ${cflags} ${srcdir}/cvtmail.c $(ldflags) -o cvtmail | 313 $(CC) ${cflags} ${srcdir}/cvtmail.c $(ldflags) -o $@ |
310 | 314 |
311 fakemail: ${srcdir}/fakemail.c ../src/config.h | 315 fakemail: ${srcdir}/fakemail.c ../src/config.h |
312 $(CC) ${cflags} ${srcdir}/fakemail.c $(ldflags) -o fakemail | 316 $(CC) ${cflags} ${srcdir}/fakemail.c $(ldflags) -o $@ |
313 | 317 |
314 yow: ${srcdir}/yow.c ../src/paths.h | 318 yow: ${srcdir}/yow.c ../src/paths.h |
315 $(CC) ${cflags} ${srcdir}/yow.c $(ldflags) -o yow | 319 $(CC) ${cflags} ${srcdir}/yow.c $(ldflags) -o $@ |
316 | 320 |
317 hexl: ${srcdir}/hexl.c | 321 hexl: ${srcdir}/hexl.c |
318 $(CC) ${cflags} ${srcdir}/hexl.c $(ldflags) -o hexl | 322 $(CC) ${cflags} ${srcdir}/hexl.c $(ldflags) -o $@ |
319 | 323 |
320 make-msgfile: ${srcdir}/make-msgfile.c | 324 make-msgfile: ${srcdir}/make-msgfile.c |
321 $(CC) $(cflags) ${srcdir}/make-msgfile.c $(ldflags) -o make-msgfile | 325 $(CC) $(cflags) ${srcdir}/make-msgfile.c $(ldflags) -o $@ |
322 | 326 |
323 make-po: ${srcdir}/make-po.c | 327 make-po: ${srcdir}/make-po.c |
324 $(CC) $(cflags) ${srcdir}/make-po.c $(ldflags) -o make-po | 328 $(CC) $(cflags) ${srcdir}/make-po.c $(ldflags) -o $@ |
325 | 329 |
326 ## Why oh why does HP not include half of the standard X distribution? | 330 ## Why oh why does HP not include half of the standard X distribution? |
327 | 331 |
328 ldflags_gnuserv = $(LDFLAGS) $(ld_switch_all) @libs_xauth@ $(ld_libs_general) | 332 ldflags_gnuserv = $(LDFLAGS) $(ld_switch_all) @libs_xauth@ $(ld_libs_general) |
329 gnuslib.o: ${srcdir}/gnuslib.c ${srcdir}/gnuserv.h ../src/config.h | 333 gnuslib.o: ${srcdir}/gnuslib.c ${srcdir}/gnuserv.h ../src/config.h |
330 $(CC) -c ${cflags} ${srcdir}/gnuslib.c | 334 $(CC) -c ${cflags} ${srcdir}/gnuslib.c |
331 gnuclient: ${srcdir}/gnuclient.c gnuslib.o ${srcdir}/gnuserv.h | 335 gnuclient: ${srcdir}/gnuclient.c gnuslib.o ${srcdir}/gnuserv.h |
332 $(CC) ${cflags} -o $@ ${srcdir}/$@.c gnuslib.o ${ldflags_gnuserv} | 336 $(CC) ${cflags} ${srcdir}/$@.c gnuslib.o ${ldflags_gnuserv} -o $@ |
333 gnuserv: ${srcdir}/gnuserv.c gnuslib.o ${srcdir}/gnuserv.h | 337 gnuserv: ${srcdir}/gnuserv.c gnuslib.o ${srcdir}/gnuserv.h |
334 $(CC) ${cflags} -o $@ ${srcdir}/$@.c gnuslib.o ${ldflags_gnuserv} | 338 $(CC) ${cflags} ${srcdir}/$@.c gnuslib.o ${ldflags_gnuserv} -o $@ |
335 | 339 |
336 ## mmencode binary is used by tm - but is really part of the metamail package | 340 ## mmencode binary is used by tm - but is really part of the metamail package |
337 ## mmencode.c was merged copy of mmencode.c and codes.c of metamail | 341 ## mmencode.c was merged copy of mmencode.c and codes.c of metamail |
338 mmencode : ${srcdir}/mmencode.c | 342 mmencode : ${srcdir}/mmencode.c |
339 $(CC) ${cflags} ${srcdir}/mmencode.c -o mmencode | 343 $(CC) ${cflags} ${srcdir}/mmencode.c -o $@ |
340 | 344 |
341 | 345 |
342 ## The timer utility (timer.c, getdate.y) is not used in XEmacs | 346 ## The timer utility (timer.c, getdate.y) is not used in XEmacs |
343 ## because XEmacs provides built-in timer facilities. | 347 ## because XEmacs provides built-in timer facilities. |
344 | 348 |
345 make-path: ${srcdir}/make-path.c ../src/config.h | 349 make-path: ${srcdir}/make-path.c ../src/config.h |
346 $(CC) $(cflags) ${srcdir}/make-path.c -o make-path | 350 $(CC) $(cflags) ${srcdir}/make-path.c -o $@ |
347 | 351 |
348 ## These are NOT included in INSTALLABLES or UTILITIES. | 352 ## These are NOT included in INSTALLABLES or UTILITIES. |
349 ## See ../src/Makefile.in.in. | 353 ## See ../src/Makefile.in.in. |
350 aixcc: ${srcdir}/aixcc.c | 354 aixcc: ${srcdir}/aixcc.c |
351 $(CC) $(cflags) -o aixcc ${srcdir}/aixcc.c | 355 $(CC) $(cflags) ${srcdir}/aixcc.c -o $@ |
352 | 356 |
353 aixcc.c: ${srcdir}/aixcc.lex | 357 aixcc.c: ${srcdir}/aixcc.lex |
354 lex ${srcdir}/aixcc.lex | 358 lex ${srcdir}/aixcc.lex |
355 mv lex.yy.c aixcc.c | 359 mv lex.yy.c aixcc.c |