aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2013-04-01 16:18:20 +0300
committerEli Zaretskii2013-04-01 16:18:20 +0300
commit095bf25383aab763b09bc4df4593632d51e37ec6 (patch)
tree63a16a4ff09d582ed5eda0d277eb985b39fb4bfd /src
parenta74b0e1bdf0f2f49bce82dd7e15264c5c548d980 (diff)
downloademacs-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.in30
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@
260W32_LIBS=@W32_LIBS@ 260W32_LIBS=@W32_LIBS@
261 261
262## emacs.res if HAVE_W32 262## emacs.res if HAVE_W32
263W32_RES=@W32_RES@ 263EMACSRES = @EMACSRES@
264## If HAVE_W32, compiler arguments for including 264## emacs-*.manifest if HAVE_W32
265EMACS_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
267W32_RES_LINK=@W32_RES_LINK@ 269W32_RES_LINK=@W32_RES_LINK@
@@ -292,6 +294,14 @@ GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
292 294
293RUN_TEMACS = `/bin/pwd`/temacs 295RUN_TEMACS = `/bin/pwd`/temacs
294 296
297## Invoke ../nt/addsection for MinGW, ":" elsewhere.
298TEMACS_POST_LINK = @TEMACS_POST_LINK@
299ADDSECTION = @ADDSECTION@
300EMACS_HEAPSIZE = @EMACS_HEAPSIZE@
301MINGW_TEMACS_POST_LINK = \
302 mv temacs$(EXEEXT) temacs.tmp; \
303 ../nt/addsection temacs.tmp temacs$(EXEEXT) EMHEAP $(EMACS_HEAPSIZE)
304
295UNEXEC_OBJ = @UNEXEC_OBJ@ 305UNEXEC_OBJ = @UNEXEC_OBJ@
296 306
297CANNOT_DUMP=@CANNOT_DUMP@ 307CANNOT_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.
373RALLOC_OBJ=@RALLOC_OBJ@ 383RALLOC_OBJ=@RALLOC_OBJ@
374 384
375## Empty on Cygwin, lastfile.o elsewhere. 385## Empty on Cygwin and MinGW, lastfile.o elsewhere.
376PRE_ALLOC_OBJ=@PRE_ALLOC_OBJ@ 386PRE_ALLOC_OBJ=@PRE_ALLOC_OBJ@
377## lastfile.o on Cygwin, empty elsewhere. 387## lastfile.o on Cygwin and MinGW, empty elsewhere.
378POST_ALLOC_OBJ=@POST_ALLOC_OBJ@ 388POST_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.
385ALLOBJS = $(VMLIMIT_OBJ) $(obj) $(otherobj) 395## (On MinGW, firstfile.o should be before vm-limit.o.)
396FIRSTFILE_OBJ=@FIRSTFILE_OBJ@
397ALLOBJS = $(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.
414emacs$(EXEEXT): temacs$(EXEEXT) $(etc)/DOC $(lisp) $(leimdir)/leim-list.el 426emacs$(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
465temacs$(EXEEXT): stamp-oldxmenu $(ALLOBJS) \ 478temacs$(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
510emacs.res: $(ntsource)/emacs.rc \ 524emacs.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
515ns-app: emacs$(EXEEXT) 529ns-app: emacs$(EXEEXT)