X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7c5dc04fd2f93ec42543b64743ea65abd7769000..f8c5636c42238296eb67bf73d1da3c5acb010fee:/src/png/makefile.vc diff --git a/src/png/makefile.vc b/src/png/makefile.vc index cd9345debc..cf5e9f3af6 100644 --- a/src/png/makefile.vc +++ b/src/png/makefile.vc @@ -2,7 +2,7 @@ # File: makefile.vc # Author: Julian Smart # Created: 1993 -# Updated: +# Updated: # Copyright: (c) 1993, AIAI, University of Edinburgh # # "%W% %G%" @@ -14,7 +14,14 @@ WXDIR = $(WXWIN) WINPNGDIR = ..\png WINPNGINC = $(WINPNGDIR) -WINPNGLIB = ..\..\lib\winpng.lib + +!if "$(FINAL)" == "1" +WINPNGLIB=..\..\lib\png.lib +!else if "$(FINAL)" == "hybrid" +WINPNGLIB=..\..\lib\pngh.lib +!else +WINPNGLIB=..\..\lib\pngd.lib +!endif INC = /I..\zlib @@ -25,21 +32,34 @@ ZOPTION= FINAL=0 !endif -PRECOMP=/YuWX.H +PRECOMP=/YuWX.H !if "$(FINAL)" == "0" OPT = /Od -CPPFLAGS= /W4 /Zi /MD /GX $(ZOPTION) $(OPT) /D__WXMSW__ $(INC) -CFLAGS= /W4 /Zi /MD /GX /Od /D__WXMSW__ $(INC) +CPPFLAGS= /W4 /Zi $(CRTFLAG) /GX $(ZOPTION) $(OPT) /D__WXMSW__ $(INC) +CFLAGS= /W4 /Zi $(CRTFLAG) /GX /Od /D__WXMSW__ $(INC) +LINKFLAGS=/NOD /CO /ONERROR:NOEXE +_CRTFLAG=/MDd +!else if "$(FINAL)" == "hybrid" +OPT = /Od +CPPFLAGS= /W4 /Zi $(CRTFLAG) /GX $(ZOPTION) $(OPT) /D__WXMSW__ $(INC) +CFLAGS= /W4 /Zi $(CRTFLAG) /GX /Od /D__WXMSW__ $(INC) LINKFLAGS=/NOD /CO /ONERROR:NOEXE +_CRTFLAG=/MD !else # /Ox for real FINAL version OPT = /O2 -CPPFLAGS= /W4 /MD /GX /D__WXMSW__ $(INC) -CFLAGS= /W4 /MD /GX /D__WXMSW__ $(INC) +CPPFLAGS= /W4 $(CRTFLAG) /GX /D__WXMSW__ $(INC) +CFLAGS= /W4 $(CRTFLAG) /GX /D__WXMSW__ $(INC) LINKFLAGS=/NOD /ONERROR:NOEXE +_CRTFLAG=/MD !endif +!if "$(CRTFLAG)" == "" +CRTFLAG=$(_CRTFLAG) +!endif + + OBJECTS = png.obj pngread.obj pngrtran.obj pngrutil.obj \ pngpread.obj pngtrans.obj pngwrite.obj pngwtran.obj pngwutil.obj \ pngerror.obj pngmem.obj pngwio.obj pngrio.obj pngget.obj pngset.obj @@ -57,8 +77,8 @@ $(OBJECTS) cl -DWIN32 $(OPT) $(CFLAGS) /c $*.c clean: - erase *.obj - erase *.exe - erase *.lib + -erase *.obj + -erase *.exe + -erase $(WINPNGLIB) cleanall: clean