]> git.saurik.com Git - wxWidgets.git/blame - src/png/scripts/makefile.msc
Hopefully fixed library names generated by wx-config for OS/2's PM port.
[wxWidgets.git] / src / png / scripts / makefile.msc
CommitLineData
c801d85f
KB
1# makefile for libpng
2# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
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
9dfaa473
GD
6# -------- Microsoft C 5.1 and later, does not use assembler code --------
7MODEL=L
8CFLAGS=-Oait -Gs -nologo -W3 -A$(MODEL) -I..\zlib
c801d85f
KB
9#-Ox generates bad code with MSC 5.1
10CC=cl
11LD=link
9dfaa473 12LDFLAGS=/e/st:0x1500/noe
c801d85f
KB
13O=.obj
14
15#uncomment next to put error messages in a file
16ERRFILE= >> pngerrs
17
18# variables
19OBJS1 = png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O)
20OBJS2 = pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O)
21OBJS3 = pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
22
23all: libpng.lib
24
25png$(O): png.h pngconf.h
26 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
27
28pngset$(O): png.h pngconf.h
9dfaa473 29 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
c801d85f
KB
30
31pngget$(O): png.h pngconf.h
9dfaa473 32 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
c801d85f
KB
33
34pngread$(O): png.h pngconf.h
9dfaa473 35 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
c801d85f
KB
36
37pngpread$(O): png.h pngconf.h
38 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
39
40pngrtran$(O): png.h pngconf.h
9dfaa473 41 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
c801d85f
KB
42
43pngrutil$(O): png.h pngconf.h
9dfaa473 44 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
c801d85f
KB
45
46pngerror$(O): png.h pngconf.h
9dfaa473 47 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
c801d85f
KB
48
49pngmem$(O): png.h pngconf.h
9dfaa473 50 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
c801d85f
KB
51
52pngrio$(O): png.h pngconf.h
9dfaa473 53 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
c801d85f
KB
54
55pngwio$(O): png.h pngconf.h
9dfaa473 56 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
c801d85f
KB
57
58pngtest$(O): png.h pngconf.h
9dfaa473 59 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
c801d85f
KB
60
61pngtrans$(O): png.h pngconf.h
9dfaa473 62 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
c801d85f
KB
63
64pngwrite$(O): png.h pngconf.h
9dfaa473 65 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
c801d85f
KB
66
67pngwtran$(O): png.h pngconf.h
9dfaa473 68 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
c801d85f
KB
69
70pngwutil$(O): png.h pngconf.h
9dfaa473 71 $(CC) -c $(CFLAGS) $*.c $(ERRFILE)
c801d85f
KB
72
73libpng.lib: $(OBJS1) $(OBJS2) $(OBJS3)
9dfaa473 74 del libpng.lib
c801d85f
KB
75 lib libpng $(OBJS1);
76 lib libpng $(OBJS2);
77 lib libpng $(OBJS3);
78
9dfaa473 79pngtest.exe: pngtest.obj libpng.lib
c801d85f
KB
80 $(LD) $(LDFLAGS) pngtest.obj,,,libpng.lib ..\zlib\zlib.lib ;
81
82test: pngtest.exe
83 pngtest
84
85# End of makefile for libpng
86