]>
Commit | Line | Data |
---|---|---|
0272a10d VZ |
1 | # makefile for libpng |
2 | # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. | |
b61cc19c PC |
3 | # Copyright (C) 2006, 2009 Glenn Randers-Pehrson |
4 | # | |
5 | # This code is released under the libpng license. | |
6 | # For conditions of distribution and use, see the disclaimer | |
7 | # and license in png.h | |
8 | # | |
0272a10d VZ |
9 | # Assumes that zlib.lib, zconf.h, and zlib.h have been copied to ..\zlib |
10 | ||
11 | # -------- Microsoft C 5.1 and later, does not use assembler code -------- | |
12 | MODEL=L | |
13 | CFLAGS=-Oait -Gs -nologo -W3 -A$(MODEL) -I..\zlib | |
14 | #-Ox generates bad code with MSC 5.1 | |
15 | CC=cl | |
16 | LD=link | |
17 | LDFLAGS=/e/st:0x1500/noe | |
18 | O=.obj | |
19 | ||
20 | #uncomment next to put error messages in a file | |
21 | ERRFILE= >> pngerrs | |
22 | ||
23 | # variables | |
24 | OBJS1 = png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O) | |
25 | OBJS2 = pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O) | |
26 | OBJS3 = pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O) | |
27 | ||
28 | all: libpng.lib | |
29 | ||
b61cc19c | 30 | png$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
31 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) |
32 | ||
b61cc19c | 33 | pngset$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
34 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) |
35 | ||
b61cc19c | 36 | pngget$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
37 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) |
38 | ||
b61cc19c | 39 | pngread$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
40 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) |
41 | ||
b61cc19c | 42 | pngpread$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
43 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) |
44 | ||
b61cc19c | 45 | pngrtran$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
46 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) |
47 | ||
b61cc19c | 48 | pngrutil$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
49 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) |
50 | ||
b61cc19c | 51 | pngerror$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
52 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) |
53 | ||
b61cc19c | 54 | pngmem$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
55 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) |
56 | ||
b61cc19c | 57 | pngrio$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
58 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) |
59 | ||
b61cc19c | 60 | pngwio$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
61 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) |
62 | ||
b61cc19c | 63 | pngtrans$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
64 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) |
65 | ||
b61cc19c | 66 | pngwrite$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
67 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) |
68 | ||
b61cc19c | 69 | pngwtran$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
70 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) |
71 | ||
b61cc19c | 72 | pngwutil$(O): png.h pngconf.h pngpriv.h |
0272a10d VZ |
73 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) |
74 | ||
75 | libpng.lib: $(OBJS1) $(OBJS2) $(OBJS3) | |
76 | del libpng.lib | |
77 | lib libpng $(OBJS1); | |
78 | lib libpng $(OBJS2); | |
79 | lib libpng $(OBJS3); | |
80 | ||
b61cc19c PC |
81 | pngtest$(O): png.h pngconf.h |
82 | $(CC) -c $(CFLAGS) $*.c $(ERRFILE) | |
83 | ||
0272a10d VZ |
84 | pngtest.exe: pngtest.obj libpng.lib |
85 | $(LD) $(LDFLAGS) pngtest.obj,,,libpng.lib ..\zlib\zlib.lib ; | |
86 | ||
87 | test: pngtest.exe | |
88 | pngtest | |
89 | ||
90 | # End of makefile for libpng | |
91 |