]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/png/makefile.vc
another GetInt/GetId bug fix
[wxWidgets.git] / src / png / makefile.vc
... / ...
CommitLineData
1#
2# File: makefile.vc
3# Author: Julian Smart
4# Created: 1993
5# Updated:
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)
14
15WINPNGDIR = ..\png
16WINPNGINC = $(WINPNGDIR)
17
18!if "$(FINAL)" == "1"
19WINPNGLIB=..\..\lib\png.lib
20!else
21WINPNGLIB=..\..\lib\pngd.lib
22!endif
23
24INC = /I..\zlib
25
26# Set this to nothing if your compiler is MS C++ 7
27ZOPTION=
28
29!ifndef FINAL
30FINAL=0
31!endif
32
33PRECOMP=/YuWX.H
34
35!if "$(FINAL)" == "0"
36OPT = /Od
37CPPFLAGS= /W4 /Zi $(CRTFLAG) /GX $(ZOPTION) $(OPT) /D__WXMSW__ $(INC)
38CFLAGS= /W4 /Zi $(CRTFLAG) /GX /Od /D__WXMSW__ $(INC)
39LINKFLAGS=/NOD /CO /ONERROR:NOEXE
40_CRTFLAG=/MDd
41!else
42# /Ox for real FINAL version
43OPT = /O2
44CPPFLAGS= /W4 $(CRTFLAG) /GX /D__WXMSW__ $(INC)
45CFLAGS= /W4 $(CRTFLAG) /GX /D__WXMSW__ $(INC)
46LINKFLAGS=/NOD /ONERROR:NOEXE
47_CRTFLAG=/MDd
48!endif
49
50!if "$(CRTFLAG)" == ""
51CRTFLAG=$(_CRTFLAG)
52!endif
53
54
55OBJECTS = png.obj pngread.obj pngrtran.obj pngrutil.obj \
56 pngpread.obj pngtrans.obj pngwrite.obj pngwtran.obj pngwutil.obj \
57 pngerror.obj pngmem.obj pngwio.obj pngrio.obj pngget.obj pngset.obj
58
59all: $(WINPNGLIB)
60
61$(WINPNGLIB): $(OBJECTS)
62 -erase $(WINPNGLIB)
63 lib @<<
64-out:$(WINPNGLIB)
65$(OBJECTS)
66<<
67
68.c.obj:
69 cl -DWIN32 $(OPT) $(CFLAGS) /c $*.c
70
71clean:
72 -erase *.obj
73 -erase *.exe
74 -erase $(WINPNGLIB)
75
76cleanall: clean