comparison 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
comparison
equal deleted inserted replaced
437:e2a4e8b94b82 438:84b14dcb0985
89 #endif 89 #endif
90 #else 90 #else
91 #ifdef HAVE_MS_WINDOWS 91 #ifdef HAVE_MS_WINDOWS
92 INSTALLABLES = $(INSTALLABLES_BASE) runxemacs rungnuclient 92 INSTALLABLES = $(INSTALLABLES_BASE) runxemacs rungnuclient
93 #else 93 #else
94 INSTALLABLES = $(INSTALLABLES_BASE) 94 INSTALLABLES = $(INSTALLABLES_BASE)
95 #endif 95 #endif
96 #endif 96 #endif
97 97
98 98
99 ## Things that Emacs runs internally, or during the build process, 99 ## Things that Emacs runs internally, or during the build process,
160 ld_switch_all=@ld_switch_all@ 160 ld_switch_all=@ld_switch_all@
161 ld_libs_general=@ld_libs_general@ 161 ld_libs_general=@ld_libs_general@
162 162
163 ## We need to #define emacs to get the right versions of some files. 163 ## We need to #define emacs to get the right versions of some files.
164 164
165 cppflags = -Demacs -I$(top_srcdir)/src -I../src $(CPPFLAGS) 165 ## To understand the order of -I flags, consider what happens if you run
166 ## ./configure in the source tree, and then run
167 ## $(srcdir).2.26/configure in some other build tree.
168 ## Where will the generated files like config.h be included from?
169 ## This is also why you _must_ use <...> instead of "..."
170 ## when #include'ing generated files.
171 cppflags = -Demacs -I. -I../src -I$(srcdir) -I$(top_srcdir)/src $(CPPFLAGS)
166 cflags = $(CFLAGS) $(cppflags) $(c_switch_general) 172 cflags = $(CFLAGS) $(cppflags) $(c_switch_general)
167 ldflags = $(LDFLAGS) $(ld_switch_general) $(ld_libs_general) 173 ldflags = $(LDFLAGS) $(ld_switch_general) $(ld_libs_general)
168 174
169 ## This is the default compilation command. 175 ## This is the default compilation command.
170 ## But we should never rely on it, because some make version 176 ## But we should never rely on it, because some make version
277 GETOPTDEPS = $(GETOPTOBJS) ${srcdir}/getopt.h 283 GETOPTDEPS = $(GETOPTOBJS) ${srcdir}/getopt.h
278 getopt.o: ${srcdir}/getopt.c ${srcdir}/getopt.h 284 getopt.o: ${srcdir}/getopt.c ${srcdir}/getopt.h
279 ${CC} -c $(cflags) ${srcdir}/getopt.c 285 ${CC} -c $(cflags) ${srcdir}/getopt.c
280 getopt1.o: ${srcdir}/getopt1.c ${srcdir}/getopt.h 286 getopt1.o: ${srcdir}/getopt1.c ${srcdir}/getopt.h
281 ${CC} -c $(cflags) ${srcdir}/getopt1.c 287 ${CC} -c $(cflags) ${srcdir}/getopt1.c
282 alloca.o: ${srcdir}/../src/alloca.c 288 alloca.o: ${top_srcdir}/src/alloca.c
283 ${CC} -c $(cflags) ${srcdir}/../src/alloca.c 289 ${CC} -c $(cflags) ${srcdir}/../src/alloca.c
284 290
285 regex.o: ${srcdir}/../src/regex.c ${srcdir}/../src/regex.h 291 regex.o: ${srcdir}/../src/regex.c ${top_srcdir}/src/regex.h
286 $(CC) -c `echo $(cflags) | sed 's/-Demacs/ /'` \ 292 $(CC) -c `echo $(cflags) | sed 's/-Demacs/ /'` \
287 -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c 293 -DINHIBIT_STRING_HEADER ${top_srcdir}/src/regex.c
288 294
289 etags_args = -I. $(cflags) -I${srcdir} -I${srcdir}/../src \ 295 etags_args = $(cflags) -DVERSION='"${version}"' ${srcdir}/etags.c \
290 -DVERSION='"${version}"' ${srcdir}/etags.c \
291 $(GETOPTOBJS) regex.o $(ldflags) 296 $(GETOPTOBJS) regex.o $(ldflags)
292 etags_deps = ${srcdir}/etags.c $(GETOPTDEPS) regex.o ../src/config.h 297 etags_deps = ${srcdir}/etags.c $(GETOPTDEPS) regex.o ../src/config.h
293 298
294 etags: ${etags_deps} 299 etags: ${etags_deps}
295 $(CC) ${etags_args} -o $@ 300 $(CC) ${etags_args} -o $@
296 301
297 ellcc_args = -I. $(cflags) -I${srcdir} -I${srcdir}/../src \ 302 ellcc_args = $(cflags) ${srcdir}/ellcc.c $(ldflags)
298 ${srcdir}/ellcc.c $(ldflags)
299 ellcc_deps = ${srcdir}/ellcc.c ellcc.h ../src/config.h 303 ellcc_deps = ${srcdir}/ellcc.c ellcc.h ../src/config.h
300 304
301 ellcc: ${ellcc_deps} 305 ellcc: ${ellcc_deps}
302 $(CC) ${ellcc_args} -o $@ 306 $(CC) ${ellcc_args} -o $@
303 307
304 run_args = -I. $(cflags) -I${srcdir} -I${srcdir}/../src \ 308 run_args = $(cflags) -DVERSION='"${version}"' ${srcdir}/run.c \
305 -DVERSION='"${version}"' ${srcdir}/run.c \
306 $(ldflags) -Wl,--subsystem,windows -e _mainCRTStartup 309 $(ldflags) -Wl,--subsystem,windows -e _mainCRTStartup
307 run_deps = ${srcdir}/run.c ${srcdir}/run.h ${srcdir}/run.rc \ 310 run_deps = ${srcdir}/run.c ${srcdir}/run.h ${srcdir}/run.rc \
308 ${srcdir}/../nt/xemacs.ico ${srcdir}/../nt/file.ico \ 311 ${srcdir}/../nt/xemacs.ico ${srcdir}/../nt/file.ico \
309 ${srcdir}/../nt/lisp.ico 312 ${srcdir}/../nt/lisp.ico
310 313
311 run: ${run_deps} 314 run: ${run_deps}
312 windres --include-dir ${srcdir}/../nt -i run.rc -o run_res.o 315 windres --include-dir ${srcdir}/../nt -i run.rc -o run_res.o
317 cp run.exe $@.exe 320 cp run.exe $@.exe
318 321
319 rungnuclient: run 322 rungnuclient: run
320 cp run.exe $@.exe 323 cp run.exe $@.exe
321 324
322 ootags_args = -I. $(cflags) -I${srcdir} -I${srcdir}/../src \ 325 ootags_args = $(cflags) -DVERSION='"${version}"' ${srcdir}/ootags.c \
323 -DVERSION='"${version}"' ${srcdir}/ootags.c \
324 $(GETOPTOBJS) regex.o $(ldflags) 326 $(GETOPTOBJS) regex.o $(ldflags)
325 ootags_deps = ${srcdir}/ootags.c $(GETOPTDEPS) regex.o ../src/config.h 327 ootags_deps = ${srcdir}/ootags.c $(GETOPTDEPS) regex.o ../src/config.h
326 328
327 ootags: ${ootags_deps} 329 ootags: ${ootags_deps}
328 $(CC) ${ootags_args} -o $@ 330 $(CC) ${ootags_args} -o $@
329 331
330 ## ctags depends on etags to assure that parallel makes do not write 332 ## ctags depends on etags to assure that parallel makes do not write