~ubuntu-branches/ubuntu/raring/wxwidgets2.8/raring

« back to all changes in this revision

Viewing changes to src/png/scripts/makefile.sunos

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber
  • Date: 2012-01-07 13:59:25 UTC
  • mfrom: (1.1.9) (5.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20120107135925-2601miy9ullcon9j
Tags: 2.8.12.1-6ubuntu1
* Resync from Debian, changes that were kept:
  - debian/rules: re-enable mediactrl. This allows libwx_gtk2u_media-2.8 to be
    built, as this is required by some applications (LP: #632984)
  - debian/control: Build-dep on libxt-dev for mediactrl.
  - Patches
    + fix-bashism-in-example
* Add conflict on python-wxgtk2.8 (<< 2.8.12.1-6ubuntu1~) to python-wxversion
  to guarantee upgrade ordering when moving from pycentral to dh_python2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# makefile for libpng
2
 
# Copyright (C) 2002 Glenn Randers-Pehrson
3
 
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
4
 
# For conditions of distribution and use, see copyright notice in png.h
5
 
 
6
 
# where make install puts libpng.a and png.h
7
 
prefix=/usr/local
8
 
INCPATH=$(prefix)/include
9
 
LIBPATH=$(prefix)/lib
10
 
 
11
 
# override DESTDIR= on the make install command line to easily support
12
 
# installing into a temporary location.  Example:
13
 
#
14
 
#    make install DESTDIR=/tmp/build/libpng
15
 
#
16
 
# If you're going to install into a temporary location
17
 
# via DESTDIR, $(DESTDIR)$(prefix) must already exist before
18
 
# you execute make install.
19
 
DESTDIR=
20
 
 
21
 
# Where the zlib library and include files are located
22
 
#ZLIBLIB=/usr/local/lib
23
 
#ZLIBINC=/usr/local/include
24
 
ZLIBLIB=../zlib
25
 
ZLIBINC=../zlib
26
 
 
27
 
 
28
 
WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow -Wconversion \
29
 
        -Wmissing-declarations -Wtraditional -Wcast-align \
30
 
        -Wstrict-prototypes -Wmissing-prototypes
31
 
CC=gcc
32
 
CFLAGS=-I$(ZLIBINC) -O # $(WARNMORE) -DPNG_DEBUG=5
33
 
LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
34
 
 
35
 
RANLIB=ranlib
36
 
#RANLIB=echo
37
 
 
38
 
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
39
 
        pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
40
 
        pngwtran.o pngmem.o pngerror.o pngpread.o
41
 
 
42
 
all: libpng.a pngtest
43
 
 
44
 
libpng.a: $(OBJS)
45
 
        ar rc $@  $(OBJS)
46
 
        $(RANLIB) $@
47
 
 
48
 
pngtest: pngtest.o libpng.a
49
 
        $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
50
 
 
51
 
test: pngtest
52
 
        ./pngtest
53
 
 
54
 
install: libpng.a
55
 
        -@mkdir $(DESTDIR)$(INCPATH)
56
 
        -@mkdir $(DESTDIR)$(INCPATH)/libpng
57
 
        -@mkdir $(DESTDIR)$(LIBPATH)
58
 
        -@rm -f $(DESTDIR)$(INCPATH)/png.h
59
 
        -@rm -f $(DESTDIR)$(INCPATH)/pngconf.h
60
 
        cp png.h $(DESTDIR)$(INCPATH)/libpng
61
 
        cp pngconf.h $(DESTDIR)$(INCPATH)/libpng
62
 
        chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h
63
 
        chmod 644 $(DESTDIR)$(INCPATH)/libpng/pngconf.h
64
 
        (cd $(DESTDIR)$(INCPATH); ln -f -s libpng/* .)
65
 
        cp libpng.a $(DESTDIR)$(LIBPATH)
66
 
        chmod 644 $(DESTDIR)$(LIBPATH)/libpng.a
67
 
 
68
 
clean:
69
 
        rm -f *.o libpng.a pngtest pngout.png
70
 
 
71
 
DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
72
 
writelock:
73
 
        chmod a-w *.[ch35] $(DOCS) scripts/*
74
 
 
75
 
# DO NOT DELETE THIS LINE -- make depend depends on it.
76
 
 
77
 
png.o: png.h pngconf.h
78
 
pngerror.o: png.h pngconf.h
79
 
pngrio.o: png.h pngconf.h
80
 
pngwio.o: png.h pngconf.h
81
 
pngmem.o: png.h pngconf.h
82
 
pngset.o: png.h pngconf.h
83
 
pngget.o: png.h pngconf.h
84
 
pngread.o: png.h pngconf.h
85
 
pngrtran.o: png.h pngconf.h
86
 
pngrutil.o: png.h pngconf.h
87
 
pngtest.o: png.h pngconf.h
88
 
pngtrans.o: png.h pngconf.h
89
 
pngwrite.o: png.h pngconf.h
90
 
pngwtran.o: png.h pngconf.h
91
 
pngwutil.o: png.h pngconf.h
92
 
pngpread.o: png.h pngconf.h
93