1 # Makefile for libpng (static)
2 # IBM C version 3.x for Win32 and OS/2
3 # Copyright (C) 2006, 2014 Glenn Randers-Pehrson
4 # Copyright (C) 2000 Cosmin Truta
6 # This code is released under the libpng license.
7 # For conditions of distribution and use, see the disclaimer
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
16 # Location of the zlib library and include files
20 # Compiler, linker, lib and other tools
26 CPPFLAGS = -I$(ZLIBINC)
36 OBJS = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O) \
37 pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) pngset$(O) \
38 pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O)
40 LIBS = libpng$(A) $(ZLIBLIB)/zlib$(A)
44 $(CC) -c $(CPPFLAGS) $(CFLAGS) $<
46 all: libpng$(A) pngtest$(E)
48 # see scripts/pnglibconf.mak for more options
49 pnglibconf.h: scripts/pnglibconf.h.prebuilt
50 cp scripts/pnglibconf.h.prebuilt $@
60 pngtest$(E): pngtest$(O) libpng$(A)
61 $(LD) $(LDFLAGS) pngtest$(O) $(LIBS)
70 png$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
71 pngerror$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
72 pngget$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
73 pngmem$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
74 pngpread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
75 pngread$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
76 pngrio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
77 pngrtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
78 pngrutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
79 pngset$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
80 pngtrans$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
81 pngwio$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
82 pngwrite$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
83 pngwtran$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
84 pngwutil$(O): png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
86 pngtest$(O): png.h pngconf.h pnglibconf.h