87 lines · 3.0 KB · Text
RawDownload
# makefile for libpng using gcc (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 -f WARNMORE = -Wwrite-strings -Wpointer-arith -Wshadow \	-Wmissing-declarations -Wtraditional -Wcast-align \	-Wstrict-prototypes -Wmissing-prototypes # -WconversionCPPFLAGS = -I$(ZLIBINC) # -DPNG_DEBUG=5CFLAGS = -W -Wall -O2 # $(WARNMORE) -gLDFLAGS = -L$(ZLIBLIB)LIBS = -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: static pnglibconf.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.	@false libpng.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.h png.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.h pngtest.o:  png.h pngconf.h pnglibconf.h