]> git.saurik.com Git - wxWidgets.git/blame - src/png/makefile.nt
some really minor changes (the most important one: small memory hole in
[wxWidgets.git] / src / png / makefile.nt
CommitLineData
c801d85f
KB
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
13WXDIR = $(WXWIN)
14WXLIB = $(WXDIR)\lib\wx.lib
15WXINC = $(WXDIR)\include
16
17WINPNGDIR = ..\png
18WINPNGINC = $(WINPNGDIR)
58c55d1f 19WINPNGLIB = ..\..\lib\winpng.lib
c801d85f
KB
20
21INC = /I..\zlib
22
23# Set this to nothing if your compiler is MS C++ 7
24ZOPTION=
25
26!ifndef FINAL
27FINAL=0
28!endif
29
30PRECOMP=/YuWX.H
31
32!if "$(FINAL)" == "0"
33OPT = /Od
fbc535ff
JS
34CPPFLAGS= /W4 /Zi /MD /GX $(ZOPTION) $(OPT) /Dwx_msw $(INC) # $(PRECOMP) /Fp$(WXDIR)\src\msw\wx.pch
35CFLAGS= /W4 /Zi /MD /GX /Od /Dwx_msw $(INC)
c801d85f
KB
36LINKFLAGS=/NOD /CO /ONERROR:NOEXE
37!else
38# /Ox for real FINAL version
39OPT = /O2
fbc535ff
JS
40CPPFLAGS= /W4 /MD /GX /Dwx_msw $(INC) # $(PRECOMP) /Fp$(WXDIR)\src\msw\wx.pch
41CFLAGS= /W4 /MD /GX /Dwx_msw $(INC)
c801d85f
KB
42LINKFLAGS=/NOD /ONERROR:NOEXE
43!endif
44
45OBJECTS = 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
49all: $(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
61clean:
fbc535ff
JS
62 erase *.obj
63 erase *.exe
64 erase *.lib
c801d85f
KB
65
66cleanall: clean