]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/png/scripts/makefile.sun
fixed wxListBox inheritance
[wxWidgets.git] / src / png / scripts / makefile.sun
... / ...
CommitLineData
1# makefile for libpng
2# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
3# For conditions of distribution and use, see copyright notice in png.h
4
5# Where the zlib library and include files are located
6#ZLIBLIB=/usr/local/lib
7#ZLIBINC=/usr/local/include
8ZLIBLIB=../zlib
9ZLIBINC=../zlib
10
11
12WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow -Wconversion \
13 -Wmissing-declarations -Wtraditional -Wcast-align \
14 -Wstrict-prototypes -Wmissing-prototypes
15CC=gcc
16CFLAGS=-I$(ZLIBINC) -O $(WARNMORE) -DPNG_DEBUG=4
17LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
18
19RANLIB=ranlib
20#RANLIB=echo
21
22# where make install puts libpng.a and png.h
23prefix=/usr/local
24
25OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
26 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
27 pngwtran.o pngmem.o pngerror.o pngpread.o
28
29all: libpng.a pngtest
30
31libpng.a: $(OBJS)
32 ar rc $@ $(OBJS)
33 $(RANLIB) $@
34
35pngtest: pngtest.o libpng.a
36 $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
37
38test: pngtest
39 ./pngtest
40
41install: libpng.a
42 -@mkdir $(prefix)/include
43 -@mkdir $(prefix)/lib
44 cp png.h $(prefix)/include
45 cp pngconf.h $(prefix)/include
46 chmod 644 $(prefix)/include/png.h
47 chmod 644 $(prefix)/include/pngconf.h
48 cp libpng.a $(prefix)/lib
49 chmod 644 $(prefix)/lib/libpng.a
50
51clean:
52 rm -f *.o libpng.a pngtest pngout.png
53
54# DO NOT DELETE THIS LINE -- make depend depends on it.
55
56png.o: png.h pngconf.h
57pngerror.o: png.h pngconf.h
58pngrio.o: png.h pngconf.h
59pngwio.o: png.h pngconf.h
60pngmem.o: png.h pngconf.h
61pngset.o: png.h pngconf.h
62pngget.o: png.h pngconf.h
63pngread.o: png.h pngconf.h
64pngrtran.o: png.h pngconf.h
65pngrutil.o: png.h pngconf.h
66pngtest.o: png.h pngconf.h
67pngtrans.o: png.h pngconf.h
68pngwrite.o: png.h pngconf.h
69pngwtran.o: png.h pngconf.h
70pngwutil.o: png.h pngconf.h
71pngpread.o: png.h pngconf.h
72