]> git.saurik.com Git - wxWidgets.git/blob - src/png/scripts/makefile.vcawin32
fixed return value of wxMDIChildFrame::HandleGetMinMaxInfo()
[wxWidgets.git] / src / png / scripts / makefile.vcawin32
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
14 CFLAGS=-DPNG_USE_PNGVCRD -Ox -GA3s -nologo -W3 -I..\zlib
15
16 CC=cl
17 LD=link
18 LDFLAGS=
19 O=.obj
20
21 #uncomment next to put error messages in a file
22 #ERRFILE= >> pngerrs
23
24 # variables
25 OBJS1 = png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O)
26 OBJS2 = pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O)
27 OBJS3 = pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O) pngvcrd$(O)
28
29 all: libpng.lib
30
31 png$(O): png.h pngconf.h
32 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
33
34 pngset$(O): png.h pngconf.h
35 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
36
37 pngget$(O): png.h pngconf.h
38 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
39
40 pngread$(O): png.h pngconf.h
41 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
42
43 pngpread$(O): png.h pngconf.h
44 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
45
46 pngrtran$(O): png.h pngconf.h
47 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
48
49 pngrutil$(O): png.h pngconf.h
50 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
51
52 pngvcrd$(O): png.h pngconf.h
53 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
54
55 pngerror$(O): png.h pngconf.h
56 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
57
58 pngmem$(O): png.h pngconf.h
59 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
60
61 pngrio$(O): png.h pngconf.h
62 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
63
64 pngwio$(O): png.h pngconf.h
65 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
66
67 pngtest$(O): png.h pngconf.h
68 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
69
70 pngtrans$(O): png.h pngconf.h
71 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
72
73 pngwrite$(O): png.h pngconf.h
74 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
75
76 pngwtran$(O): png.h pngconf.h
77 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
78
79 pngwutil$(O): png.h pngconf.h
80 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
81
82 libpng.lib: $(OBJS1) $(OBJS2) $(OBJS3)
83 echo something to del > libpng.lib
84 del libpng.lib
85 lib /OUT:libpng.lib $(OBJS1) $(OBJS2) $(OBJS3)
86
87 pngtest.exe: pngtest.obj libpng.lib
88 $(LD) $(LDFLAGS) pngtest.obj libpng.lib ..\zlib\zlib.lib /OUT:pngtest.exe /SUBSYSTEM:CONSOLE
89
90 test: pngtest.exe
91 pngtest
92
93 # End of makefile for libpng
94