]> git.saurik.com Git - wxWidgets.git/blame - src/png/scripts/makefile.mips
Add start of selection api, support for HasSelection, SelectAll and DeleteSelection...
[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
38libpng.a: $(OBJS)
39 ar rc $@ $(OBJS)
40 $(RANLIB) $@
41
42pngtest: pngtest.o libpng.a
43 $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
44
45test: pngtest
46 ./pngtest
47
48install: libpng.a
49 -@mkdir $(DESTDIR)$(INCPATH)
50 -@mkdir $(DESTDIR)$(INCPATH)/libpng
51 -@mkdir $(DESTDIR)$(LIBPATH)
52 -@rm -f $(DESTDIR)$(INCPATH)/png.h
53 -@rm -f $(DESTDIR)$(INCPATH)/pngconf.h
54 cp png.h $(DESTDIR)$(INCPATH)/libpng
55 cp pngconf.h $(DESTDIR)$(INCPATH)/libpng
56 chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h
57 chmod 644 $(DESTDIR)$(INCPATH)/libpng/pngconf.h
58 (cd $(DESTDIR)$(INCPATH); ln -f -s libpng/* .)
59 cp libpng.a $(DESTDIR)$(LIBPATH)
60 chmod 644 $(DESTDIR)$(LIBPATH)/libpng.a
61
62clean:
63 rm -f *.o libpng.a pngtest pngout.png
64
65DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
66writelock:
67 chmod a-w *.[ch35] $(DOCS) scripts/*
68
69# DO NOT DELETE THIS LINE -- make depend depends on it.
70
b61cc19c
PC
71png.o: png.h pngconf.h pngpriv.h
72pngerror.o: png.h pngconf.h pngpriv.h
73pngrio.o: png.h pngconf.h pngpriv.h
74pngwio.o: png.h pngconf.h pngpriv.h
75pngmem.o: png.h pngconf.h pngpriv.h
76pngset.o: png.h pngconf.h pngpriv.h
77pngget.o: png.h pngconf.h pngpriv.h
78pngread.o: png.h pngconf.h pngpriv.h
79pngpread.o: png.h pngconf.h pngpriv.h
80pngrtran.o: png.h pngconf.h pngpriv.h
81pngrutil.o: png.h pngconf.h pngpriv.h
82pngtrans.o: png.h pngconf.h pngpriv.h
83pngwrite.o: png.h pngconf.h pngpriv.h
84pngwtran.o: png.h pngconf.h pngpriv.h
85pngwutil.o: png.h pngconf.h pngpriv.h
86
0272a10d 87pngtest.o: png.h pngconf.h