]> git.saurik.com Git - wxWidgets.git/blob - src/png/makefile.vc
Minor updates to help compiles
[wxWidgets.git] / src / png / makefile.vc
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
13 WXDIR = $(WXWIN)
14
15 WINPNGDIR = ..\png
16 WINPNGINC = $(WINPNGDIR)
17
18 !if "$(FINAL)" == "1"
19 WINPNGLIB=..\..\lib\png.lib
20 !else if "$(FINAL)" == "hybrid"
21 WINPNGLIB=..\..\lib\pngh.lib
22 !else
23 WINPNGLIB=..\..\lib\pngd.lib
24 !endif
25
26 INC = /I..\zlib
27
28 # Set this to nothing if your compiler is MS C++ 7
29 ZOPTION=
30
31 !ifndef FINAL
32 FINAL=0
33 !endif
34
35 PRECOMP=/YuWX.H
36
37 !if "$(FINAL)" == "0"
38 OPT = /Od
39 CPPFLAGS= /W4 /Zi $(CRTFLAG) /GX $(ZOPTION) $(OPT) /D__WXMSW__ $(INC)
40 CFLAGS= /W4 /Zi $(CRTFLAG) /GX /Od /D__WXMSW__ $(INC)
41 LINKFLAGS=/NOD /CO /ONERROR:NOEXE
42 _CRTFLAG=/MDd
43 !else if "$(FINAL)" == "hybrid"
44 OPT = /Od
45 CPPFLAGS= /W4 /Zi $(CRTFLAG) /GX $(ZOPTION) $(OPT) /D__WXMSW__ $(INC)
46 CFLAGS= /W4 /Zi $(CRTFLAG) /GX /Od /D__WXMSW__ $(INC)
47 LINKFLAGS=/NOD /CO /ONERROR:NOEXE
48 _CRTFLAG=/MD
49 !else
50 # /Ox for real FINAL version
51 OPT = /O2
52 CPPFLAGS= /W4 $(CRTFLAG) /GX /D__WXMSW__ $(INC)
53 CFLAGS= /W4 $(CRTFLAG) /GX /D__WXMSW__ $(INC)
54 LINKFLAGS=/NOD /ONERROR:NOEXE
55 _CRTFLAG=/MD
56 !endif
57
58 !if "$(CRTFLAG)" == ""
59 CRTFLAG=$(_CRTFLAG)
60 !endif
61
62
63 OBJECTS = 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
67 all: $(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
79 clean:
80 -erase *.obj
81 -erase *.exe
82 -erase $(WINPNGLIB)
83
84 cleanall: clean