1 # Makefile for libpng (static) 2 # IBM C version 3.x for Win32 and OS/2 3 # Copyright (C) 2006 Glenn Randers-Pehrson 4 # Copyright (C) 2000 Cosmin Truta 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 # 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 44 libpng$(A): $(OBJS) 45 $(AR) -out:$@ $(OBJS) 46 47 test: pngtest$(E) 48 pngtest$(E) 49 50 pngtest: pngtest$(E) 51 52 pngtest$(E): pngtest$(O) libpng$(A) 53 $(LD) $(LDFLAGS) pngtest$(O) $(LIBS) 54 55 clean: 56 $(RM) *$(O) 57 $(RM) libpng$(A) 58 $(RM) pngtest$(E) 59 $(RM) pngout.png 60 61 png$(O): png.h pngconf.h 62 pngerror$(O): png.h pngconf.h 63 pngget$(O): png.h pngconf.h 64 pngmem$(O): png.h pngconf.h 65 pngpread$(O): png.h pngconf.h 66 pngread$(O): png.h pngconf.h 67 pngrio$(O): png.h pngconf.h 68 pngrtran$(O): png.h pngconf.h 69 pngrutil$(O): png.h pngconf.h 70 pngset$(O): png.h pngconf.h 71 pngtrans$(O): png.h pngconf.h 72 pngwio$(O): png.h pngconf.h 73 pngwrite$(O): png.h pngconf.h 74 pngwtran$(O): png.h pngconf.h 75 pngwutil$(O): png.h pngconf.h 76 77 pngtest$(O): png.h pngconf.h 78