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