Mercurial > hg > xemacs-beta
comparison lib-src/Makefile.in.in @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | de805c49cfc1 |
children | da8ed4261e83 |
comparison
equal
deleted
inserted
replaced
411:12e008d41344 | 412:697ef44129c6 |
---|---|
51 prefix=@prefix@ | 51 prefix=@prefix@ |
52 exec_prefix=@exec_prefix@ | 52 exec_prefix=@exec_prefix@ |
53 bindir=@bindir@ | 53 bindir=@bindir@ |
54 libdir=@libdir@ | 54 libdir=@libdir@ |
55 srcdir=@srcdir@ | 55 srcdir=@srcdir@ |
56 datadir=@datadir@ | |
57 instvardir=@instvardir@ | |
58 top_srcdir=@top_srcdir@ | 56 top_srcdir=@top_srcdir@ |
59 archlibdir=@archlibdir@ | 57 archlibdir=@archlibdir@ |
60 configuration=@configuration@ | 58 configuration=@configuration@ |
61 moduledir=@moduledir@ | 59 moduledir=@moduledir@ |
62 sitemoduledir=@sitemoduledir@ | 60 sitemoduledir=@sitemoduledir@ |
73 #define NOT_C_CODE | 71 #define NOT_C_CODE |
74 #include "../src/config.h" | 72 #include "../src/config.h" |
75 | 73 |
76 ## Things that a user might actually run, | 74 ## Things that a user might actually run, |
77 ## which should be installed in bindir. | 75 ## which should be installed in bindir. |
78 #ifdef WIN32_NATIVE | 76 #ifdef WINDOWSNT |
79 INSTALLABLES_BASE = etags ctags b2m ootags | 77 INSTALLABLES_BASE = etags ctags b2m ootags |
80 #else | 78 #else |
81 INSTALLABLES_BASE = etags ctags b2m gnuclient ootags | 79 INSTALLABLES_BASE = etags ctags b2m gnuclient ootags |
82 #endif | 80 #endif |
83 INSTALLABLE_SCRIPTS = rcs-checkin gnudoit gnuattach | 81 INSTALLABLE_SCRIPTS = rcs-checkin pstogif gnudoit gnuattach |
84 #ifdef HAVE_SHLIB | 82 #ifdef HAVE_SHLIB |
83 #ifdef HAVE_MS_WINDOWS | |
84 INSTALLABLES = $(INSTALLABLES_BASE) runxemacs rungnuclient ellcc | |
85 #else | |
85 INSTALLABLES = $(INSTALLABLES_BASE) ellcc | 86 INSTALLABLES = $(INSTALLABLES_BASE) ellcc |
86 #else | 87 #endif |
87 INSTALLABLES = $(INSTALLABLES_BASE) | 88 #else |
89 #ifdef HAVE_MS_WINDOWS | |
90 INSTALLABLES = $(INSTALLABLES_BASE) runxemacs rungnuclient | |
91 #else | |
92 INSTALLABLES = $(INSTALLABLES_BASE) | |
93 #endif | |
88 #endif | 94 #endif |
89 | 95 |
90 | 96 |
91 ## Things that Emacs runs internally, or during the build process, | 97 ## Things that Emacs runs internally, or during the build process, |
92 ## which should not be installed in bindir. | 98 ## which should not be installed in bindir. |
93 #ifdef WIN32_NATIVE | 99 #ifdef WINDOWSNT |
94 UTILITIES= make-path wakeup profile make-docfile digest-doc \ | 100 UTILITIES= make-path wakeup profile make-docfile digest-doc \ |
95 sorted-doc movemail cvtmail yow i hexl \ | 101 sorted-doc movemail cvtmail yow hexl \ |
96 mmencode minitar | 102 mmencode |
97 #else | 103 #else |
98 UTILITIES= make-path wakeup profile make-docfile digest-doc \ | 104 UTILITIES= make-path wakeup profile make-docfile digest-doc \ |
99 sorted-doc movemail cvtmail fakemail yow hexl \ | 105 sorted-doc movemail cvtmail fakemail yow hexl \ |
100 gnuserv mmencode | 106 gnuserv mmencode |
101 #endif | 107 #endif |
152 ld_switch_all=@ld_switch_all@ | 158 ld_switch_all=@ld_switch_all@ |
153 ld_libs_general=@ld_libs_general@ | 159 ld_libs_general=@ld_libs_general@ |
154 | 160 |
155 ## We need to #define emacs to get the right versions of some files. | 161 ## We need to #define emacs to get the right versions of some files. |
156 | 162 |
157 ## To understand the order of -I flags, consider what happens if you run | 163 cppflags = -Demacs -I$(top_srcdir)/src -I../src $(CPPFLAGS) |
158 ## ./configure in the source tree, and then run | |
159 ## $(srcdir).2.26/configure in some other build tree. | |
160 ## Where will the generated files like config.h be included from? | |
161 ## This is also why you _must_ use <...> instead of "..." | |
162 ## when #include'ing generated files. | |
163 cppflags = -Demacs -I. -I../src -I$(srcdir) -I$(top_srcdir)/src $(CPPFLAGS) | |
164 cflags = $(CFLAGS) $(cppflags) $(c_switch_general) | 164 cflags = $(CFLAGS) $(cppflags) $(c_switch_general) |
165 ldflags = $(LDFLAGS) $(ld_switch_general) $(ld_libs_general) | 165 ldflags = $(LDFLAGS) $(ld_switch_general) $(ld_libs_general) |
166 | 166 |
167 ## This is the default compilation command. | 167 ## This is the default compilation command. |
168 ## But we should never rely on it, because some make version | 168 ## But we should never rely on it, because some make version |
169 ## failed to find it for getopt.o. | 169 ## failed to find it for getopt.o. |
170 ## Using an explicit command made it work. | 170 ## Using an explicit command made it work. |
171 .c.o: | 171 .c.o: |
172 ${CC} -c $(cflags) $< | 172 ${CC} -c $(cflags) $< |
173 | |
174 .PHONY : all maybe-blessmail install uninstall | |
175 | 173 |
176 all: ${UTILITIES} ${INSTALLABLES} srcdir-symlink.stamp | 174 all: ${UTILITIES} ${INSTALLABLES} srcdir-symlink.stamp |
177 | 175 |
178 ## Make symlinks for shell scripts if using --srcdir | 176 ## Make symlinks for shell scripts if using --srcdir |
179 srcdir-symlink.stamp: | 177 srcdir-symlink.stamp: |
229 done ; \ | 227 done ; \ |
230 fi | 228 fi |
231 | 229 |
232 ## We do not need to install "wakeup" explicitly, because it will be | 230 ## We do not need to install "wakeup" explicitly, because it will be |
233 ## copied when this whole directory is copied. | 231 ## copied when this whole directory is copied. |
232 .PHONY : all maybe-blessmail install uninstall | |
234 install: ${archlibdir} | 233 install: ${archlibdir} |
235 @echo; echo "Installing utilities for users to run." | 234 @echo; echo "Installing utilities for users to run." |
236 for file in ${INSTALLABLES} ; do \ | 235 for file in ${INSTALLABLES} ; do \ |
237 (cd .. && $(INSTALL_PROGRAM) lib-src/$${file} ${bindir}/$${file}) ; \ | 236 (cd .. && $(INSTALL_PROGRAM) lib-src/$${file} ${bindir}/$${file}) ; \ |
238 done | 237 done |
275 GETOPTDEPS = $(GETOPTOBJS) ${srcdir}/getopt.h | 274 GETOPTDEPS = $(GETOPTOBJS) ${srcdir}/getopt.h |
276 getopt.o: ${srcdir}/getopt.c ${srcdir}/getopt.h | 275 getopt.o: ${srcdir}/getopt.c ${srcdir}/getopt.h |
277 ${CC} -c $(cflags) ${srcdir}/getopt.c | 276 ${CC} -c $(cflags) ${srcdir}/getopt.c |
278 getopt1.o: ${srcdir}/getopt1.c ${srcdir}/getopt.h | 277 getopt1.o: ${srcdir}/getopt1.c ${srcdir}/getopt.h |
279 ${CC} -c $(cflags) ${srcdir}/getopt1.c | 278 ${CC} -c $(cflags) ${srcdir}/getopt1.c |
280 alloca.o: ${top_srcdir}/src/alloca.c | 279 alloca.o: ${srcdir}/../src/alloca.c |
281 ${CC} -c $(cflags) ${srcdir}/../src/alloca.c | 280 ${CC} -c $(cflags) ${srcdir}/../src/alloca.c |
282 | 281 |
283 regex.o: ${srcdir}/../src/regex.c ${top_srcdir}/src/regex.h | 282 regex.o: ${srcdir}/../src/regex.c ${srcdir}/../src/regex.h |
284 $(CC) -c `echo $(cflags) | sed 's/-Demacs/ /'` \ | 283 $(CC) -c `echo $(cflags) | sed 's/-Demacs/ /'` \ |
285 -DINHIBIT_STRING_HEADER ${top_srcdir}/src/regex.c | 284 -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c |
286 | 285 |
287 etags_args = $(cflags) -DVERSION='"${version}"' ${srcdir}/etags.c \ | 286 etags_args = -I. $(cflags) -I${srcdir} -I${srcdir}/../src \ |
287 -DVERSION='"${version}"' ${srcdir}/etags.c \ | |
288 $(GETOPTOBJS) regex.o $(ldflags) | 288 $(GETOPTOBJS) regex.o $(ldflags) |
289 etags_deps = ${srcdir}/etags.c $(GETOPTDEPS) regex.o ../src/config.h | 289 etags_deps = ${srcdir}/etags.c $(GETOPTDEPS) regex.o ../src/config.h |
290 | 290 |
291 etags: ${etags_deps} | 291 etags: ${etags_deps} |
292 $(CC) ${etags_args} -o $@ | 292 $(CC) ${etags_args} -o $@ |
293 | 293 |
294 ellcc_args = $(cflags) ${srcdir}/ellcc.c $(ldflags) | 294 ellcc_args = -I. $(cflags) -I${srcdir} -I${srcdir}/../src \ |
295 ${srcdir}/ellcc.c $(ldflags) | |
295 ellcc_deps = ${srcdir}/ellcc.c ellcc.h ../src/config.h | 296 ellcc_deps = ${srcdir}/ellcc.c ellcc.h ../src/config.h |
296 | 297 |
297 ellcc: ${ellcc_deps} | 298 ellcc: ${ellcc_deps} |
298 $(CC) ${ellcc_args} -o $@ | 299 $(CC) ${ellcc_args} -o $@ |
299 | 300 |
300 ootags_args = $(cflags) -DVERSION='"${version}"' ${srcdir}/ootags.c \ | 301 run_args = -I. $(cflags) -I${srcdir} -I${srcdir}/../src \ |
302 -DVERSION='"${version}"' ${srcdir}/run.c \ | |
303 $(ldflags) -Wl,--subsystem,windows -e _mainCRTStartup | |
304 run_deps = ${srcdir}/run.c ${srcdir}/run.h ${srcdir}/run.rc \ | |
305 ${srcdir}/../nt/xemacs.ico ${srcdir}/../nt/file.ico \ | |
306 ${srcdir}/../nt/lisp.ico | |
307 | |
308 run: ${run_deps} | |
309 windres --include-dir ${srcdir}/../nt -i run.rc -o run_res.o | |
310 $(CC) run_res.o ${run_args} -o $@ | |
311 strip $@.exe | |
312 | |
313 runxemacs: run | |
314 cp run.exe $@.exe | |
315 | |
316 rungnuclient: run | |
317 cp run.exe $@.exe | |
318 | |
319 ootags_args = -I. $(cflags) -I${srcdir} -I${srcdir}/../src \ | |
320 -DVERSION='"${version}"' ${srcdir}/ootags.c \ | |
301 $(GETOPTOBJS) regex.o $(ldflags) | 321 $(GETOPTOBJS) regex.o $(ldflags) |
302 ootags_deps = ${srcdir}/ootags.c $(GETOPTDEPS) regex.o ../src/config.h | 322 ootags_deps = ${srcdir}/ootags.c $(GETOPTDEPS) regex.o ../src/config.h |
303 | 323 |
304 ootags: ${ootags_deps} | 324 ootags: ${ootags_deps} |
305 $(CC) ${ootags_args} -o $@ | 325 $(CC) ${ootags_args} -o $@ |
306 | 326 |
307 ## ctags depends on etags to assure that parallel makes do not write | 327 ## ctags depends on etags to assure that parallel makes do not write |
339 $(CC) $(cflags) ${srcdir}/fakemail.c $(ldflags) -o $@ | 359 $(CC) $(cflags) ${srcdir}/fakemail.c $(ldflags) -o $@ |
340 | 360 |
341 yow: ${srcdir}/yow.c ../src/paths.h | 361 yow: ${srcdir}/yow.c ../src/paths.h |
342 $(CC) $(cflags) ${srcdir}/yow.c $(ldflags) -o $@ | 362 $(CC) $(cflags) ${srcdir}/yow.c $(ldflags) -o $@ |
343 | 363 |
344 i: ${srcdir}/i.c | |
345 $(CC) $(cflags) ${srcdir}/i.c $(ldflags) -o $@ | |
346 | |
347 minitar: ${srcdir}/../nt/minitar.c | |
348 $(CC) $(cflags) ${srcdir}/../nt/minitar.c $(ldflags) -lz -o $@ | |
349 | |
350 hexl: ${srcdir}/hexl.c | 364 hexl: ${srcdir}/hexl.c |
351 $(CC) $(cflags) ${srcdir}/hexl.c $(ldflags) -o $@ | 365 $(CC) $(cflags) ${srcdir}/hexl.c $(ldflags) -o $@ |
352 | 366 |
353 make-msgfile: ${srcdir}/make-msgfile.c | 367 make-msgfile: ${srcdir}/make-msgfile.c |
354 $(CC) $(cflags) ${srcdir}/make-msgfile.c $(ldflags) -o $@ | 368 $(CC) $(cflags) ${srcdir}/make-msgfile.c $(ldflags) -o $@ |
355 | 369 |
356 make-po: ${srcdir}/make-po.c | 370 make-po: ${srcdir}/make-po.c |
357 $(CC) $(cflags) ${srcdir}/make-po.c $(ldflags) -o $@ | 371 $(CC) $(cflags) ${srcdir}/make-po.c $(ldflags) -o $@ |
358 | |
359 make-dump-id: ${srcdir}/make-dump-id.c | |
360 $(CC) $(cflags) ${srcdir}/make-dump-id.c $(ldflags) -o $@ | |
361 | 372 |
362 cflags_gnuserv = $(CFLAGS) $(cppflags) $(c_switch_all) | 373 cflags_gnuserv = $(CFLAGS) $(cppflags) $(c_switch_all) |
363 ldflags_gnuserv = $(LDFLAGS) $(ld_switch_all) @libs_xauth@ $(ld_libs_general) | 374 ldflags_gnuserv = $(LDFLAGS) $(ld_switch_all) @libs_xauth@ $(ld_libs_general) |
364 gnuslib.o: ${srcdir}/gnuslib.c ${srcdir}/gnuserv.h ../src/config.h | 375 gnuslib.o: ${srcdir}/gnuslib.c ${srcdir}/gnuserv.h ../src/config.h |
365 $(CC) -c $(cflags_gnuserv) ${srcdir}/gnuslib.c | 376 $(CC) -c $(cflags_gnuserv) ${srcdir}/gnuslib.c |