]> git.saurik.com Git - wxWidgets.git/blame - src/png/makefile.nt
support for wxUSE_PALETTE = 0
[wxWidgets.git] / src / png / makefile.nt
CommitLineData
341c92a8
VZ
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)
19WINPNGLIB = ..\..\lib\winpng.lib
20
21INC = /I..\zlib
22
23FINAL=1
24
25# Set this to nothing if your compiler is MS C++ 7
26ZOPTION=
27
28!ifndef FINAL
29FINAL=0
30!endif
31
32PRECOMP=/YuWX.H
33
34!if "$(FINAL)" == "0"
35OPT = /Od
36CPPFLAGS= /W4 /Zi /MD /GX- $(ZOPTION) $(OPT) /Dwx_msw $(INC) # $(PRECOMP) /Fp$(WXDIR)\src\msw\wx.pch
37CFLAGS= /W4 /Zi /MD /GX- /Od /Dwx_msw $(INC)
38LINKFLAGS=/NOD /CO /ONERROR:NOEXE
39!else
40# /Ox for real FINAL version
41OPT = /O2
42CPPFLAGS= /W4 /MD /GX- /Dwx_msw $(INC) # $(PRECOMP) /Fp$(WXDIR)\src\msw\wx.pch
43CFLAGS= /W4 /MD /GX- /Dwx_msw $(INC)
44LINKFLAGS=/NOD /ONERROR:NOEXE
45!endif
46
47OBJECTS = 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
51all: $(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
63clean:
64 erase *.obj
65 erase *.exe
66 erase *.lib
67
68cleanall: clean