1 # makefile for libpng, HPUX (10.20 and 11.00) using the ANSI/C product.
2 # Copyright (C) 2020-2022 Cosmin Truta
3 # Copyright (C) 1999-2002, 2006, 2010-2014 Glenn Randers-Pehrson
4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42
5 # Contributed by Jim Rice and updated by Chris Schleicher, Hewlett Packard
7 # This code is released under the libpng license.
8 # For conditions of distribution and use, see the disclaimer
11 # Where the zlib library and include files are located
13 ZLIBINC=/opt/zlib/include
15 # Note that if you plan to build a libpng shared library, zlib must also
16 # be a shared library, which zlib's configure does not do. After running
17 # zlib's configure, edit the appropriate lines of makefile to read:
18 # CPPFLAGS=-DHAVE_UNISTD -DUSE_MAP
27 # Shared library names:
29 LIBSOMAJ=$(LIBNAME).sl.$(PNGMAJ)
40 CFLAGS=-O -Ae +DA1.1 +DS2.0
41 # Caution: be sure you have built zlib with the same CFLAGS.
42 CCFLAGS=-O -Ae +DA1.1 +DS2.0
43 LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
45 # Pre-built configuration
46 # See scripts/pnglibconf.mak for more options
47 PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt
49 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \
50 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \
51 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o
53 OBJSDLL = $(OBJS:.o=.pic.o)
55 .SUFFIXES: .c .o .pic.o
58 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
61 $(CC) -c $(CPPFLAGS) $(CFLAGS) +z -o $@ $*.c
63 all: libpng.a $(LIBSO) pngtest
65 pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
66 $(CP) $(PNGLIBCONF_H_PREBUILT) $@
73 $(LN_SF) $(LIBSOMAJ) $(LIBSO)
75 $(LIBSOMAJ): $(OBJSDLL)
77 +h $(LIBSOMAJ) -o $(LIBSOMAJ) $(OBJSDLL)
79 pngtest: pngtest.o libpng.a
80 $(CC) -o pngtest $(CCFLAGS) pngtest.o $(LDFLAGS)
86 @echo "The $@ target is no longer supported by this makefile."
90 @echo "The $@ target is no longer supported by this makefile."
94 @echo "The $@ target is no longer supported by this makefile."
98 $(RM_F) *.o libpng.a pngtest pngout.png
99 $(RM_F) $(LIBSO) $(LIBSOMAJ)* pnglibconf.h
101 # DO NOT DELETE THIS LINE -- make depend depends on it.
103 png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
104 pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
105 pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
106 pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
107 pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
108 pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
109 pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
110 pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
111 pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
112 pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
113 pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
114 pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
115 pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
116 pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
117 pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
119 pngtest.o: png.h pngconf.h pnglibconf.h