blob: 780bfe5dba2d65941ef1c6c93f74c60b2bf81148 [file] [log] [blame]
Glenn Randers-Pehrson87544ac1999-01-13 22:06:39 -06001# makefile for libpng, HPUX (10.20 and 11.00)
2# Copyright (C) 1995 Guy Eric Schalnat, Group 42
3# Copyright (C) 1999 Glenn Randers-Pehrson
4# contributed by Jim Rice, Hewlett Packard
5# For conditions of distribution and use, see copyright notice in png.h
6
7# Where the zlib library and include files are located
8ZLIBLIB=/opt/zlib/lib
9ZLIBINC=/opt/zlib/include
10
11CC=cc
12CFLAGS=-I$(ZLIBINC) -O -Ae +DA1.1 +DS2.0
13CCFLAGS=-I$(ZLIBINC) -O -Ae +DA1.1 +DS2.0
14LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
15
16RANLIB=ranlib
17
18# where make install puts libpng.a and png.h
Glenn Randers-Pehrson4393a9a1999-09-17 12:27:26 -050019prefix=/opt/libpng
Glenn Randers-Pehrson87544ac1999-01-13 22:06:39 -060020
21OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
Glenn Randers-Pehrson4393a9a1999-09-17 12:27:26 -050022 pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
23 pngwtran.o pngmem.o pngerror.o pngpread.o
Glenn Randers-Pehrson87544ac1999-01-13 22:06:39 -060024
25all: libpng.a pngtest
26
27libpng.a: $(OBJS)
Glenn Randers-Pehrson4393a9a1999-09-17 12:27:26 -050028 ar rc $@ $(OBJS)
29 $(RANLIB) $@
Glenn Randers-Pehrson87544ac1999-01-13 22:06:39 -060030
31pngtest: pngtest.o libpng.a
Glenn Randers-Pehrson4393a9a1999-09-17 12:27:26 -050032 $(CC) -o pngtest $(CCFLAGS) pngtest.o $(LDFLAGS)
Glenn Randers-Pehrson87544ac1999-01-13 22:06:39 -060033
34test: pngtest
Glenn Randers-Pehrson4393a9a1999-09-17 12:27:26 -050035 ./pngtest
Glenn Randers-Pehrson87544ac1999-01-13 22:06:39 -060036
37install: libpng.a
Glenn Randers-Pehrson4393a9a1999-09-17 12:27:26 -050038 -@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
Glenn Randers-Pehrson87544ac1999-01-13 22:06:39 -060046
47clean:
Glenn Randers-Pehrson4393a9a1999-09-17 12:27:26 -050048 rm -f *.o libpng.a pngtest pngout.png
Glenn Randers-Pehrson87544ac1999-01-13 22:06:39 -060049
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