OSDN Git Service

node_list_display().
[putex/putex.git] / src / texsourc / libpng / scripts / makefile.dj2
1 # DJGPP (DOS gcc) makefile for libpng
2 # Copyright (C) 2002, 2006, 2009-2014 Glenn Randers-Pehrson
3 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
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
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 CPPFLAGS=-I../zlib -DPNG_NO_SNPRINTF
17 CFLAGS=-O
18 LDFLAGS=-L. -L../zlib/ -lpng -lz -lm
19
20 RANLIB=ranlib
21
22 OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
23         pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o pngwtran.o \
24         pngmem.o pngerror.o pngpread.o
25
26 .c.o:
27         $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
28
29 all: libpng.a pngtest
30
31 # see scripts/pnglibconf.mak for more options
32 pnglibconf.h: scripts/pnglibconf.h.prebuilt
33         cp scripts/pnglibconf.h.prebuilt $@
34
35 libpng.a: $(OBJS)
36         ar rc $@  $(OBJS)
37         $(RANLIB) $@
38
39 pngtest: pngtest.o libpng.a
40         $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
41         coff2exe pngtest
42
43 test: pngtest
44         ./pngtest
45 clean:
46         rm -f *.o libpng.a pngtest pngout.png pnglibconf.h
47
48 # DO NOT DELETE THIS LINE -- make depend depends on it.
49
50 png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
51 pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
52 pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
53 pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
54 pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
55 pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
56 pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
57 pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
58 pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
59 pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
60 pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
61 pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
62 pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
63 pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
64 pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
65
66 pngtest.o: png.h pngconf.h pnglibconf.h