The Android Open Source Project | 893912b | 2009-03-03 19:30:05 -0800 | [diff] [blame] | 1 | # DJGPP (DOS gcc) makefile for libpng |
Patrick Scott | a0bb96c | 2009-07-22 11:50:02 -0400 | [diff] [blame] | 2 | # Copyright (C) 2002, 2006, 2009 Glenn Randers-Pehrson |
The Android Open Source Project | 893912b | 2009-03-03 19:30:05 -0800 | [diff] [blame] | 3 | # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. |
Patrick Scott | 5f6bd84 | 2010-06-28 16:55:16 -0400 | [diff] [blame] | 4 | # |
Patrick Scott | a0bb96c | 2009-07-22 11:50:02 -0400 | [diff] [blame] | 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 |
The Android Open Source Project | 893912b | 2009-03-03 19:30:05 -0800 | [diff] [blame] | 8 | |
| 9 | # where make install will put libpng.a and png.h |
| 10 | #prefix=/usr/local |
| 11 | prefix=. |
| 12 | INCPATH=$(prefix)/include |
| 13 | LIBPATH=$(prefix)/lib |
| 14 | |
| 15 | CC=gcc |
| 16 | CFLAGS=-I../zlib -O |
| 17 | LDFLAGS=-L. -L../zlib/ -lpng -lz -lm |
| 18 | |
| 19 | RANLIB=ranlib |
| 20 | |
| 21 | OBJS = 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 | |
| 25 | all: libpng.a pngtest |
| 26 | |
| 27 | libpng.a: $(OBJS) |
| 28 | ar rc $@ $(OBJS) |
| 29 | $(RANLIB) $@ |
| 30 | |
| 31 | pngtest: pngtest.o libpng.a |
| 32 | $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) |
| 33 | coff2exe pngtest |
| 34 | |
| 35 | test: pngtest |
| 36 | ./pngtest |
| 37 | clean: |
| 38 | rm -f *.o libpng.a pngtest pngout.png |
| 39 | |
| 40 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
| 41 | |
| 42 | png.o: png.h pngconf.h |
| 43 | pngerror.o: png.h pngconf.h |
| 44 | pngrio.o: png.h pngconf.h |
| 45 | pngwio.o: png.h pngconf.h |
| 46 | pngmem.o: png.h pngconf.h |
| 47 | pngset.o: png.h pngconf.h |
| 48 | pngget.o: png.h pngconf.h |
| 49 | pngread.o: png.h pngconf.h |
| 50 | pngpread.o: png.h pngconf.h |
| 51 | pngrtran.o: png.h pngconf.h |
| 52 | pngrutil.o: png.h pngconf.h |
The Android Open Source Project | 893912b | 2009-03-03 19:30:05 -0800 | [diff] [blame] | 53 | pngtrans.o: png.h pngconf.h |
| 54 | pngwrite.o: png.h pngconf.h |
| 55 | pngwtran.o: png.h pngconf.h |
| 56 | pngwutil.o: png.h pngconf.h |
| 57 | |
Patrick Scott | a0bb96c | 2009-07-22 11:50:02 -0400 | [diff] [blame] | 58 | pngtest.o: png.h pngconf.h |