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