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