X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d604ea33556e3b97b32f11c6dc6bc6bcb1bbcbee..b49576e07725d578c231fdd09243d9edb0eab701:/src/zlib/makefile.vc diff --git a/src/zlib/makefile.vc b/src/zlib/makefile.vc index 1af77a34f4..283ea06376 100644 --- a/src/zlib/makefile.vc +++ b/src/zlib/makefile.vc @@ -15,11 +15,18 @@ FINAL=0 !endif !if "$(FINAL)" == "0" -CFLAGS=/Od /MDd /GX +CFLAGS=/Od $(CRTFLAG) /GX +_CRTFLAG=/MDd !else -CFLAGS=-O2 /MD /GX +CFLAGS=-O2 $(CRTFLAG) /GX +_CRTFLAG=/MD !endif +!if "$(CRTFLAG)" == "" +CRTFLAG=$(_CRTFLAG) +!endif + + CC=cl LD=cl LIB=tlib @@ -31,9 +38,9 @@ LIBTARGET=..\..\lib\zlib.lib # variables OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \ - trees$(O) + trees$(O) OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \ - infutil$(O) inffast$(O) + infutil$(O) inffast$(O) all: $(LIBTARGET) @@ -84,7 +91,7 @@ zutil.obj: zutil.c zutil.h zlib.h zconf.h LIBOBJECTS = $(OBJ1) $(OBJ2) $(LIBTARGET): $(LIBOBJECTS) - del $(LIBTARGET) + -del $(LIBTARGET) lib @<< -out:$(LIBTARGET) $(LIBOBJECTS)