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