]> git.saurik.com Git - wxWidgets.git/blame - src/png/scripts/makefile.vcwin32
Applied DnD patch, adding a field for setting a default action.
[wxWidgets.git] / src / png / scripts / makefile.vcwin32
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.vcwin32"
6
3d11a79a
VS
7# -------- Microsoft Visual C++ 2.0 and later, no assembler code --------
8# If you want to use assembler (MMX) code, use makefile.vcawin32 instead.
9
10# Compiler, linker, librarian, and other tools
11CC = cl
12LD = link
13AR = lib
14CFLAGS = -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)
29OBJS = $(OBJS1) $(OBJS2) $(OBJS3)
c6b71bff 30
3d11a79a 31# Targets
c6b71bff
GD
32all: libpng.lib
33
34png$(O): png.h pngconf.h
3d11a79a 35 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
c6b71bff
GD
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
3d11a79a
VS
82libpng.lib: $(OBJS)
83 -$(RM) $@
84 $(AR) $(ARFLAGS) -out:$@ $(OBJS) $(ERRFILE)
c6b71bff 85
3d11a79a
VS
86pngtest.exe: pngtest$(O) libpng.lib
87 $(LD) $(LDFLAGS) -out:$@ pngtest$(O) libpng.lib ..\zlib\zlib.lib $(ERRFILE)
c6b71bff
GD
88
89test: pngtest.exe
90 pngtest
91
3d11a79a
VS
92clean:
93 -$(RM) *$(O)
94 -$(RM) libpng.lib
95 -$(RM) pngtest.exe
96 -$(RM) pngout.png
97
c6b71bff
GD
98# End of makefile for libpng
99