1 # makefile for libpng using gcc (generic, static library)
2 # Copyright (C) 2008 Glenn Randers-Pehrson
3 # Copyright (C) 2000 Cosmin Truta
4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
6 # This code is released under the libpng license.
7 # For conditions of distribution and use, see the disclaimer
10 # Location of the zlib library and include files
14 # Compiler, linker, lib and other tools
21 CDEBUG = -g -DPNG_DEBUG=5
25 #CFLAGS = -W -Wall $(CDEBUG)
26 CFLAGS = -W -Wall $(CRELEASE)
28 LDFLAGS = $(LDRELEASE)
37 OBJS = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O) \
38 pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) pngset$(O) \
39 pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O)
45 $(CC) -c $(CFLAGS) -I$(ZLIBINC) $<
47 static: libpng$(A) pngtest$(EXE)
50 @echo This is a generic makefile that cannot create shared libraries.
51 @echo Please use a configuration that is specific to your platform.
61 pngtest$(EXE): pngtest$(O) libpng$(A)
62 $(LD) $(LDFLAGS) -L$(ZLIBLIB) -o $@ pngtest$(O) libpng$(A) $(LIBS)
65 $(RM_F) *$(O) libpng$(A) pngtest$(EXE) pngout.png
67 png$(O): png.h pngconf.h
68 pngerror$(O): png.h pngconf.h
69 pngget$(O): png.h pngconf.h
70 pngmem$(O): png.h pngconf.h
71 pngpread$(O): png.h pngconf.h
72 pngread$(O): png.h pngconf.h
73 pngrio$(O): png.h pngconf.h
74 pngrtran$(O): png.h pngconf.h
75 pngrutil$(O): png.h pngconf.h
76 pngset$(O): png.h pngconf.h
77 pngtrans$(O): png.h pngconf.h
78 pngwio$(O): png.h pngconf.h
79 pngwrite$(O): png.h pngconf.h
80 pngwtran$(O): png.h pngconf.h
81 pngwutil$(O): png.h pngconf.h
83 pngtest$(O): png.h pngconf.h