]> git.saurik.com Git - wxWidgets.git/blob - src/png/scripts/makefile.sunos
Restore the use of the correct brush for toolbar background erasing.
[wxWidgets.git] / src / png / scripts / makefile.sunos
1 # makefile for libpng
2 # Copyright (C) 2002, 2006 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
32 CC=gcc
33 AR_RC=ar rc
34 MKDIR_P=mkdir -p
35 LN_SF=ln -f -s
36 RANLIB=ranlib
37 RM_F=/bin/rm -f
38
39 CFLAGS=-I$(ZLIBINC) -O # $(WARNMORE) -DPNG_DEBUG=5
40 LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
41
42 OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
43 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
44 pngwtran.o pngmem.o pngerror.o pngpread.o
45
46 all: libpng.a pngtest
47
48 libpng.a: $(OBJS)
49 $(AR_RC) $@ $(OBJS)
50 $(RANLIB) $@
51
52 pngtest: pngtest.o libpng.a
53 $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
54
55 test: pngtest
56 ./pngtest
57
58 install: libpng.a
59 -@$(MKDIR_P) $(DESTDIR)$(INCPATH)
60 -@$(MKDIR_P) $(DESTDIR)$(INCPATH)/libpng
61 -@$(MKDIR_P) $(DESTDIR)$(LIBPATH)
62 -@$(RM_F) $(DESTDIR)$(INCPATH)/png.h
63 -@$(RM_F) $(DESTDIR)$(INCPATH)/pngconf.h
64 cp png.h $(DESTDIR)$(INCPATH)/libpng
65 cp pngconf.h $(DESTDIR)$(INCPATH)/libpng
66 chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h
67 chmod 644 $(DESTDIR)$(INCPATH)/libpng/pngconf.h
68 (cd $(DESTDIR)$(INCPATH); $(LN_SF) libpng/* .)
69 cp libpng.a $(DESTDIR)$(LIBPATH)
70 chmod 644 $(DESTDIR)$(LIBPATH)/libpng.a
71
72 clean:
73 $(RM_F) *.o libpng.a pngtest pngout.png
74
75 DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
76 writelock:
77 chmod a-w *.[ch35] $(DOCS) scripts/*
78
79 # DO NOT DELETE THIS LINE -- make depend depends on it.
80
81 png.o: png.h pngconf.h
82 pngerror.o: png.h pngconf.h
83 pngrio.o: png.h pngconf.h
84 pngwio.o: png.h pngconf.h
85 pngmem.o: png.h pngconf.h
86 pngset.o: png.h pngconf.h
87 pngget.o: png.h pngconf.h
88 pngread.o: png.h pngconf.h
89 pngrtran.o: png.h pngconf.h
90 pngrutil.o: png.h pngconf.h
91 pngtest.o: png.h pngconf.h
92 pngtrans.o: png.h pngconf.h
93 pngwrite.o: png.h pngconf.h
94 pngwtran.o: png.h pngconf.h
95 pngwutil.o: png.h pngconf.h
96 pngpread.o: png.h pngconf.h
97