]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/png/scripts/makefile.sgi
warning fix
[wxWidgets.git] / src / png / scripts / makefile.sgi
... / ...
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
11CC=cc
12
13CFLAGS=-I$(ZLIBINC) -O -fullwarn # -g -DPNG_DEBUG=1
14LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
15
16RANLIB=echo
17#RANLIB=ranlib
18
19# where make install puts libpng.a and png.h
20prefix=/usr/local
21
22OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
23 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
24 pngwtran.o pngmem.o pngerror.o pngpread.o
25
26all: libpng.a pngtest
27
28libpng.a: $(OBJS)
29 ar rc $@ $(OBJS)
30 $(RANLIB) $@
31
32pngtest: pngtest.o libpng.a
33 $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
34
35test: pngtest
36 ./pngtest
37
38install: libpng.a
39 -@mkdir $(prefix)/include
40 -@mkdir $(prefix)/lib
41 cp png.h $(prefix)/include
42 cp pngconf.h $(prefix)/include
43 chmod 644 $(prefix)/include/png.h
44 chmod 644 $(prefix)/include/pngconf.h
45 cp libpng.a $(prefix)/lib
46 chmod 644 $(prefix)/lib/libpng.a
47
48clean:
49 rm -f *.o libpng.a pngtest pngout.png
50
51# DO NOT DELETE THIS LINE -- make depend depends on it.
52
53png.o: png.h pngconf.h
54pngerror.o: png.h pngconf.h
55pngrio.o: png.h pngconf.h
56pngwio.o: png.h pngconf.h
57pngmem.o: png.h pngconf.h
58pngset.o: png.h pngconf.h
59pngget.o: png.h pngconf.h
60pngread.o: png.h pngconf.h
61pngrtran.o: png.h pngconf.h
62pngrutil.o: png.h pngconf.h
63pngtest.o: png.h pngconf.h
64pngtrans.o: png.h pngconf.h
65pngwrite.o: png.h pngconf.h
66pngwtran.o: png.h pngconf.h
67pngwutil.o: png.h pngconf.h
68pngpread.o: png.h pngconf.h
69