1# DJGPP (DOS gcc) makefile for libpng 2# Copyright (C) 2002, 2006, 2009 Glenn Randers-Pehrson 3# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. 4# 5# This code is released under the libpng license. 6# For conditions of distribution and use, see the disclaimer 7# and license in png.h 8 9# where make install will put libpng.a and png.h 10#prefix=/usr/local 11prefix=. 12INCPATH=$(prefix)/include 13LIBPATH=$(prefix)/lib 14 15CC=gcc 16CFLAGS=-I../zlib -O 17LDFLAGS=-L. -L../zlib/ -lpng -lz -lm 18 19RANLIB=ranlib 20 21OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ 22 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o pngwtran.o \ 23 pngmem.o pngerror.o pngpread.o 24 25all: libpng.a pngtest 26 27libpng.a: $(OBJS) 28 ar rc $@ $(OBJS) 29 $(RANLIB) $@ 30 31pngtest: pngtest.o libpng.a 32 $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) 33 coff2exe pngtest 34 35test: pngtest 36 ./pngtest 37clean: 38 rm -f *.o libpng.a pngtest pngout.png 39 40# DO NOT DELETE THIS LINE -- make depend depends on it. 41 42png.o: png.h pngconf.h 43pngerror.o: png.h pngconf.h 44pngrio.o: png.h pngconf.h 45pngwio.o: png.h pngconf.h 46pngmem.o: png.h pngconf.h 47pngset.o: png.h pngconf.h 48pngget.o: png.h pngconf.h 49pngread.o: png.h pngconf.h 50pngpread.o: png.h pngconf.h 51pngrtran.o: png.h pngconf.h 52pngrutil.o: png.h pngconf.h 53pngtrans.o: png.h pngconf.h 54pngwrite.o: png.h pngconf.h 55pngwtran.o: png.h pngconf.h 56pngwutil.o: png.h pngconf.h 57 58pngtest.o: png.h pngconf.h 59