| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 | # makefile for libpng using gcc + address sanitizer (generic, static library)# Copyright (C) 2008, 2014 Glenn Randers-Pehrson# Copyright (C) 2000, 2014, 2019 Cosmin Truta# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.## This code is released under the libpng license.# For conditions of distribution and use, see the disclaimer# and license in png.h# Location of the zlib library and include filesZLIBINC = ../zlibZLIBLIB = ../zlib# Compiler, linker, lib and other toolsCC = gccLD = $(CC)AR_RC = ar rcsRANLIB = ranlibCP = cpRM_F = rm -fWARNMORE = -Wwrite-strings -Wpointer-arith -Wshadow \	-Wmissing-declarations -Wtraditional -Wcast-align \	-Wstrict-prototypes -Wmissing-prototypes # -WconversionCPPFLAGS = -I$(ZLIBINC) # -DPNG_DEBUG=5CFLAGS = -W -Wall -O0 -g -fsanitize=addressLDFLAGS = -L$(ZLIBLIB) -g -fsanitize=addressLIBS = -lz -lm# File extensionsEXEEXT =# Pre-built configuration# See scripts/pnglibconf.mak for more optionsPNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt# VariablesOBJS =  png.o pngerror.o pngget.o pngmem.o pngpread.o \	pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \	pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o# Targetsall: staticpnglibconf.h: $(PNGLIBCONF_H_PREBUILT)	$(CP) $(PNGLIBCONF_H_PREBUILT) $@.c.o:	$(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<static: libpng.a pngtest$(EXEEXT)shared:	@echo This is a generic makefile that cannot create shared libraries.	@echo Please use a configuration that is specific to your platform.	@falselibpng.a: $(OBJS)	$(AR_RC) $@ $(OBJS)	$(RANLIB) $@test: pngtest$(EXEEXT)	./pngtest$(EXEEXT)pngtest$(EXEEXT): pngtest.o libpng.a	$(LD) $(LDFLAGS) -o $@ pngtest.o libpng.a $(LIBS)clean:	$(RM_F) *.o libpng.a pngtest$(EXEEXT) pngout.png pnglibconf.hpng.o:      png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.hpngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.hpngget.o:   png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.hpngmem.o:   png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.hpngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.hpngread.o:  png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.hpngrio.o:   png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.hpngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.hpngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.hpngset.o:   png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.hpngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.hpngwio.o:   png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.hpngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.hpngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.hpngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.hpngtest.o:  png.h pngconf.h pnglibconf.h
 |