]> git.saurik.com Git - wxWidgets.git/blame - src/png/scripts/makefile.mips
Use mask when drawing bitmaps in generic wxDataViewCtrl.
[wxWidgets.git] / src / png / scripts / makefile.mips
CommitLineData
0272a10d
VZ
1# makefile for libpng
2# Copyright (C) Glenn Randers-Pehrson
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 puts libpng.a and png.h
10prefix=/usr/local
11INCPATH=$(prefix)/include
12LIBPATH=$(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.
22DESTDIR=
23
24CC=cc
25CFLAGS=-I../zlib -O -systype sysv -DSYSV -w -Dmips
26#CFLAGS=-O
27LDFLAGS=-L. -L../zlib/ -lpng -lz -lm
28
29#RANLIB=ranlib
30RANLIB=echo
31
32OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
33 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
34 pngwtran.o pngmem.o pngerror.o pngpread.o
35
36all: libpng.a pngtest
37
9c0d9ce3
DS
38# see scripts/pnglibconf.mak for more options
39pnglibconf.h: scripts/pnglibconf.h.prebuilt
40 cp scripts/pnglibconf.h.prebuilt $@
41
0272a10d
VZ
42libpng.a: $(OBJS)
43 ar rc $@ $(OBJS)
44 $(RANLIB) $@
45
46pngtest: pngtest.o libpng.a
47 $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
48
49test: pngtest
50 ./pngtest
51
52install: libpng.a
53 -@mkdir $(DESTDIR)$(INCPATH)
54 -@mkdir $(DESTDIR)$(INCPATH)/libpng
55 -@mkdir $(DESTDIR)$(LIBPATH)
56 -@rm -f $(DESTDIR)$(INCPATH)/png.h
57 -@rm -f $(DESTDIR)$(INCPATH)/pngconf.h
9c0d9ce3 58 -@rm -f $(DESTDIR)$(INCPATH)/pnglibconf.h
0272a10d
VZ
59 cp png.h $(DESTDIR)$(INCPATH)/libpng
60 cp pngconf.h $(DESTDIR)$(INCPATH)/libpng
9c0d9ce3 61 cp pnglibconf.h $(DESTDIR)$(INCPATH)/libpng
0272a10d
VZ
62 chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h
63 chmod 644 $(DESTDIR)$(INCPATH)/libpng/pngconf.h
9c0d9ce3 64 chmod 644 $(DESTDIR)$(INCPATH)/libpng/pnglibconf.h
0272a10d
VZ
65 (cd $(DESTDIR)$(INCPATH); ln -f -s libpng/* .)
66 cp libpng.a $(DESTDIR)$(LIBPATH)
67 chmod 644 $(DESTDIR)$(LIBPATH)/libpng.a
68
69clean:
9c0d9ce3 70 rm -f *.o libpng.a pngtest pngout.png pnglibconf.h
0272a10d
VZ
71
72DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
73writelock:
74 chmod a-w *.[ch35] $(DOCS) scripts/*
75
76# DO NOT DELETE THIS LINE -- make depend depends on it.
77
fff5f7d5
VZ
78png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
79pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
80pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
81pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
82pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
83pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
84pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
85pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
86pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
87pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
88pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
89pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
90pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
91pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
92pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
9c0d9ce3
DS
93
94pngtest.o: png.h pngconf.h pnglibconf.h