]> git.saurik.com Git - wxWidgets.git/blame - src/png/makefile.nt
some clean up of the code
[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
34CPPFLAGS= /W4 /Zi /MDd /GX $(ZOPTION) $(OPT) /Dwx_msw $(INC) # $(PRECOMP) /Fp$(WXDIR)\src\msw\wx.pch
35CFLAGS= /W4 /Zi /MDd /GX /Od /Dwx_msw $(INC)
36LINKFLAGS=/NOD /CO /ONERROR:NOEXE
37!else
38# /Ox for real FINAL version
39OPT = /O2
40CPPFLAGS= /W4 /MDd /GX /Dwx_msw $(INC) # $(PRECOMP) /Fp$(WXDIR)\src\msw\wx.pch
41CFLAGS= /W4 /MDd /GX /Dwx_msw $(INC)
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:
62 erase *.obj *.exe *.lib
63
64cleanall: clean