]>
Commit | Line | Data |
---|---|---|
0272a10d | 1 | # DJGPP (DOS gcc) makefile for libpng |
b61cc19c | 2 | # Copyright (C) 2002, 2006, 2009-2010 Glenn Randers-Pehrson |
0272a10d | 3 | # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. |
b61cc19c PC |
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 | |
0272a10d VZ |
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 | |
b61cc19c | 16 | CFLAGS=-I../zlib -O -DPNG_NO_SNPRINTF |
0272a10d VZ |
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 | ||
b61cc19c PC |
42 | png.o: png.h pngconf.h pngpriv.h |
43 | pngerror.o: png.h pngconf.h pngpriv.h | |
44 | pngrio.o: png.h pngconf.h pngpriv.h | |
45 | pngwio.o: png.h pngconf.h pngpriv.h | |
46 | pngmem.o: png.h pngconf.h pngpriv.h | |
47 | pngset.o: png.h pngconf.h pngpriv.h | |
48 | pngget.o: png.h pngconf.h pngpriv.h | |
49 | pngread.o: png.h pngconf.h pngpriv.h | |
50 | pngpread.o: png.h pngconf.h pngpriv.h | |
51 | pngrtran.o: png.h pngconf.h pngpriv.h | |
52 | pngrutil.o: png.h pngconf.h pngpriv.h | |
53 | pngtrans.o: png.h pngconf.h pngpriv.h | |
54 | pngwrite.o: png.h pngconf.h pngpriv.h | |
55 | pngwtran.o: png.h pngconf.h pngpriv.h | |
56 | pngwutil.o: png.h pngconf.h pngpriv.h | |
0272a10d | 57 | |
b61cc19c | 58 | pngtest.o: png.h pngconf.h |