]> git.saurik.com Git - wxWidgets.git/blame - src/png/scripts/makefile.vcawin32
set m_isBeingDeleted to true (only) in SendDestroyEvent(); call it as early as possib...
[wxWidgets.git] / src / png / scripts / makefile.vcawin32
CommitLineData
0272a10d
VZ
1# makefile for libpng
2# Copyright (C) 1998 Tim Wegner
3# For conditions of distribution and use, see copyright notice in png.h
4# Assumes that zlib.lib, zconf.h, and zlib.h have been copied to ..\zlib
5# To use, do "nmake /f scripts\makefile.vcawin32"
6
7# -------- Microsoft Visual C++ 5.0 and later, uses assembler code --------
8# If you don't want to use assembler (MMX) code, use makefile.vcwin32 instead.
9
10# Compiler, linker, librarian, and other tools
11CC = cl
12LD = link
13AR = lib
14CFLAGS = -DPNG_USE_PNGVCRD -nologo -MD -O2 -W3 -I..\zlib
15LDFLAGS = -nologo
16ARFLAGS = -nologo
17RM = del
18
19# File extensions
20O=.obj
21
22#uncomment next to put error messages in a file
23#ERRFILE= >> pngerrs.log
24
25# Variables
26OBJS1 = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O)
27OBJS2 = pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) pngset$(O)
28OBJS3 = pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O)
29OBJS = $(OBJS1) $(OBJS2) $(OBJS3)
30
31# Targets
32all: libpng.lib
33
34png$(O): png.h pngconf.h
35 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
36
37pngset$(O): png.h pngconf.h
38 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
39
40pngget$(O): png.h pngconf.h
41 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
42
43pngread$(O): png.h pngconf.h
44 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
45
46pngpread$(O): png.h pngconf.h
47 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
48
49pngrtran$(O): png.h pngconf.h
50 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
51
52pngrutil$(O): png.h pngconf.h
53 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
54
55pngerror$(O): png.h pngconf.h
56 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
57
58pngmem$(O): png.h pngconf.h
59 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
60
61pngrio$(O): png.h pngconf.h
62 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
63
64pngwio$(O): png.h pngconf.h
65 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
66
67pngtest$(O): png.h pngconf.h
68 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
69
70pngtrans$(O): png.h pngconf.h
71 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
72
73pngwrite$(O): png.h pngconf.h
74 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
75
76pngwtran$(O): png.h pngconf.h
77 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
78
79pngwutil$(O): png.h pngconf.h
80 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
81
82libpng.lib: $(OBJS)
83 -$(RM) $@
84 $(AR) $(ARFLAGS) -out:$@ $(OBJS) $(ERRFILE)
85
86pngtest.exe: pngtest$(O) libpng.lib
87 $(LD) $(LDFLAGS) -out:$@ pngtest$(O) libpng.lib ..\zlib\zlib.lib $(ERRFILE)
88
89test: pngtest.exe
90 pngtest
91
92clean:
93 -$(RM) *$(O)
94 -$(RM) libpng.lib
95 -$(RM) pngtest.exe
96 -$(RM) pngout.png
97
98# End of makefile for libpng
99