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
12ZLIBINC = ../zlib
13ZLIBLIB = ../zlib
14
15# Compiler, linker, lib and other tools
16CC = icc
17LD = ilink
18AR = ilib
19RM = del
20
21CFLAGS = -I$(ZLIBINC) -Mc -O2 -W3
22LDFLAGS =
23
24# File extensions
25O=.obj
26A=.lib
27E=.exe
28
29# Variables
30OBJS = 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
34LIBS = libpng$(A) $(ZLIBLIB)/zlib$(A)
35
36# Targets
37all: libpng$(A) pngtest$(E)
38
39libpng$(A): $(OBJS)
40	$(AR) -out:$@ $(OBJS)
41
42test: pngtest$(E)
43	pngtest$(E)
44
45pngtest: pngtest$(E)
46
47pngtest$(E): pngtest$(O) libpng$(A)
48	$(LD) $(LDFLAGS) pngtest$(O) $(LIBS)
49
50clean:
51	$(RM) *$(O)
52	$(RM) libpng$(A)
53	$(RM) pngtest$(E)
54	$(RM) pngout.png
55
56png$(O): png.h pngconf.h
57pngerror$(O): png.h pngconf.h
58pngget$(O): png.h pngconf.h
59pngmem$(O): png.h pngconf.h
60pngpread$(O): png.h pngconf.h
61pngread$(O): png.h pngconf.h
62pngrio$(O): png.h pngconf.h
63pngrtran$(O): png.h pngconf.h
64pngrutil$(O): png.h pngconf.h
65pngset$(O): png.h pngconf.h
66pngtest$(O): png.h pngconf.h
67pngtrans$(O): png.h pngconf.h
68pngwio$(O): png.h pngconf.h
69pngwrite$(O): png.h pngconf.h
70pngwtran$(O): png.h pngconf.h
71pngwutil$(O): png.h pngconf.h
72