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