OSDN Git Service

shipout routines.
[putex/putex.git] / src / texsourc / libpng / scripts / makefile.mips
1 # makefile for libpng
2 # Copyright (C) 1998-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 puts libpng.a and png.h
10 prefix=/usr/local
11 INCPATH=$(prefix)/include
12 LIBPATH=$(prefix)/lib
13
14 # override DESTDIR= on the make install command line to easily support
15 # installing into a temporary location.  Example:
16 #
17 #    make install DESTDIR=/tmp/build/libpng
18 #
19 # If you're going to install into a temporary location
20 # via DESTDIR, $(DESTDIR)$(prefix) must already exist before
21 # you execute make install.
22 DESTDIR=
23
24 CC=cc
25 CPPFLAGS=-I../zlib -DSYSV -Dmips
26 CFLAGS=-O -systype sysv -w
27 #CFLAGS=-O
28 LDFLAGS=-L. -L../zlib/ -lpng -lz -lm
29
30 #RANLIB=ranlib
31 RANLIB=echo
32
33 OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
34         pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
35         pngwtran.o pngmem.o pngerror.o pngpread.o
36
37 .c.o:
38         $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
39
40 all: libpng.a pngtest
41
42 # see scripts/pnglibconf.mak for more options
43 pnglibconf.h: scripts/pnglibconf.h.prebuilt
44         cp scripts/pnglibconf.h.prebuilt $@
45
46 libpng.a: $(OBJS)
47         ar rc $@  $(OBJS)
48         $(RANLIB) $@
49
50 pngtest: pngtest.o libpng.a
51         $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
52
53 test: pngtest
54         ./pngtest
55
56 install: libpng.a
57         -@mkdir $(DESTDIR)$(INCPATH)
58         -@mkdir $(DESTDIR)$(INCPATH)/libpng
59         -@mkdir $(DESTDIR)$(LIBPATH)
60         -@rm -f $(DESTDIR)$(INCPATH)/png.h
61         -@rm -f $(DESTDIR)$(INCPATH)/pngconf.h
62         -@rm -f $(DESTDIR)$(INCPATH)/pnglibconf.h
63         cp png.h $(DESTDIR)$(INCPATH)/libpng
64         cp pngconf.h $(DESTDIR)$(INCPATH)/libpng
65         cp pnglibconf.h $(DESTDIR)$(INCPATH)/libpng
66         chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h
67         chmod 644 $(DESTDIR)$(INCPATH)/libpng/pngconf.h
68         chmod 644 $(DESTDIR)$(INCPATH)/libpng/pnglibconf.h
69         (cd $(DESTDIR)$(INCPATH); ln -f -s libpng/* .)
70         cp libpng.a $(DESTDIR)$(LIBPATH)
71         chmod 644 $(DESTDIR)$(LIBPATH)/libpng.a
72
73 clean:
74         rm -f *.o libpng.a pngtest pngout.png pnglibconf.h
75
76 DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
77 writelock:
78         chmod a-w *.[ch35] $(DOCS) scripts/*
79
80 # DO NOT DELETE THIS LINE -- make depend depends on it.
81
82 png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
83 pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
84 pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
85 pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
86 pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
87 pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
88 pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
89 pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
90 pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
91 pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
92 pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
93 pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
94 pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
95 pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
96 pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
97
98 pngtest.o: png.h pngconf.h pnglibconf.h