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