]> git.saurik.com Git - wxWidgets.git/blame - src/png/scripts/makefile.vcawin32
fixed wxString::FromAscii signature
[wxWidgets.git] / src / png / scripts / makefile.vcawin32
CommitLineData
c6b71bff
GD
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 --------
3d11a79a
VS
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
c6b71bff
GD
20O=.obj
21
22#uncomment next to put error messages in a file
3d11a79a 23#ERRFILE= >> pngerrs.log
c6b71bff 24
3d11a79a
VS
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)
29OBJS4 = pngvcrd$(O)
30OBJS = $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4)
c6b71bff 31
3d11a79a 32# Targets
c6b71bff
GD
33all: libpng.lib
34
35png$(O): png.h pngconf.h
3d11a79a 36 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
c6b71bff
GD
37
38pngset$(O): png.h pngconf.h
39 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
40
41pngget$(O): png.h pngconf.h
42 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
43
44pngread$(O): png.h pngconf.h
45 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
46
47pngpread$(O): png.h pngconf.h
48 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
49
50pngrtran$(O): png.h pngconf.h
51 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
52
53pngrutil$(O): png.h pngconf.h
54 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
55
c6b71bff
GD
56pngerror$(O): png.h pngconf.h
57 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
58
59pngmem$(O): png.h pngconf.h
60 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
61
62pngrio$(O): png.h pngconf.h
63 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
64
65pngwio$(O): png.h pngconf.h
66 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
67
68pngtest$(O): png.h pngconf.h
69 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
70
71pngtrans$(O): png.h pngconf.h
72 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
73
74pngwrite$(O): png.h pngconf.h
75 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
76
77pngwtran$(O): png.h pngconf.h
78 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
79
80pngwutil$(O): png.h pngconf.h
81 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
82
3d11a79a
VS
83pngvcrd$(O): png.h pngconf.h
84 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
85
86libpng.lib: $(OBJS)
87 -$(RM) $@
88 $(AR) $(ARFLAGS) -out:$@ $(OBJS) $(ERRFILE)
c6b71bff 89
3d11a79a
VS
90pngtest.exe: pngtest$(O) libpng.lib
91 $(LD) $(LDFLAGS) -out:$@ pngtest$(O) libpng.lib ..\zlib\zlib.lib $(ERRFILE)
c6b71bff
GD
92
93test: pngtest.exe
94 pngtest
95
3d11a79a
VS
96clean:
97 -$(RM) *$(O)
98 -$(RM) libpng.lib
99 -$(RM) pngtest.exe
100 -$(RM) pngout.png
101
c6b71bff
GD
102# End of makefile for libpng
103