]> git.saurik.com Git - wxWidgets.git/blobdiff - src/png/makefile.vc
merge of RTL changes (with many modifications) from SOC2006_RTL branch
[wxWidgets.git] / src / png / makefile.vc
index 5a871b365713e40a273bd80b551a7da7642b10f0..b07ea6c6877d008511c3aadafa2fc7f74dd194f0 100644 (file)
@@ -1,64 +1,31 @@
-#
-# File:                makefile.vc
-# 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)
-
-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) /D__WXMSW__ $(INC)
-CFLAGS= /W4 /Zi /MD /GX /Od /D__WXMSW__ $(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 /D__WXMSW__ $(INC)
-CFLAGS= /W4 /MD /GX /D__WXMSW__ $(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\pngerror.obj \
+          $D\pngget.obj \
+          $D\pngmem.obj \
+          $D\pngpread.obj \
+          $D\pngread.obj \
+          $D\pngrio.obj \
+          $D\pngrtran.obj \
+          $D\pngrutil.obj \
+          $D\pngset.obj \
+          $D\pngtrans.obj \
+          $D\pngwio.obj \
+          $D\pngwrite.obj \
+          $D\pngwtran.obj \
+          $D\pngwutil.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