Minor tweaks to MSC makefiles.

This commit is contained in:
Andy McFadden 2003-03-06 01:06:16 +00:00
parent 8b44f2a7b2
commit 74921ad1c1
3 changed files with 8 additions and 2 deletions

View File

@ -20,6 +20,7 @@ CFG=nufxlib - Win32 Debug
MY_BUILD_FLAGS=/D "DEBUG_MSGS"
!ifdef NODEBUG
CFG=nufxlib - Win32 Release
#MY_BUILD_FLAGS=/D "NDEBUG"
MY_BUILD_FLAGS=
!endif
@ -105,7 +106,7 @@ CLEAN :
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
CPP=cl.exe
CPP_PROJ=/nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "NUFXLIB_EXPORTS" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c $(MY_BUILD_FLAGS)
CPP_PROJ=/nologo /MD /W3 /GX /O2 /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "NUFXLIB_EXPORTS" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c $(MY_BUILD_FLAGS)
.c{$(INTDIR)}.obj::
$(CPP) @<<

View File

@ -31,7 +31,8 @@ OBJS = $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4)
#OPT = $(cdebug) /D NDEBUG /ML /O2
OPT = $(cdebug) /ML /O2
!else
OPT = $(cdebug) /MLd /Od
#OPT = $(cdebug) /MLd /Od
OPT = $(cdebug) /D DEBUG_MSGS /MLd /Od
!endif
BUILD_FLAGS = /W3 /GX /D "WIN32"

View File

@ -28,9 +28,11 @@ LIB_PRODUCT = $(NUFXSRCDIR)\nufxlib2.lib
!ifdef DLL
### build using the same libc as the DLL
!ifdef NODEBUG
#OPT = /D NUFXLIB_DLL /D NDEBUG /MD /Ogityb2
OPT = /D NUFXLIB_DLL /MD /Ogityb2
LIB_FLAGS = /nodefaultlib:libcd.lib /nologo setargv.obj
!else
#OPT = /D NUFXLIB_DLL /MDd /Od
OPT = /D NUFXLIB_DLL /D DEBUG_MSGS /MDd /Od
LIB_FLAGS = /nodefaultlib:libc.lib /nologo setargv.obj
!endif
@ -38,9 +40,11 @@ LIB_FLAGS = /nodefaultlib:libc.lib /nologo setargv.obj
### build against static lib
!ifdef NODEBUG
#OPT = /D NDEBUG /ML /Ogityb2
OPT = /ML /Ogityb2
LIB_FLAGS = /nodefaultlib:libcd.lib /nologo libc.lib setargv.obj
!else
#OPT = /MLd /Od
OPT = /D DEBUG_MSGS /MLd /Od
LIB_FLAGS = /nodefaultlib:libc.lib /nologo libcd.lib setargv.obj
!endif