diff options
author | patthoyts <patthoyts> | 2005-03-09 13:42:02 +0000 |
---|---|---|
committer | patthoyts <patthoyts> | 2005-03-09 13:42:02 +0000 |
commit | 5223e4841465ac399bfed2122e7d61dcd60c0102 (patch) | |
tree | 4600d0ddacbdfa26f26fb95ba2b2dbcabf399a89 | |
parent | dc1838a492f4da7a179d713db9432b59ac442283 (diff) | |
download | jimtcl-5223e4841465ac399bfed2122e7d61dcd60c0102.zip jimtcl-5223e4841465ac399bfed2122e7d61dcd60c0102.tar.gz jimtcl-5223e4841465ac399bfed2122e7d61dcd60c0102.tar.bz2 |
Add profile option
-rw-r--r-- | Makefile.vc | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/Makefile.vc b/Makefile.vc index 6d3e56d..4628d7d 100644 --- a/Makefile.vc +++ b/Makefile.vc @@ -1,10 +1,33 @@ # -*- Makefile -*- # +# This is a Microsoft Visual C NMAKE makefile to use in building the +# Jim interpreter. # +# Usage: +# nmake -f Makefile.vc clean all +# +# To build a debug build, add DEBUG=1 to the command line. To build +# for profiling, add PROFILE=1. eg: +# nmake -f Makefile.vc DEBUG=1 clean all +# +# +# Copyright (C) 2005 Pat Thoyts <patthoyts@users.sourceforge.net> +# +#------------------------------------------------------------------------- +# $Id: Makefile.vc,v 1.10 2005/03/09 13:42:02 patthoyts Exp $ +#------------------------------------------------------------------------- SRCDIR =. -!ifdef DEBUG +!ifndef DEBUG +DEBUG =0 +!endif +!ifndef PROFILE +PROFILE =0 +!endif + + +!if $(DEBUG) OUTDIR =Debug CFLAGS =-Od -Zi -GZ -MDd -D_DEBUG LDFLAGS=-debug:full -debugtype:cv @@ -14,6 +37,11 @@ CFLAGS =-O2 -Op -Gs -MD -DNDEBUG LDFLAGS=-release -opt:ref -opt:icf,3 !endif +!if $(PROFILE) +CFLAGS =$(CFLAGS) -Zi +LDFLAGS=$(LDFLAGS) -profile -map +!endif + TMPDIR =$(OUTDIR)\Objects CC =cl -nologo |