671242f350d172e106580348e24bab66b0d7e6a5vboxsync# makefile for libpng using gcc (generic, static library)
671242f350d172e106580348e24bab66b0d7e6a5vboxsync# Copyright (C) 2000 Cosmin Truta
671242f350d172e106580348e24bab66b0d7e6a5vboxsync# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
671242f350d172e106580348e24bab66b0d7e6a5vboxsync# For conditions of distribution and use, see copyright notice in png.h
671242f350d172e106580348e24bab66b0d7e6a5vboxsync# Location of the zlib library and include files
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncZLIBINC = ../zlib
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncZLIBLIB = ../zlib
671242f350d172e106580348e24bab66b0d7e6a5vboxsync# Compiler, linker, lib and other tools
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncRANLIB = ranlib
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncCDEBUG = -g -DPNG_DEBUG=5
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncCRELEASE = -O2
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncLDRELEASE = -s
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncCFLAGS = -I$(ZLIBINC) -Wall $(CRELEASE)
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncLDFLAGS = -L. -L$(ZLIBLIB) -lpng -lz -lm $(LDRELEASE)
671242f350d172e106580348e24bab66b0d7e6a5vboxsync# File extensions
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncOBJS = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O) \
671242f350d172e106580348e24bab66b0d7e6a5vboxsync pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) pngset$(O) \
671242f350d172e106580348e24bab66b0d7e6a5vboxsync pngtrans$(O) pngwio$(O) pngwrite$(O) pngwtran$(O) pngwutil$(O)
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncall: libpng$(A) pngtest$(E)
671242f350d172e106580348e24bab66b0d7e6a5vboxsynclibpng$(A): $(OBJS)
671242f350d172e106580348e24bab66b0d7e6a5vboxsync $(AR) $@ $(OBJS)
671242f350d172e106580348e24bab66b0d7e6a5vboxsync $(RANLIB) $@
671242f350d172e106580348e24bab66b0d7e6a5vboxsynctest: pngtest$(E)
671242f350d172e106580348e24bab66b0d7e6a5vboxsync ./pngtest$(E)
671242f350d172e106580348e24bab66b0d7e6a5vboxsyncpngtest$(E): pngtest$(O) libpng$(A)
671242f350d172e106580348e24bab66b0d7e6a5vboxsync $(LD) -o $@ pngtest$(O) $(LDFLAGS)
671242f350d172e106580348e24bab66b0d7e6a5vboxsync $(RM) *$(O) libpng$(A) pngtest$(E) pngout.png