]> git.saurik.com Git - wxWidgets.git/blob - src/png/makefile.nt
fixed a signed/unsigned comparison warning introudced by last warning fix...
[wxWidgets.git] / src / png / makefile.nt
1 #
2 # File: makefile.nt
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 WXLIB = $(WXDIR)\lib\wx.lib
15 WXINC = $(WXDIR)\include
16
17 WINPNGDIR = ..\png
18 WINPNGINC = $(WINPNGDIR)
19 WINPNGLIB = ..\..\lib\winpng.lib
20
21 INC = /I..\zlib
22
23 FINAL=1
24
25 # Set this to nothing if your compiler is MS C++ 7
26 ZOPTION=
27
28 !ifndef FINAL
29 FINAL=0
30 !endif
31
32 PRECOMP=/YuWX.H
33
34 !if "$(FINAL)" == "0"
35 OPT = /Od
36 CPPFLAGS= /W4 /Zi /MD /GX- $(ZOPTION) $(OPT) /Dwx_msw $(INC) # $(PRECOMP) /Fp$(WXDIR)\src\msw\wx.pch
37 CFLAGS= /W4 /Zi /MD /GX- /Od /Dwx_msw $(INC)
38 LINKFLAGS=/NOD /CO /ONERROR:NOEXE
39 !else
40 # /Ox for real FINAL version
41 OPT = /O2
42 CPPFLAGS= /W4 /MD /GX- /Dwx_msw $(INC) # $(PRECOMP) /Fp$(WXDIR)\src\msw\wx.pch
43 CFLAGS= /W4 /MD /GX- /Dwx_msw $(INC)
44 LINKFLAGS=/NOD /ONERROR:NOEXE
45 !endif
46
47 OBJECTS = png.obj pngread.obj pngrtran.obj pngrutil.obj \
48 pngpread.obj pngtrans.obj pngwrite.obj pngwtran.obj pngwutil.obj \
49 pngerror.obj pngmem.obj pngwio.obj pngrio.obj pngget.obj pngset.obj
50
51 all: $(WINPNGLIB)
52
53 $(WINPNGLIB): $(OBJECTS)
54 erase $(WINPNGLIB)
55 lib @<<
56 -out:$(WINPNGLIB)
57 $(OBJECTS)
58 <<
59
60 .c.obj:
61 cl -DWIN32 $(OPT) $(CFLAGS) /c $*.c
62
63 clean:
64 erase *.obj
65 erase *.exe
66 erase *.lib
67
68 cleanall: clean