blob: b8457ee49f186da32afb352cba151c5034970066 [file] [log] [blame]
The Android Open Source Project893912b2009-03-03 19:30:05 -08001# DJGPP (DOS gcc) makefile for libpng
Patrick Scotta0bb96c2009-07-22 11:50:02 -04002# Copyright (C) 2002, 2006, 2009 Glenn Randers-Pehrson
The Android Open Source Project893912b2009-03-03 19:30:05 -08003# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
Patrick Scott5f6bd842010-06-28 16:55:16 -04004#
Patrick Scotta0bb96c2009-07-22 11:50:02 -04005# 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 Project893912b2009-03-03 19:30:05 -08008
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
The Android Open Source Project893912b2009-03-03 19:30:05 -080053pngtrans.o: png.h pngconf.h
54pngwrite.o: png.h pngconf.h
55pngwtran.o: png.h pngconf.h
56pngwutil.o: png.h pngconf.h
57
Patrick Scotta0bb96c2009-07-22 11:50:02 -040058pngtest.o: png.h pngconf.h