]> git.saurik.com Git - wxWidgets.git/blob - src/png/scripts/makefile.sunos
No changes, just move mouse capturing bookkeeping data out of wxWindow.
[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 #
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 # Where the zlib library and include files are located
25 #ZLIBLIB=/usr/local/lib
26 #ZLIBINC=/usr/local/include
27 ZLIBLIB=../zlib
28 ZLIBINC=../zlib
29
30
31 WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow -Wconversion \
32 -Wmissing-declarations -Wtraditional -Wcast-align \
33 -Wstrict-prototypes -Wmissing-prototypes
34
35 CC=gcc
36 AR_RC=ar rc
37 MKDIR_P=mkdir -p
38 LN_SF=ln -f -s
39 RANLIB=ranlib
40 RM_F=/bin/rm -f
41
42 CFLAGS=-I$(ZLIBINC) -O # $(WARNMORE) -DPNG_DEBUG=5
43 LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
44
45 OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
46 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
47 pngwtran.o pngmem.o pngerror.o pngpread.o
48
49 all: libpng.a pngtest
50
51 # see scripts/pnglibconf.mak for more options
52 pnglibconf.h: scripts/pnglibconf.h.prebuilt
53 cp scripts/pnglibconf.h.prebuilt $@
54
55 libpng.a: $(OBJS)
56 $(AR_RC) $@ $(OBJS)
57 $(RANLIB) $@
58
59 pngtest: pngtest.o libpng.a
60 $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
61
62 test: pngtest
63 ./pngtest
64
65 install: libpng.a
66 -@$(MKDIR_P) $(DESTDIR)$(INCPATH)
67 -@$(MKDIR_P) $(DESTDIR)$(INCPATH)/libpng
68 -@$(MKDIR_P) $(DESTDIR)$(LIBPATH)
69 -@$(RM_F) $(DESTDIR)$(INCPATH)/png.h
70 -@$(RM_F) $(DESTDIR)$(INCPATH)/pngconf.h
71 -@$(RM_F) $(DESTDIR)$(INCPATH)/pnglibconf.h
72 cp png.h $(DESTDIR)$(INCPATH)/libpng
73 cp pngconf.h $(DESTDIR)$(INCPATH)/libpng
74 cp pnglibconf.h $(DESTDIR)$(INCPATH)/libpng
75 chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h
76 chmod 644 $(DESTDIR)$(INCPATH)/libpng/pngconf.h
77 chmod 644 $(DESTDIR)$(INCPATH)/libpng/pnglibconf.h
78 (cd $(DESTDIR)$(INCPATH); $(LN_SF) libpng/* .)
79 cp libpng.a $(DESTDIR)$(LIBPATH)
80 chmod 644 $(DESTDIR)$(LIBPATH)/libpng.a
81
82 clean:
83 $(RM_F) *.o libpng.a pngtest pngout.png pnglibconf.h
84
85 DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
86 writelock:
87 chmod a-w *.[ch35] $(DOCS) scripts/*
88
89 # DO NOT DELETE THIS LINE -- make depend depends on it.
90
91 png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
92 pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
93 pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
94 pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
95 pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
96 pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
97 pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
98 pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
99 pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
100 pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
101 pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
102 pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
103 pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
104 pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
105 pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
106
107 pngtest.o: png.h pngconf.h pnglibconf.h