]> git.saurik.com Git - wxWidgets.git/blame - src/png/makefile.vc
VTK wrapper of vtkRenderWindow for wxPython. Tested on MSW so far.
[wxWidgets.git] / src / png / makefile.vc
CommitLineData
c801d85f 1#
7921cf2b 2# File: makefile.vc
c801d85f
KB
3# Author: Julian Smart
4# Created: 1993
3156ba6e 5# Updated:
c801d85f
KB
6# Copyright: (c) 1993, AIAI, University of Edinburgh
7#
8# "%W% %G%"
9#
10# Makefile : Builds winpng.lib library for Windows 3.1
11
12# Change WXDIR or WXWIN to wherever wxWindows is found
13WXDIR = $(WXWIN)
c801d85f
KB
14
15WINPNGDIR = ..\png
16WINPNGINC = $(WINPNGDIR)
58c55d1f 17WINPNGLIB = ..\..\lib\winpng.lib
c801d85f
KB
18
19INC = /I..\zlib
20
21# Set this to nothing if your compiler is MS C++ 7
22ZOPTION=
23
24!ifndef FINAL
25FINAL=0
26!endif
27
3156ba6e 28PRECOMP=/YuWX.H
c801d85f
KB
29
30!if "$(FINAL)" == "0"
31OPT = /Od
3156ba6e
RD
32CPPFLAGS= /W4 /Zi $(CRTFLAG) /GX $(ZOPTION) $(OPT) /D__WXMSW__ $(INC)
33CFLAGS= /W4 /Zi $(CRTFLAG) /GX /Od /D__WXMSW__ $(INC)
c801d85f 34LINKFLAGS=/NOD /CO /ONERROR:NOEXE
3156ba6e 35_CRTFLAG=/MDd
c801d85f
KB
36!else
37# /Ox for real FINAL version
38OPT = /O2
3156ba6e
RD
39CPPFLAGS= /W4 $(CRTFLAG) /GX /D__WXMSW__ $(INC)
40CFLAGS= /W4 $(CRTFLAG) /GX /D__WXMSW__ $(INC)
c801d85f 41LINKFLAGS=/NOD /ONERROR:NOEXE
3156ba6e 42_CRTFLAG=/MDd
c801d85f
KB
43!endif
44
3156ba6e
RD
45!if "$(CRTFLAG)" == ""
46CRTFLAG=$(_CRTFLAG)
47!endif
48
49
c801d85f
KB
50OBJECTS = png.obj pngread.obj pngrtran.obj pngrutil.obj \
51 pngpread.obj pngtrans.obj pngwrite.obj pngwtran.obj pngwutil.obj \
52 pngerror.obj pngmem.obj pngwio.obj pngrio.obj pngget.obj pngset.obj
53
54all: $(WINPNGLIB)
55
56$(WINPNGLIB): $(OBJECTS)
7c5dc04f 57 -erase $(WINPNGLIB)
c801d85f
KB
58 lib @<<
59-out:$(WINPNGLIB)
60$(OBJECTS)
61<<
62
63.c.obj:
64 cl -DWIN32 $(OPT) $(CFLAGS) /c $*.c
65
66clean:
e6f09be7
BM
67 -erase *.obj
68 -erase *.exe
69 -erase *.lib
c801d85f
KB
70
71cleanall: clean