]> git.saurik.com Git - wxWidgets.git/blame - src/png/makefile.vc
Ignore erase failures
[wxWidgets.git] / src / png / makefile.vc
CommitLineData
c801d85f 1#
7921cf2b 2# File: makefile.vc
c801d85f
KB
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)
c801d85f
KB
14
15WINPNGDIR = ..\png
16WINPNGINC = $(WINPNGDIR)
58c55d1f 17WINPNGLIB = ..\..\lib\winpng.lib
c801d85f
KB
18
19INC = /I..\zlib
20
21# Set this to nothing if your compiler is MS C++ 7
22ZOPTION=
23
24!ifndef FINAL
25FINAL=0
26!endif
27
28PRECOMP=/YuWX.H
29
30!if "$(FINAL)" == "0"
31OPT = /Od
c7f49969
JS
32CPPFLAGS= /W4 /Zi /MD /GX $(ZOPTION) $(OPT) /D__WXMSW__ $(INC)
33CFLAGS= /W4 /Zi /MD /GX /Od /D__WXMSW__ $(INC)
c801d85f
KB
34LINKFLAGS=/NOD /CO /ONERROR:NOEXE
35!else
36# /Ox for real FINAL version
37OPT = /O2
c7f49969
JS
38CPPFLAGS= /W4 /MD /GX /D__WXMSW__ $(INC)
39CFLAGS= /W4 /MD /GX /D__WXMSW__ $(INC)
c801d85f
KB
40LINKFLAGS=/NOD /ONERROR:NOEXE
41!endif
42
43OBJECTS = png.obj pngread.obj pngrtran.obj pngrutil.obj \
44 pngpread.obj pngtrans.obj pngwrite.obj pngwtran.obj pngwutil.obj \
45 pngerror.obj pngmem.obj pngwio.obj pngrio.obj pngget.obj pngset.obj
46
47all: $(WINPNGLIB)
48
49$(WINPNGLIB): $(OBJECTS)
7c5dc04f 50 -erase $(WINPNGLIB)
c801d85f
KB
51 lib @<<
52-out:$(WINPNGLIB)
53$(OBJECTS)
54<<
55
56.c.obj:
57 cl -DWIN32 $(OPT) $(CFLAGS) /c $*.c
58
59clean:
e6f09be7
BM
60 -erase *.obj
61 -erase *.exe
62 -erase *.lib
c801d85f
KB
63
64cleanall: clean