X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/48d1144bc4dabb9f8dd6f913e9a65d709e5995e3..bcd3d8d9e26e41615d26d457ba0e2b84b80a0356:/src/png/makefile.vc?ds=sidebyside diff --git a/src/png/makefile.vc b/src/png/makefile.vc index a4c8b19d4b..b6dc8e43b0 100644 --- a/src/png/makefile.vc +++ b/src/png/makefile.vc @@ -1,66 +1,31 @@ -# -# File: makefile.nt -# Author: Julian Smart -# Created: 1993 -# Updated: -# Copyright: (c) 1993, AIAI, University of Edinburgh -# -# "%W% %G%" -# -# Makefile : Builds winpng.lib library for Windows 3.1 -# Change WXDIR or WXWIN to wherever wxWindows is found -WXDIR = $(WXWIN) -WXLIB = $(WXDIR)\lib\wx.lib -WXINC = $(WXDIR)\include - -WINPNGDIR = ..\png -WINPNGINC = $(WINPNGDIR) -WINPNGLIB = ..\..\lib\winpng.lib - -INC = /I..\zlib - -# Set this to nothing if your compiler is MS C++ 7 -ZOPTION= - -!ifndef FINAL -FINAL=0 -!endif - -PRECOMP=/YuWX.H - -!if "$(FINAL)" == "0" -OPT = /Od -CPPFLAGS= /W4 /Zi /MD /GX $(ZOPTION) $(OPT) /Dwx_msw $(INC) # $(PRECOMP) /Fp$(WXDIR)\src\msw\wx.pch -CFLAGS= /W4 /Zi /MD /GX /Od /Dwx_msw $(INC) -LINKFLAGS=/NOD /CO /ONERROR:NOEXE +!if "$(FINAL)" == "1" +LIBTARGET=$(WXDIR)\lib\png.lib +!else if "$(FINAL)" == "hybrid" +LIBTARGET=$(WXDIR)\lib\pngh.lib !else -# /Ox for real FINAL version -OPT = /O2 -CPPFLAGS= /W4 /MD /GX /Dwx_msw $(INC) # $(PRECOMP) /Fp$(WXDIR)\src\msw\wx.pch -CFLAGS= /W4 /MD /GX /Dwx_msw $(INC) -LINKFLAGS=/NOD /ONERROR:NOEXE +LIBTARGET=$(WXDIR)\lib\pngd.lib !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 +OBJECTS = $D\png.obj \ + $D\pngread.obj \ + $D\pngrtran.obj \ + $D\pngrutil.obj \ + $D\pngpread.obj \ + $D\pngtrans.obj \ + $D\pngwrite.obj \ + $D\pngwtran.obj \ + $D\pngwutil.obj \ + $D\pngerror.obj \ + $D\pngmem.obj \ + $D\pngwio.obj \ + $D\pngrio.obj \ + $D\pngget.obj \ + $D\pngset.obj -all: $(WINPNGLIB) -$(WINPNGLIB): $(OBJECTS) - erase $(WINPNGLIB) - lib @<< --out:$(WINPNGLIB) -$(OBJECTS) -<< -.c.obj: - cl -DWIN32 $(OPT) $(CFLAGS) /c $*.c +# Pull in standard variable definitions -clean: - erase *.obj - erase *.exe - erase *.lib +!include ..\makelib.vc -cleanall: clean