summaryrefslogtreecommitdiff
path: root/src/makefile.nt
diff options
context:
space:
mode:
authorAndrew Innes <andrewi@gnu.org>2000-08-22 22:32:56 +0000
committerAndrew Innes <andrewi@gnu.org>2000-08-22 22:32:56 +0000
commit8f81799e7c60ba00bc4fe834d0846e6e2993b80b (patch)
tree9e275234f4343018948cceaea1d7f110b19a1919 /src/makefile.nt
parentbd3cdee3358680cf7fa0b034b702f06d119cf3cb (diff)
downloademacs-8f81799e7c60ba00bc4fe834d0846e6e2993b80b.tar.gz
(LOCAL_FLAGS): Define USE_CRT_DLL if requested.
(LINK_FLAGS): Append to original value of LINK_FLAGS.
Diffstat (limited to 'src/makefile.nt')
-rw-r--r--src/makefile.nt9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/makefile.nt b/src/makefile.nt
index 420eb4d7a94..34acca622d3 100644
--- a/src/makefile.nt
+++ b/src/makefile.nt
@@ -36,6 +36,11 @@ LOCAL_FLAGS = -Demacs=1 -DWINDOWSNT -DDOS_NT -DHAVE_CONFIG_H -I..\nt\inc
!ifdef NTGUI
LOCAL_FLAGS = $(LOCAL_FLAGS) -DHAVE_NTGUI=1
!endif
+!ifdef USE_CRT_DLL
+LOCAL_FLAGS = $(LOCAL_FLAGS) -DUSE_CRT_DLL=1 -MD
+libc = msvcrt.lib
+LINK_FLAGS = -nodefaultlib
+!endif
# From MSVC 5.0 onwards, it seem base relocation information is not included,
# at least in release builds. We need to ensure the reloc info is included
@@ -68,9 +73,9 @@ TLASTLIB = $(BLD)\lastfile.lib
# see comments in allocate_heap in w32heap.c before changing any of the
# -stack, -heap, or -base settings.
!if "$(BUILD_TYPE)" == "spd"
-LINK_FLAGS = $(ARCH_LDFLAGS) -stack:0x00800000 -heap:0x00100000 -base:0x01000000 -debug:full -debugtype:both -pdb:$(BLD)\temacs.pdb -machine:$(ARCH) -subsystem:$(SUBSYSTEM) -entry:_start -map:$(BLD)\temacs.map -swaprun:net -swaprun:cd
+LINK_FLAGS = $(LINK_FLAGS) $(ARCH_LDFLAGS) -stack:0x00800000 -heap:0x00100000 -base:0x01000000 -debug:full -debugtype:both -pdb:$(BLD)\temacs.pdb -machine:$(ARCH) -subsystem:$(SUBSYSTEM) -entry:_start -map:$(BLD)\temacs.map -swaprun:net -swaprun:cd
!else
-LINK_FLAGS = $(ARCH_LDFLAGS) -stack:0x00800000 -heap:0x00100000 -base:0x01000000 -debug:full -debugtype:both -pdb:none -machine:$(ARCH) -subsystem:$(SUBSYSTEM) -entry:_start -map:$(BLD)\temacs.map -swaprun:net -swaprun:cd $(EXTRA_LINK)
+LINK_FLAGS = $(LINK_FLAGS) $(ARCH_LDFLAGS) -stack:0x00800000 -heap:0x00100000 -base:0x01000000 -debug:full -debugtype:both -pdb:none -machine:$(ARCH) -subsystem:$(SUBSYSTEM) -entry:_start -map:$(BLD)\temacs.map -swaprun:net -swaprun:cd $(EXTRA_LINK)
!endif
#