1 # makefile for libpng on DEC Alpha Unix
2 # Copyright (C) 2020-2022 Cosmin Truta
3 # Copyright (C) 2000-2002, 2006, 2010-2014 Glenn Randers-Pehrson
4 # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
6 # This code is released under the libpng license.
7 # For conditions of distribution and use, see the disclaimer
14 # Shared library names:
16 LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ)
27 # Where the zlib library and include files are located
28 #ZLIBLIB=/usr/local/lib
29 #ZLIBINC=/usr/local/include
33 CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5
34 CFLAGS=-std -w1 -O # -g
35 LDFLAGS=-L$(ZLIBLIB) -rpath $(ZLIBLIB) libpng.a -lz -lm
37 # Pre-built configuration
38 # See scripts/pnglibconf.mak for more options
39 PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt
41 OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \
42 pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \
43 pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o
46 $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
48 all: $(LIBSO) libpng.a pngtest
50 pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
51 $(CP) $(PNGLIBCONF_H_PREBUILT) $@
58 $(LN_SF) $(LIBSOMAJ) $(LIBSO)
61 $(CC) -shared -o $@ $(OBJS) -L$(ZLIBLIB) -soname $(LIBSOMAJ)
63 pngtest: pngtest.o libpng.a
64 $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
70 @echo "The $@ target is no longer supported by this makefile."
74 @echo "The $@ target is no longer supported by this makefile."
78 @echo "The $@ target is no longer supported by this makefile."
82 $(RM_F) *.o libpng.a pngtest pngout.png
83 $(RM_F) $(LIBSO) $(LIBSOMAJ)* pnglibconf.h
85 # DO NOT DELETE THIS LINE -- make depend depends on it.
87 png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
88 pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
89 pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
90 pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
91 pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
92 pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
93 pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
94 pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
95 pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
96 pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
97 pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
98 pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
99 pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
100 pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
101 pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
103 pngtest.o: png.h pngconf.h pnglibconf.h