]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/png/scripts/makefile.vcawin32
correcting a missing redraw area on certain resize operations when window has a border
[wxWidgets.git] / src / png / scripts / makefile.vcawin32
... / ...
CommitLineData
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
9# Caution: the assembler code was introduced at libpng version 1.0.4 and has
10# not yet been thoroughly tested.
11
12# If you don't want to use assembler code, use makefile.vcwin32 instead.
13
14CFLAGS=-DPNG_USE_PNGVCRD -Ox -GA3s -nologo -W3 -I..\zlib
15
16CC=cl
17LD=link
18LDFLAGS=
19O=.obj
20
21#uncomment next to put error messages in a file
22#ERRFILE= >> pngerrs
23
24# variables
25OBJS1 = png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O)
26OBJS2 = pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O)
27OBJS3 = pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O) pngvcrd$(O)
28
29all: libpng.lib
30
31png$(O): png.h pngconf.h
32 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
33
34pngset$(O): png.h pngconf.h
35 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
36
37pngget$(O): png.h pngconf.h
38 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
39
40pngread$(O): png.h pngconf.h
41 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
42
43pngpread$(O): png.h pngconf.h
44 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
45
46pngrtran$(O): png.h pngconf.h
47 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
48
49pngrutil$(O): png.h pngconf.h
50 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
51
52pngvcrd$(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: $(OBJS1) $(OBJS2) $(OBJS3)
83 echo something to del > libpng.lib
84 del libpng.lib
85 lib /OUT:libpng.lib $(OBJS1) $(OBJS2) $(OBJS3)
86
87pngtest.exe: pngtest.obj libpng.lib
88 $(LD) $(LDFLAGS) pngtest.obj libpng.lib ..\zlib\zlib.lib /OUT:pngtest.exe /SUBSYSTEM:CONSOLE
89
90test: pngtest.exe
91 pngtest
92
93# End of makefile for libpng
94