]> git.saurik.com Git - wxWidgets.git/blob - src/png/makefile.vc
menu title is drawn in bold font and the commands from it are ignored
[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 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 # Set this to nothing if your compiler is MS C++ 7
24 ZOPTION=
25
26 !ifndef FINAL
27 FINAL=0
28 !endif
29
30 PRECOMP=/YuWX.H
31
32 !if "$(FINAL)" == "0"
33 OPT = /Od
34 CPPFLAGS= /W4 /Zi /MD /GX $(ZOPTION) $(OPT) /Dwx_msw $(INC) # $(PRECOMP) /Fp$(WXDIR)\src\msw\wx.pch
35 CFLAGS= /W4 /Zi /MD /GX /Od /Dwx_msw $(INC)
36 LINKFLAGS=/NOD /CO /ONERROR:NOEXE
37 !else
38 # /Ox for real FINAL version
39 OPT = /O2
40 CPPFLAGS= /W4 /MD /GX /Dwx_msw $(INC) # $(PRECOMP) /Fp$(WXDIR)\src\msw\wx.pch
41 CFLAGS= /W4 /MD /GX /Dwx_msw $(INC)
42 LINKFLAGS=/NOD /ONERROR:NOEXE
43 !endif
44
45 OBJECTS = png.obj pngread.obj pngrtran.obj pngrutil.obj \
46 pngpread.obj pngtrans.obj pngwrite.obj pngwtran.obj pngwutil.obj \
47 pngerror.obj pngmem.obj pngwio.obj pngrio.obj pngget.obj pngset.obj
48
49 all: $(WINPNGLIB)
50
51 $(WINPNGLIB): $(OBJECTS)
52 erase $(WINPNGLIB)
53 lib @<<
54 -out:$(WINPNGLIB)
55 $(OBJECTS)
56 <<
57
58 .c.obj:
59 cl -DWIN32 $(OPT) $(CFLAGS) /c $*.c
60
61 clean:
62 erase *.obj
63 erase *.exe
64 erase *.lib
65
66 cleanall: clean