diff options
author | Jason Rumney <jasonr@gnu.org> | 2008-07-23 15:41:23 +0000 |
---|---|---|
committer | Jason Rumney <jasonr@gnu.org> | 2008-07-23 15:41:23 +0000 |
commit | 75663c75e0b1f07539c0b296405f707edb30c7a2 (patch) | |
tree | 8de710a5515e7063f1d70edcc68e9b9660e3bade /nt/gmake.defs | |
parent | 4b1355037a72c74a0711193d8ef9555bdb728772 (diff) | |
download | emacs-75663c75e0b1f07539c0b296405f707edb30c7a2.tar.gz |
* configure.bat: New option --profile.
* gmake.defs: Set cflags and ldflags for profiling when specified.
Diffstat (limited to 'nt/gmake.defs')
-rw-r--r-- | nt/gmake.defs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/nt/gmake.defs b/nt/gmake.defs index 24c08595547..4959aa947ee 100644 --- a/nt/gmake.defs +++ b/nt/gmake.defs @@ -197,9 +197,18 @@ DEBUG_CFLAGS = -DEMACSDEBUG else DEBUG_CFLAGS = endif -CFLAGS = -I. $(ARCH_CFLAGS) $(DEBUG_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS) +CFLAGS = -I. $(ARCH_CFLAGS) $(DEBUG_CFLAGS) $(PROFILE_CFLAGS) $(USER_CFLAGS) $(LOCAL_FLAGS) EMACS_EXTRA_C_FLAGS = -DUSE_CRT_DLL=1 +ifdef PROFILE +PROFILE_CFLAGS = -pg +PROFILE_LDFLAGS = -pg +else +PROFILE_CFLAGS = +PROFILE_LDFLAGS = +endif + + # see comments in allocate_heap in w32heap.c before changing any of the # -stack, -heap, or -image-base settings. TEMACS_EXTRA_LINK = -Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 $(SUBSYSTEM_CONSOLE) -Wl,-entry,__start -Wl,-Map,$(BLD)/temacs.map @@ -276,7 +285,7 @@ else ERROR Unknown architecture type "$(ARCH)". endif -LINK_FLAGS = $(ARCH_LDFLAGS) $(DEBUG_LINK) $(NOCYGWIN) $(USER_LDFLAGS) +LINK_FLAGS = $(ARCH_LDFLAGS) $(DEBUG_LINK) $(PROFILE_LDFLAGS) $(NOCYGWIN) $(USER_LDFLAGS) export XMFLAGS |