1
# makefile for libpng using gcc (generic, static library)
2
# Copyright (C) 2000 Cosmin Truta
3
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
4
# For conditions of distribution and use, see copyright notice in png.h
6
# Location of the zlib library and include files
10
# Compiler, linker, lib and other tools
17
CDEBUG = -g -DPNG_DEBUG=5
21
CFLAGS = -I$(ZLIBINC) -Wall $(CRELEASE)
22
LDFLAGS = -L. -L$(ZLIBLIB) -lpng -lz -lm $(LDRELEASE)
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)
35
all: libpng$(A) pngtest$(E)
44
pngtest$(E): pngtest$(O) libpng$(A)
45
$(LD) -o $@ pngtest$(O) $(LDFLAGS)
48
$(RM) *$(O) libpng$(A) pngtest$(E) pngout.png
50
png$(O): png.h pngconf.h
51
pngerror$(O): png.h pngconf.h
52
pngget$(O): png.h pngconf.h
53
pngmem$(O): png.h pngconf.h
54
pngpread$(O): png.h pngconf.h
55
pngread$(O): png.h pngconf.h
56
pngrio$(O): png.h pngconf.h
57
pngrtran$(O): png.h pngconf.h
58
pngrutil$(O): png.h pngconf.h
59
pngset$(O): png.h pngconf.h
60
pngtest$(O): png.h pngconf.h
61
pngtrans$(O): png.h pngconf.h
62
pngwio$(O): png.h pngconf.h
63
pngwrite$(O): png.h pngconf.h
64
pngwtran$(O): png.h pngconf.h
65
pngwutil$(O): png.h pngconf.h