]>
Commit | Line | Data |
---|---|---|
0272a10d VZ |
1 | # Makefile for libpng (static) |
2 | # IBM C version 3.x for Win32 and OS/2 | |
b61cc19c | 3 | # Copyright (C) 2006 Glenn Randers-Pehrson |
0272a10d | 4 | # Copyright (C) 2000 Cosmin Truta |
b61cc19c PC |
5 | # |
6 | # This code is released under the libpng license. | |
7 | # For conditions of distribution and use, see the disclaimer | |
8 | # and license in png.h | |
9 | # | |
0272a10d VZ |
10 | # Notes: |
11 | # Derived from makefile.std | |
12 | # All modules are compiled in C mode | |
13 | # Tested under Win32, expected to work under OS/2 | |
14 | # Can be easily adapted for IBM VisualAge/C++ for AIX | |
15 | ||
16 | # Location of the zlib library and include files | |
17 | ZLIBINC = ../zlib | |
18 | ZLIBLIB = ../zlib | |
19 | ||
20 | # Compiler, linker, lib and other tools | |
21 | CC = icc | |
22 | LD = ilink | |
23 | AR = ilib | |
24 | RM = del | |
25 | ||
26 | CFLAGS = -I$(ZLIBINC) -Mc -O2 -W3 | |
27 | LDFLAGS = | |
28 | ||
29 | # File extensions | |
30 | O=.obj | |
31 | A=.lib | |
32 | E=.exe | |
33 | ||
34 | # Variables | |
35 | OBJS = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O) \ | |
36 | pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) pngset$(O) \ | |
37 | pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O) | |
38 | ||
39 | LIBS = libpng$(A) $(ZLIBLIB)/zlib$(A) | |
40 | ||
41 | # Targets | |
42 | all: libpng$(A) pngtest$(E) | |
43 | ||
9c0d9ce3 DS |
44 | # see scripts/pnglibconf.mak for more options |
45 | pnglibconf.h: scripts/pnglibconf.h.prebuilt | |
46 | cp scripts/pnglibconf.h.prebuilt $@ | |
47 | ||
0272a10d VZ |
48 | libpng$(A): $(OBJS) |
49 | $(AR) -out:$@ $(OBJS) | |
50 | ||
51 | test: pngtest$(E) | |
52 | pngtest$(E) | |
53 | ||
54 | pngtest: pngtest$(E) | |
55 | ||
56 | pngtest$(E): pngtest$(O) libpng$(A) | |
57 | $(LD) $(LDFLAGS) pngtest$(O) $(LIBS) | |
58 | ||
59 | clean: | |
60 | $(RM) *$(O) | |
61 | $(RM) libpng$(A) | |
9c0d9ce3 | 62 | $(RM) pnglibconf.h |
0272a10d VZ |
63 | $(RM) pngtest$(E) |
64 | $(RM) pngout.png | |
65 | ||
fff5f7d5 VZ |
66 | png$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h |
67 | pngerror$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | |
68 | pngget$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | |
69 | pngmem$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | |
70 | pngpread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | |
71 | pngread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | |
72 | pngrio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | |
73 | pngrtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | |
74 | pngrutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | |
75 | pngset$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | |
76 | pngtrans$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | |
77 | pngwio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | |
78 | pngwrite$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | |
79 | pngwtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | |
80 | pngwutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h | |
b61cc19c | 81 | |
9c0d9ce3 | 82 | pngtest$(O): png.h pngconf.h pnglibconf.h |