diff options
| author | Eli Zaretskii | 2013-04-01 16:18:20 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-04-01 16:18:20 +0300 |
| commit | 095bf25383aab763b09bc4df4593632d51e37ec6 (patch) | |
| tree | 63a16a4ff09d582ed5eda0d277eb985b39fb4bfd /src | |
| parent | a74b0e1bdf0f2f49bce82dd7e15264c5c548d980 (diff) | |
| download | emacs-095bf25383aab763b09bc4df4593632d51e37ec6.tar.gz emacs-095bf25383aab763b09bc4df4593632d51e37ec6.zip | |
Added nt/Makefile.in and appropriate tweaks to configure.ac.
Added emacsclient.res support to lib-src/.
Fixed temacs and dumping commands in src/Makefile.in.
Miscellaneous fixes all over the place.
Not tried to build yet.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile.in | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/src/Makefile.in b/src/Makefile.in index 31de9714c65..cac8ddec57c 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -260,8 +260,10 @@ W32_OBJ=@W32_OBJ@ | |||
| 260 | W32_LIBS=@W32_LIBS@ | 260 | W32_LIBS=@W32_LIBS@ |
| 261 | 261 | ||
| 262 | ## emacs.res if HAVE_W32 | 262 | ## emacs.res if HAVE_W32 |
| 263 | W32_RES=@W32_RES@ | 263 | EMACSRES = @EMACSRES@ |
| 264 | ## If HAVE_W32, compiler arguments for including | 264 | ## emacs-*.manifest if HAVE_W32 |
| 265 | EMACS_MANIFEST = @EMACS_MANIFEST@ | ||
| 266 | ## If HAVE_W32 and CYGWIN, compiler arguments for including | ||
| 265 | ## the resource file in the binary. | 267 | ## the resource file in the binary. |
| 266 | ## XXX -Wl,-b -Wl,pe-i386 -Wl,emacs.res | 268 | ## XXX -Wl,-b -Wl,pe-i386 -Wl,emacs.res |
| 267 | W32_RES_LINK=@W32_RES_LINK@ | 269 | W32_RES_LINK=@W32_RES_LINK@ |
| @@ -292,6 +294,14 @@ GETLOADAVG_LIBS = @GETLOADAVG_LIBS@ | |||
| 292 | 294 | ||
| 293 | RUN_TEMACS = `/bin/pwd`/temacs | 295 | RUN_TEMACS = `/bin/pwd`/temacs |
| 294 | 296 | ||
| 297 | ## Invoke ../nt/addsection for MinGW, ":" elsewhere. | ||
| 298 | TEMACS_POST_LINK = @TEMACS_POST_LINK@ | ||
| 299 | ADDSECTION = @ADDSECTION@ | ||
| 300 | EMACS_HEAPSIZE = @EMACS_HEAPSIZE@ | ||
| 301 | MINGW_TEMACS_POST_LINK = \ | ||
| 302 | mv temacs$(EXEEXT) temacs.tmp; \ | ||
| 303 | ../nt/addsection temacs.tmp temacs$(EXEEXT) EMHEAP $(EMACS_HEAPSIZE) | ||
| 304 | |||
| 295 | UNEXEC_OBJ = @UNEXEC_OBJ@ | 305 | UNEXEC_OBJ = @UNEXEC_OBJ@ |
| 296 | 306 | ||
| 297 | CANNOT_DUMP=@CANNOT_DUMP@ | 307 | CANNOT_DUMP=@CANNOT_DUMP@ |
| @@ -372,9 +382,9 @@ VMLIMIT_OBJ=@VMLIMIT_OBJ@ | |||
| 372 | ## ralloc.o if !SYSTEM_MALLOC && REL_ALLOC, else empty. | 382 | ## ralloc.o if !SYSTEM_MALLOC && REL_ALLOC, else empty. |
| 373 | RALLOC_OBJ=@RALLOC_OBJ@ | 383 | RALLOC_OBJ=@RALLOC_OBJ@ |
| 374 | 384 | ||
| 375 | ## Empty on Cygwin, lastfile.o elsewhere. | 385 | ## Empty on Cygwin and MinGW, lastfile.o elsewhere. |
| 376 | PRE_ALLOC_OBJ=@PRE_ALLOC_OBJ@ | 386 | PRE_ALLOC_OBJ=@PRE_ALLOC_OBJ@ |
| 377 | ## lastfile.o on Cygwin, empty elsewhere. | 387 | ## lastfile.o on Cygwin and MinGW, empty elsewhere. |
| 378 | POST_ALLOC_OBJ=@POST_ALLOC_OBJ@ | 388 | POST_ALLOC_OBJ=@POST_ALLOC_OBJ@ |
| 379 | 389 | ||
| 380 | ## List of object files that make-docfile should not be told about. | 390 | ## List of object files that make-docfile should not be told about. |
| @@ -382,7 +392,9 @@ otherobj= $(TERMCAP_OBJ) $(PRE_ALLOC_OBJ) $(GMALLOC_OBJ) $(RALLOC_OBJ) \ | |||
| 382 | $(POST_ALLOC_OBJ) $(WIDGET_OBJ) $(LIBOBJS) | 392 | $(POST_ALLOC_OBJ) $(WIDGET_OBJ) $(LIBOBJS) |
| 383 | 393 | ||
| 384 | ## All object files linked into temacs. $(VMLIMIT_OBJ) should be first. | 394 | ## All object files linked into temacs. $(VMLIMIT_OBJ) should be first. |
| 385 | ALLOBJS = $(VMLIMIT_OBJ) $(obj) $(otherobj) | 395 | ## (On MinGW, firstfile.o should be before vm-limit.o.) |
| 396 | FIRSTFILE_OBJ=@FIRSTFILE_OBJ@ | ||
| 397 | ALLOBJS = $(FIRSTFILE_OBJ) $(VMLIMIT_OBJ) $(obj) $(otherobj) | ||
| 386 | 398 | ||
| 387 | ## Configure inserts the file lisp.mk at this point, defining $lisp. | 399 | ## Configure inserts the file lisp.mk at this point, defining $lisp. |
| 388 | @lisp_frag@ | 400 | @lisp_frag@ |
| @@ -411,7 +423,8 @@ $(leimdir)/leim-list.el: bootstrap-emacs$(EXEEXT) | |||
| 411 | ## Strictly speaking, emacs does not depend directly on all of $lisp, | 423 | ## Strictly speaking, emacs does not depend directly on all of $lisp, |
| 412 | ## since not all pieces are used on all platforms. But DOC depends | 424 | ## since not all pieces are used on all platforms. But DOC depends |
| 413 | ## on all of $lisp, and emacs depends on DOC, so it is ok to use $lisp here. | 425 | ## on all of $lisp, and emacs depends on DOC, so it is ok to use $lisp here. |
| 414 | emacs$(EXEEXT): temacs$(EXEEXT) $(etc)/DOC $(lisp) $(leimdir)/leim-list.el | 426 | emacs$(EXEEXT): temacs$(EXEEXT) $(ADDSECTION) \ |
| 427 | $(etc)/DOC $(lisp) $(leimdir)/leim-list.el | ||
| 415 | if test "$(CANNOT_DUMP)" = "yes"; then \ | 428 | if test "$(CANNOT_DUMP)" = "yes"; then \ |
| 416 | rm -f emacs$(EXEEXT); \ | 429 | rm -f emacs$(EXEEXT); \ |
| 417 | ln temacs$(EXEEXT) emacs$(EXEEXT); \ | 430 | ln temacs$(EXEEXT) emacs$(EXEEXT); \ |
| @@ -463,10 +476,11 @@ $(lib)/libgnu.a: $(config_h) | |||
| 463 | cd $(lib) && $(MAKE) libgnu.a | 476 | cd $(lib) && $(MAKE) libgnu.a |
| 464 | 477 | ||
| 465 | temacs$(EXEEXT): stamp-oldxmenu $(ALLOBJS) \ | 478 | temacs$(EXEEXT): stamp-oldxmenu $(ALLOBJS) \ |
| 466 | $(lib)/libgnu.a $(W32_RES) | 479 | $(lib)/libgnu.a $(EMACSRES) |
| 467 | $(CC) $(ALL_CFLAGS) $(TEMACS_LDFLAGS) $(LDFLAGS) \ | 480 | $(CC) $(ALL_CFLAGS) $(TEMACS_LDFLAGS) $(LDFLAGS) \ |
| 468 | -o temacs $(ALLOBJS) $(lib)/libgnu.a $(LIBES) \ | 481 | -o temacs $(ALLOBJS) $(lib)/libgnu.a $(LIBES) \ |
| 469 | $(W32_RES_LINK) | 482 | $(W32_RES_LINK) |
| 483 | $(TEMACS_POST_LINK) | ||
| 470 | test "$(CANNOT_DUMP)" = "yes" || \ | 484 | test "$(CANNOT_DUMP)" = "yes" || \ |
| 471 | test "X$(PAXCTL)" = X || $(PAXCTL) -r temacs$(EXEEXT) | 485 | test "X$(PAXCTL)" = X || $(PAXCTL) -r temacs$(EXEEXT) |
| 472 | 486 | ||
| @@ -509,7 +523,7 @@ doc.o: buildobj.h | |||
| 509 | 523 | ||
| 510 | emacs.res: $(ntsource)/emacs.rc \ | 524 | emacs.res: $(ntsource)/emacs.rc \ |
| 511 | $(ntsource)/icons/emacs.ico \ | 525 | $(ntsource)/icons/emacs.ico \ |
| 512 | $(ntsource)/emacs-x86.manifest | 526 | $(ntsource)/$(EMACS_MANIFEST) |
| 513 | $(WINDRES) -O COFF -o $@ $(ntsource)/emacs.rc | 527 | $(WINDRES) -O COFF -o $@ $(ntsource)/emacs.rc |
| 514 | 528 | ||
| 515 | ns-app: emacs$(EXEEXT) | 529 | ns-app: emacs$(EXEEXT) |