mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
build: Update the makefiles for the benefit of cross-compilation
Split AR_RC into AR and ARFLAGS. The variables AR and ARFLAGS are de-facto standards (like CC and CFLAGS, LD and LDFLAGS, etc.) that may be overridden when running make. Moreover, configuring CC, LD, AR, etc., to point to a cross-platform compiler, linker, librarian, etc., is a de-facto standard practice as well. Also remove the MKDIR_P variable definitions from all makefiles. They've been leftovers from the removal of the "install*" targets.
This commit is contained in:
parent
8120345c89
commit
1cdde11877
@ -1,6 +1,6 @@
|
|||||||
# makefile for libpng on Solaris 2.x with cc
|
# makefile for libpng on Solaris 2.x with cc
|
||||||
# Contributed by William L. Sebok, based on makefile.linux
|
# Contributed by William L. Sebok, based on makefile.linux
|
||||||
# Copyright (C) 2020-2022 Cosmin Truta
|
# Copyright (C) 2020-2024 Cosmin Truta
|
||||||
# Copyright (C) 2002, 2006, 2010-2014 Glenn Randers-Pehrson
|
# Copyright (C) 2002, 2006, 2010-2014 Glenn Randers-Pehrson
|
||||||
# Copyright (C) 1998 Greg Roelofs
|
# Copyright (C) 1998 Greg Roelofs
|
||||||
# Copyright (C) 1996, 1997 Andreas Dilger
|
# Copyright (C) 1996, 1997 Andreas Dilger
|
||||||
@ -19,9 +19,8 @@ LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ)
|
|||||||
|
|
||||||
# Utilities:
|
# Utilities:
|
||||||
CC=cc
|
CC=cc
|
||||||
AR_RC=ar rc
|
AR=ar
|
||||||
RANLIB=echo
|
RANLIB=echo
|
||||||
MKDIR_P=mkdir -p
|
|
||||||
LN_SF=ln -f -s
|
LN_SF=ln -f -s
|
||||||
RM_F=/bin/rm -f
|
RM_F=/bin/rm -f
|
||||||
|
|
||||||
@ -42,6 +41,7 @@ WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
|
|||||||
-Wstrict-prototypes -Wmissing-prototypes # -Wconversion
|
-Wstrict-prototypes -Wmissing-prototypes # -Wconversion
|
||||||
CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5
|
CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5
|
||||||
CFLAGS=$(SUN_CC_FLAGS) # $(WARNMORE) -g
|
CFLAGS=$(SUN_CC_FLAGS) # $(WARNMORE) -g
|
||||||
|
ARFLAGS=rc
|
||||||
LDFLAGS=$(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB) libpng.a -lz -lm
|
LDFLAGS=$(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB) libpng.a -lz -lm
|
||||||
|
|
||||||
OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \
|
OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \
|
||||||
@ -65,7 +65,7 @@ DELETE = $(RM_F)
|
|||||||
DFNFLAGS = $(DEFS) $(CPPFLAGS)
|
DFNFLAGS = $(DEFS) $(CPPFLAGS)
|
||||||
|
|
||||||
libpng.a: $(OBJS)
|
libpng.a: $(OBJS)
|
||||||
$(AR_RC) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
$(LIBSO): $(LIBSOMAJ)
|
$(LIBSO): $(LIBSOMAJ)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# makefile for libpng on Solaris 2.x with cc
|
# makefile for libpng on Solaris 2.x with cc
|
||||||
# Contributed by William L. Sebok, based on makefile.linux
|
# Contributed by William L. Sebok, based on makefile.linux
|
||||||
# Copyright (C) 2020-2022 Cosmin Truta
|
# Copyright (C) 2020-2024 Cosmin Truta
|
||||||
# Copyright (C) 2002, 2006, 2010-2014 Glenn Randers-Pehrson
|
# Copyright (C) 2002, 2006, 2010-2014 Glenn Randers-Pehrson
|
||||||
# Copyright (C) 1998 Greg Roelofs
|
# Copyright (C) 1998 Greg Roelofs
|
||||||
# Copyright (C) 1996, 1997 Andreas Dilger
|
# Copyright (C) 1996, 1997 Andreas Dilger
|
||||||
@ -19,9 +19,8 @@ LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ)
|
|||||||
|
|
||||||
# Utilities:
|
# Utilities:
|
||||||
CC=cc
|
CC=cc
|
||||||
AR_RC=ar rc
|
AR=ar
|
||||||
RANLIB=echo
|
RANLIB=echo
|
||||||
MKDIR_P=mkdir -p
|
|
||||||
LN_SF=ln -f -s
|
LN_SF=ln -f -s
|
||||||
RM_F=/bin/rm -f
|
RM_F=/bin/rm -f
|
||||||
|
|
||||||
@ -41,7 +40,8 @@ WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
|
|||||||
-Wmissing-declarations -Wtraditional -Wcast-align \
|
-Wmissing-declarations -Wtraditional -Wcast-align \
|
||||||
-Wstrict-prototypes -Wmissing-prototypes # -Wconversion
|
-Wstrict-prototypes -Wmissing-prototypes # -Wconversion
|
||||||
CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5
|
CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5
|
||||||
CFLAGS= $(SUN_CC_FLAGS) # $(WARNMORE) -g
|
CFLAGS=$(SUN_CC_FLAGS) # $(WARNMORE) -g
|
||||||
|
ARFLAGS=rc
|
||||||
LDFLAGS=-L. -R. $(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng16 -lz -lm
|
LDFLAGS=-L. -R. $(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng16 -lz -lm
|
||||||
|
|
||||||
OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \
|
OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \
|
||||||
@ -65,7 +65,7 @@ DELETE = $(RM_F)
|
|||||||
DFNFLAGS = $(DEFS) $(CPPFLAGS)
|
DFNFLAGS = $(DEFS) $(CPPFLAGS)
|
||||||
|
|
||||||
libpng.a: $(OBJS)
|
libpng.a: $(OBJS)
|
||||||
$(AR_RC) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
$(LIBSO): $(LIBSOMAJ)
|
$(LIBSO): $(LIBSOMAJ)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# makefile for libpng using gcc (generic, static library)
|
# makefile for libpng using gcc (generic, static library)
|
||||||
# Copyright (C) 2000, 2022 Cosmin Truta
|
# Copyright (C) 2000, 2020-2024 Cosmin Truta
|
||||||
# Copyright (C) 2002, 2006-2009, 2014 Glenn Randers-Pehrson
|
# Copyright (C) 2002, 2006-2009, 2014 Glenn Randers-Pehrson
|
||||||
# Copyright (C) 2000 Marc O. Gloor (AIX support added, from makefile.gcc)
|
# Copyright (C) 2000 Marc O. Gloor (AIX support added, from makefile.gcc)
|
||||||
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
||||||
@ -15,9 +15,8 @@ ZLIBLIB = ../zlib
|
|||||||
# Compiler, linker, lib and other tools
|
# Compiler, linker, lib and other tools
|
||||||
CC = gcc
|
CC = gcc
|
||||||
LD = $(CC)
|
LD = $(CC)
|
||||||
AR_RC = ar rcs
|
AR = ar
|
||||||
RANLIB = ranlib
|
RANLIB = ranlib
|
||||||
MKDIR_P = mkdir -p
|
|
||||||
RM_F = rm -f
|
RM_F = rm -f
|
||||||
|
|
||||||
LIBNAME = libpng16
|
LIBNAME = libpng16
|
||||||
@ -26,6 +25,7 @@ PNGMAJ = 16
|
|||||||
WARNMORE =
|
WARNMORE =
|
||||||
CPPFLAGS = -I$(ZLIBINC) # -DPNG_DEBUG=5
|
CPPFLAGS = -I$(ZLIBINC) # -DPNG_DEBUG=5
|
||||||
CFLAGS = -O2 -Wall -Wextra -Wundef # $(WARNMORE) -g
|
CFLAGS = -O2 -Wall -Wextra -Wundef # $(WARNMORE) -g
|
||||||
|
ARFLAGS = rc
|
||||||
LDFLAGS = -L. -L$(ZLIBLIB) -lpng16 -lz -lm # -g
|
LDFLAGS = -L. -L$(ZLIBLIB) -lpng16 -lz -lm # -g
|
||||||
|
|
||||||
# File lists
|
# File lists
|
||||||
@ -44,7 +44,7 @@ REMOVE = $(RM_F)
|
|||||||
DFNFLAGS = $(DEFS) $(CPPFLAGS)
|
DFNFLAGS = $(DEFS) $(CPPFLAGS)
|
||||||
|
|
||||||
$(LIBNAME).a: $(OBJS)
|
$(LIBNAME).a: $(OBJS)
|
||||||
$(AR_RC) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
test: pngtest
|
test: pngtest
|
||||||
|
@ -26,8 +26,6 @@ LN= slink
|
|||||||
RM= delete quiet
|
RM= delete quiet
|
||||||
# library (.lib) file creation command
|
# library (.lib) file creation command
|
||||||
AR= oml
|
AR= oml
|
||||||
# make directory command
|
|
||||||
MKDIR= makedir
|
|
||||||
|
|
||||||
# Pre-built configuration
|
# Pre-built configuration
|
||||||
# See scripts/pnglibconf.mak for more options
|
# See scripts/pnglibconf.mak for more options
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# makefile for libpng on BeOS x86 ELF with gcc
|
# makefile for libpng on BeOS x86 ELF with gcc
|
||||||
# modified from makefile.linux by Sander Stoks
|
# modified from makefile.linux by Sander Stoks
|
||||||
# Copyright (C) 2020-2022 Cosmin Truta
|
# Copyright (C) 2020-2024 Cosmin Truta
|
||||||
# Copyright (C) 2002, 2006, 2008, 2010-2014 Glenn Randers-Pehrson
|
# Copyright (C) 2002, 2006, 2008, 2010-2014 Glenn Randers-Pehrson
|
||||||
# Copyright (C) 1999 Greg Roelofs
|
# Copyright (C) 1999 Greg Roelofs
|
||||||
# Copyright (C) 1996, 1997 Andreas Dilger
|
# Copyright (C) 1996, 1997 Andreas Dilger
|
||||||
@ -19,9 +19,8 @@ LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ)
|
|||||||
|
|
||||||
# Utilities:
|
# Utilities:
|
||||||
CC=gcc
|
CC=gcc
|
||||||
AR_RC=ar rc
|
AR=ar
|
||||||
RANLIB=ranlib
|
RANLIB=ranlib
|
||||||
MKDIR_P=mkdir -p
|
|
||||||
LN_SF=ln -sf
|
LN_SF=ln -sf
|
||||||
CP=cp
|
CP=cp
|
||||||
RM_F=/bin/rm -f
|
RM_F=/bin/rm -f
|
||||||
@ -42,6 +41,7 @@ WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
|
|||||||
# still here in R4.5
|
# still here in R4.5
|
||||||
CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5
|
CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5
|
||||||
CFLAGS=-O1 -funroll-loops $(ALIGN) -Wall -Wextra -Wundef # $(WARNMORE) -g
|
CFLAGS=-O1 -funroll-loops $(ALIGN) -Wall -Wextra -Wundef # $(WARNMORE) -g
|
||||||
|
ARFLAGS=rc
|
||||||
# LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng -lz
|
# LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng -lz
|
||||||
LDFLAGS=-L. -Wl,-soname=$(LIBSOMAJ) -L$(ZLIBLIB) -lz # -g
|
LDFLAGS=-L. -Wl,-soname=$(LIBSOMAJ) -L$(ZLIBLIB) -lz # -g
|
||||||
|
|
||||||
@ -66,7 +66,7 @@ pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
|
|||||||
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
||||||
|
|
||||||
libpng.a: $(OBJS)
|
libpng.a: $(OBJS)
|
||||||
$(AR_RC) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
$(LIBSO): $(LIBSOMAJ)
|
$(LIBSO): $(LIBSOMAJ)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# makefile for libpng using clang (generic, static library)
|
# makefile for libpng using clang (generic, static library)
|
||||||
# Copyright (C) 2000, 2014, 2019-2022 Cosmin Truta
|
# Copyright (C) 2000, 2014, 2019-2024 Cosmin Truta
|
||||||
# Copyright (C) 2008, 2014 Glenn Randers-Pehrson
|
# Copyright (C) 2008, 2014 Glenn Randers-Pehrson
|
||||||
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
||||||
#
|
#
|
||||||
@ -14,7 +14,7 @@ ZLIBLIB = ../zlib
|
|||||||
# Compiler, linker, lib and other tools
|
# Compiler, linker, lib and other tools
|
||||||
CC = clang
|
CC = clang
|
||||||
LD = $(CC)
|
LD = $(CC)
|
||||||
AR_RC = ar rcs
|
AR = ar
|
||||||
RANLIB = ranlib
|
RANLIB = ranlib
|
||||||
CP = cp
|
CP = cp
|
||||||
RM_F = rm -f
|
RM_F = rm -f
|
||||||
@ -28,6 +28,7 @@ WARNMORE = -Wwrite-strings -Wpointer-arith -Wshadow \
|
|||||||
DEFS = $(NOHWOPT)
|
DEFS = $(NOHWOPT)
|
||||||
CPPFLAGS = -I$(ZLIBINC) $(DEFS) # -DPNG_DEBUG=5
|
CPPFLAGS = -I$(ZLIBINC) $(DEFS) # -DPNG_DEBUG=5
|
||||||
CFLAGS = -O2 -Wall -Wextra -Wundef # $(WARNMORE) -g
|
CFLAGS = -O2 -Wall -Wextra -Wundef # $(WARNMORE) -g
|
||||||
|
ARFLAGS = rc
|
||||||
LDFLAGS = -L$(ZLIBLIB) # -g
|
LDFLAGS = -L$(ZLIBLIB) # -g
|
||||||
LIBS = -lz -lm
|
LIBS = -lz -lm
|
||||||
|
|
||||||
@ -60,7 +61,7 @@ shared:
|
|||||||
@false
|
@false
|
||||||
|
|
||||||
libpng.a: $(OBJS)
|
libpng.a: $(OBJS)
|
||||||
$(AR_RC) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
test: pngtest$(EXEEXT)
|
test: pngtest$(EXEEXT)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# makefile for libpng on Darwin / macOS
|
# makefile for libpng on Darwin / macOS
|
||||||
# Copyright (C) 2020-2022 Cosmin Truta
|
# Copyright (C) 2020-2024 Cosmin Truta
|
||||||
# Copyright (C) 2002, 2004, 2006, 2008, 2010-2014 Glenn Randers-Pehrson
|
# Copyright (C) 2002, 2004, 2006, 2008, 2010-2014 Glenn Randers-Pehrson
|
||||||
# Copyright (C) 2001 Christoph Pfisterer
|
# Copyright (C) 2001 Christoph Pfisterer
|
||||||
# derived from makefile.linux:
|
# derived from makefile.linux:
|
||||||
@ -24,9 +24,8 @@ LIBSOMAJ=$(LIBNAME).$(PNGMAJ).dylib
|
|||||||
|
|
||||||
# Utilities:
|
# Utilities:
|
||||||
CC=cc
|
CC=cc
|
||||||
AR_RC=ar rc
|
AR=ar
|
||||||
RANLIB=ranlib
|
RANLIB=ranlib
|
||||||
MKDIR_P=mkdir -p
|
|
||||||
LN_SF=ln -sf
|
LN_SF=ln -sf
|
||||||
CP=cp
|
CP=cp
|
||||||
RM_F=rm -f
|
RM_F=rm -f
|
||||||
@ -36,6 +35,7 @@ NOHWOPT=-DPNG_ARM_NEON_OPT=0 -DPNG_MIPS_MSA_OPT=0 \
|
|||||||
DEFS=$(NOHWOPT)
|
DEFS=$(NOHWOPT)
|
||||||
CPPFLAGS=-I$(ZLIBINC) $(DEFS)
|
CPPFLAGS=-I$(ZLIBINC) $(DEFS)
|
||||||
CFLAGS=-O3 -funroll-loops -Wall -Wextra -Wundef
|
CFLAGS=-O3 -funroll-loops -Wall -Wextra -Wundef
|
||||||
|
ARFLAGS=rc
|
||||||
LDFLAGS=-L. -L$(ZLIBLIB) -lpng16 -lz
|
LDFLAGS=-L. -L$(ZLIBLIB) -lpng16 -lz
|
||||||
|
|
||||||
# Pre-built configuration
|
# Pre-built configuration
|
||||||
@ -63,7 +63,7 @@ pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
|
|||||||
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
||||||
|
|
||||||
libpng.a: $(OBJS)
|
libpng.a: $(OBJS)
|
||||||
$(AR_RC) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
$(LIBSO): $(LIBSOMAJ)
|
$(LIBSO): $(LIBSOMAJ)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# makefile for libpng on DEC Alpha Unix
|
# makefile for libpng on DEC Alpha Unix
|
||||||
# Copyright (C) 2020-2022 Cosmin Truta
|
# Copyright (C) 2020-2024 Cosmin Truta
|
||||||
# Copyright (C) 2000-2002, 2006, 2010-2014 Glenn Randers-Pehrson
|
# Copyright (C) 2000-2002, 2006, 2010-2014 Glenn Randers-Pehrson
|
||||||
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
||||||
#
|
#
|
||||||
@ -17,9 +17,8 @@ LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ)
|
|||||||
|
|
||||||
# Utilities:
|
# Utilities:
|
||||||
CC=cc
|
CC=cc
|
||||||
AR_RC=ar rc
|
AR=ar
|
||||||
RANLIB=ranlib
|
RANLIB=ranlib
|
||||||
MKDIR_P=mkdir
|
|
||||||
LN_SF=ln -f -s
|
LN_SF=ln -f -s
|
||||||
CP=cp
|
CP=cp
|
||||||
RM_F=/bin/rm -f
|
RM_F=/bin/rm -f
|
||||||
@ -32,6 +31,7 @@ ZLIBINC=../zlib
|
|||||||
|
|
||||||
CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5
|
CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5
|
||||||
CFLAGS=-std -w1 -O # -g
|
CFLAGS=-std -w1 -O # -g
|
||||||
|
ARFLAGS=rc
|
||||||
LDFLAGS=-L$(ZLIBLIB) -rpath $(ZLIBLIB) libpng.a -lz -lm
|
LDFLAGS=-L$(ZLIBLIB) -rpath $(ZLIBLIB) libpng.a -lz -lm
|
||||||
|
|
||||||
# Pre-built configuration
|
# Pre-built configuration
|
||||||
@ -51,7 +51,7 @@ pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
|
|||||||
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
||||||
|
|
||||||
libpng.a: $(OBJS)
|
libpng.a: $(OBJS)
|
||||||
$(AR_RC) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
$(LIBSO): $(LIBSOMAJ)
|
$(LIBSO): $(LIBSOMAJ)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# DJGPP (DOS gcc) makefile for libpng
|
# DJGPP (DOS gcc) makefile for libpng
|
||||||
# Copyright (C) 2020-2022 Cosmin Truta
|
# Copyright (C) 2020-2024 Cosmin Truta
|
||||||
# Copyright (C) 2002, 2006, 2009-2014 Glenn Randers-Pehrson
|
# Copyright (C) 2002, 2006, 2009-2014 Glenn Randers-Pehrson
|
||||||
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
||||||
#
|
#
|
||||||
@ -8,8 +8,11 @@
|
|||||||
# and license in png.h
|
# and license in png.h
|
||||||
|
|
||||||
CC=gcc
|
CC=gcc
|
||||||
|
AR=ar
|
||||||
|
RANLIB=ranlib
|
||||||
CPPFLAGS=-I../zlib -DPNG_NO_SNPRINTF
|
CPPFLAGS=-I../zlib -DPNG_NO_SNPRINTF
|
||||||
CFLAGS=-O
|
CFLAGS=-O
|
||||||
|
ARFLAGS=rc
|
||||||
LDFLAGS=-L. -L../zlib/ -lpng -lz -lm
|
LDFLAGS=-L. -L../zlib/ -lpng -lz -lm
|
||||||
|
|
||||||
CP=cp
|
CP=cp
|
||||||
@ -32,8 +35,8 @@ pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
|
|||||||
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
||||||
|
|
||||||
libpng.a: $(OBJS)
|
libpng.a: $(OBJS)
|
||||||
ar rc $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
ranlib $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
pngtest: pngtest.o libpng.a
|
pngtest: pngtest.o libpng.a
|
||||||
$(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
|
$(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# makefile for libpng using emscripten
|
# makefile for libpng using emscripten
|
||||||
# Copyright (C) 2000, 2014, 2019-2022 Cosmin Truta
|
# Copyright (C) 2000, 2014, 2019-2024 Cosmin Truta
|
||||||
# Copyright (C) 2021 Kirk Roerig
|
# Copyright (C) 2021 Kirk Roerig
|
||||||
# Copyright (C) 2008, 2014 Glenn Randers-Pehrson
|
# Copyright (C) 2008, 2014 Glenn Randers-Pehrson
|
||||||
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
||||||
@ -15,13 +15,14 @@ ZLIBLIB = ../zlib
|
|||||||
# Compiler, linker, lib and other tools
|
# Compiler, linker, lib and other tools
|
||||||
CC = emcc
|
CC = emcc
|
||||||
LD = $(CC)
|
LD = $(CC)
|
||||||
AR_RC = emar rcs
|
AR = emar
|
||||||
RANLIB = emranlib
|
RANLIB = emranlib
|
||||||
CP = cp
|
CP = cp
|
||||||
RM_F = rm -f
|
RM_F = rm -f
|
||||||
|
|
||||||
CPPFLAGS = -I$(ZLIBINC) # -DPNG_DEBUG=5
|
CPPFLAGS = -I$(ZLIBINC) # -DPNG_DEBUG=5
|
||||||
CFLAGS = -O2 -Wall -Wextra -Wundef
|
CFLAGS = -O2 -Wall -Wextra -Wundef
|
||||||
|
ARFLAGS = rc
|
||||||
LDFLAGS = -L$(ZLIBLIB)
|
LDFLAGS = -L$(ZLIBLIB)
|
||||||
PNGTEST_LDFLAGS = --preload-file=pngtest.png
|
PNGTEST_LDFLAGS = --preload-file=pngtest.png
|
||||||
LIBS = -lz -lm
|
LIBS = -lz -lm
|
||||||
@ -51,7 +52,7 @@ shared:
|
|||||||
@false
|
@false
|
||||||
|
|
||||||
libpng.a: $(OBJS)
|
libpng.a: $(OBJS)
|
||||||
$(AR_RC) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
test: pngtest
|
test: pngtest
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# makefile for libpng using gcc (generic, static library)
|
# makefile for libpng using gcc (generic, static library)
|
||||||
# Copyright (C) 2000, 2014, 2019-2022 Cosmin Truta
|
# Copyright (C) 2000, 2014, 2019-2024 Cosmin Truta
|
||||||
# Copyright (C) 2008, 2014 Glenn Randers-Pehrson
|
# Copyright (C) 2008, 2014 Glenn Randers-Pehrson
|
||||||
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
||||||
#
|
#
|
||||||
@ -14,7 +14,7 @@ ZLIBLIB = ../zlib
|
|||||||
# Compiler, linker, lib and other tools
|
# Compiler, linker, lib and other tools
|
||||||
CC = gcc
|
CC = gcc
|
||||||
LD = $(CC)
|
LD = $(CC)
|
||||||
AR_RC = ar rcs
|
AR = ar
|
||||||
RANLIB = ranlib
|
RANLIB = ranlib
|
||||||
CP = cp
|
CP = cp
|
||||||
RM_F = rm -f
|
RM_F = rm -f
|
||||||
@ -28,6 +28,7 @@ WARNMORE = -Wwrite-strings -Wpointer-arith -Wshadow \
|
|||||||
DEFS = $(NOHWOPT)
|
DEFS = $(NOHWOPT)
|
||||||
CPPFLAGS = -I$(ZLIBINC) $(DEFS) # -DPNG_DEBUG=5
|
CPPFLAGS = -I$(ZLIBINC) $(DEFS) # -DPNG_DEBUG=5
|
||||||
CFLAGS = -O2 -Wall -Wextra -Wundef # $(WARNMORE) -g
|
CFLAGS = -O2 -Wall -Wextra -Wundef # $(WARNMORE) -g
|
||||||
|
ARFLAGS = rc
|
||||||
LDFLAGS = -L$(ZLIBLIB) # -g
|
LDFLAGS = -L$(ZLIBLIB) # -g
|
||||||
LIBS = -lz -lm
|
LIBS = -lz -lm
|
||||||
|
|
||||||
@ -60,7 +61,7 @@ shared:
|
|||||||
@false
|
@false
|
||||||
|
|
||||||
libpng.a: $(OBJS)
|
libpng.a: $(OBJS)
|
||||||
$(AR_RC) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
test: pngtest$(EXEEXT)
|
test: pngtest$(EXEEXT)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# makefile for libpng, HPUX (10.20 and 11.00) using the ANSI/C product.
|
# makefile for libpng, HPUX (10.20 and 11.00) using the ANSI/C product.
|
||||||
# Copyright (C) 2020-2022 Cosmin Truta
|
# Copyright (C) 2020-2024 Cosmin Truta
|
||||||
# Copyright (C) 1999-2002, 2006, 2009, 2010-2014 Glenn Randers-Pehrson
|
# Copyright (C) 1999-2002, 2006, 2009, 2010-2014 Glenn Randers-Pehrson
|
||||||
# Copyright (C) 1995 Guy Eric Schalnat, Group 42
|
# Copyright (C) 1995 Guy Eric Schalnat, Group 42
|
||||||
# Contributed by Jim Rice and updated by Chris Schleicher, Hewlett Packard
|
# Contributed by Jim Rice and updated by Chris Schleicher, Hewlett Packard
|
||||||
@ -29,9 +29,8 @@ LIBSOMAJ=$(LIBNAME).sl.$(PNGMAJ)
|
|||||||
|
|
||||||
# Utilities:
|
# Utilities:
|
||||||
CC=cc
|
CC=cc
|
||||||
AR_RC=ar rc
|
AR=ar
|
||||||
RANLIB=ranlib
|
RANLIB=ranlib
|
||||||
MKDIR_P=mkdir -p
|
|
||||||
LN_SF=ln -sf
|
LN_SF=ln -sf
|
||||||
CP=cp
|
CP=cp
|
||||||
RM_F=/bin/rm -f
|
RM_F=/bin/rm -f
|
||||||
@ -41,7 +40,7 @@ CPPFLAGS=-I$(ZLIBINC) \
|
|||||||
CFLAGS=-O -Ae -Wl,+vnocompatwarnings +DD64 +Z
|
CFLAGS=-O -Ae -Wl,+vnocompatwarnings +DD64 +Z
|
||||||
# Caution: be sure you have built zlib with the same CFLAGS.
|
# Caution: be sure you have built zlib with the same CFLAGS.
|
||||||
CCFLAGS=-O -Ae -Wl,+vnocompatwarnings +DD64 +Z
|
CCFLAGS=-O -Ae -Wl,+vnocompatwarnings +DD64 +Z
|
||||||
|
ARFLAGS=rc
|
||||||
LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
|
LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
|
||||||
|
|
||||||
# Pre-built configuration
|
# Pre-built configuration
|
||||||
@ -68,7 +67,7 @@ pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
|
|||||||
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
||||||
|
|
||||||
libpng.a: $(OBJS)
|
libpng.a: $(OBJS)
|
||||||
$(AR_RC) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
$(LIBSO): $(LIBSOMAJ)
|
$(LIBSO): $(LIBSOMAJ)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# makefile for libpng on HP-UX using GCC with the HP ANSI/C linker.
|
# makefile for libpng on HP-UX using GCC with the HP ANSI/C linker.
|
||||||
# Copyright (C) 2020-2022 Cosmin Truta
|
# Copyright (C) 2020-2024 Cosmin Truta
|
||||||
# Copyright (C) 2002, 2006-2008, 2010-2014 Glenn Randers-Pehrson
|
# Copyright (C) 2002, 2006-2008, 2010-2014 Glenn Randers-Pehrson
|
||||||
# Copyright (C) 2001, Laurent faillie
|
# Copyright (C) 2001, Laurent faillie
|
||||||
# Copyright (C) 1998, 1999 Greg Roelofs
|
# Copyright (C) 1998, 1999 Greg Roelofs
|
||||||
@ -19,10 +19,9 @@ LIBSOMAJ=$(LIBNAME).sl.$(PNGMAJ)
|
|||||||
|
|
||||||
# Utilities:
|
# Utilities:
|
||||||
CC=gcc
|
CC=gcc
|
||||||
LD=ld
|
AR=ar
|
||||||
AR_RC=ar rc
|
|
||||||
RANLIB=ranlib
|
RANLIB=ranlib
|
||||||
MKDIR_P=mkdir -p
|
LD=ld
|
||||||
LN_SF=ln -sf
|
LN_SF=ln -sf
|
||||||
CP=cp
|
CP=cp
|
||||||
RM_F=/bin/rm -f
|
RM_F=/bin/rm -f
|
||||||
@ -44,6 +43,7 @@ WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
|
|||||||
|
|
||||||
CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5
|
CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5
|
||||||
CFLAGS=-O3 -funroll-loops -Wall -Wextra -Wundef # $(WARNMORE) -g
|
CFLAGS=-O3 -funroll-loops -Wall -Wextra -Wundef # $(WARNMORE) -g
|
||||||
|
ARFLAGS=rc
|
||||||
#LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng16 -lz -lm # -g
|
#LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng16 -lz -lm # -g
|
||||||
LDFLAGS=-L. -L$(ZLIBLIB) -lpng16 -lz -lm # -g
|
LDFLAGS=-L. -L$(ZLIBLIB) -lpng16 -lz -lm # -g
|
||||||
|
|
||||||
@ -64,7 +64,7 @@ OBJSDLL = $(OBJS:.o=.pic.o)
|
|||||||
all: libpng.a $(LIBSO) pngtest
|
all: libpng.a $(LIBSO) pngtest
|
||||||
|
|
||||||
libpng.a: $(OBJS)
|
libpng.a: $(OBJS)
|
||||||
$(AR_RC) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
$(LIBSO): $(LIBSOMAJ)
|
$(LIBSO): $(LIBSOMAJ)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# makefile for libpng, HPUX (10.20 and 11.00) using the ANSI/C product.
|
# makefile for libpng, HPUX (10.20 and 11.00) using the ANSI/C product.
|
||||||
# Copyright (C) 2020-2022 Cosmin Truta
|
# Copyright (C) 2020-2024 Cosmin Truta
|
||||||
# Copyright (C) 1999-2002, 2006, 2010-2014 Glenn Randers-Pehrson
|
# Copyright (C) 1999-2002, 2006, 2010-2014 Glenn Randers-Pehrson
|
||||||
# Copyright (C) 1995 Guy Eric Schalnat, Group 42
|
# Copyright (C) 1995 Guy Eric Schalnat, Group 42
|
||||||
# Contributed by Jim Rice and updated by Chris Schleicher, Hewlett Packard
|
# Contributed by Jim Rice and updated by Chris Schleicher, Hewlett Packard
|
||||||
@ -30,9 +30,8 @@ LIBSOMAJ=$(LIBNAME).sl.$(PNGMAJ)
|
|||||||
|
|
||||||
# Utilities:
|
# Utilities:
|
||||||
CC=cc
|
CC=cc
|
||||||
AR_RC=ar rc
|
AR=ar
|
||||||
RANLIB=ranlib
|
RANLIB=ranlib
|
||||||
MKDIR_P=mkdir -p
|
|
||||||
LN_SF=ln -sf
|
LN_SF=ln -sf
|
||||||
RM_F=/bin/rm -f
|
RM_F=/bin/rm -f
|
||||||
|
|
||||||
@ -40,6 +39,7 @@ CPPFLAGS=-I$(ZLIBINC)
|
|||||||
CFLAGS=-O -Ae +DA1.1 +DS2.0
|
CFLAGS=-O -Ae +DA1.1 +DS2.0
|
||||||
# Caution: be sure you have built zlib with the same CFLAGS.
|
# Caution: be sure you have built zlib with the same CFLAGS.
|
||||||
CCFLAGS=-O -Ae +DA1.1 +DS2.0
|
CCFLAGS=-O -Ae +DA1.1 +DS2.0
|
||||||
|
ARFLAGS=rc
|
||||||
LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
|
LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
|
||||||
|
|
||||||
# Pre-built configuration
|
# Pre-built configuration
|
||||||
@ -66,7 +66,7 @@ pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
|
|||||||
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
||||||
|
|
||||||
libpng.a: $(OBJS)
|
libpng.a: $(OBJS)
|
||||||
$(AR_RC) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
$(LIBSO): $(LIBSOMAJ)
|
$(LIBSO): $(LIBSOMAJ)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# makefile for libpng.a and libpng16.so on Linux ELF with gcc
|
# makefile for libpng.a and libpng16.so on Linux ELF with gcc
|
||||||
# Copyright (C) 2020-2022 Cosmin Truta
|
# Copyright (C) 2020-2024 Cosmin Truta
|
||||||
# Copyright (C) 1998, 1999, 2002, 2006, 2008, 2010-2014 Greg Roelofs and
|
# Copyright (C) 1998, 1999, 2002, 2006, 2008, 2010-2014 Greg Roelofs and
|
||||||
# Glenn Randers-Pehrson
|
# Glenn Randers-Pehrson
|
||||||
# Copyright (C) 1996, 1997 Andreas Dilger
|
# Copyright (C) 1996, 1997 Andreas Dilger
|
||||||
@ -18,9 +18,8 @@ LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ)
|
|||||||
|
|
||||||
# Utilities:
|
# Utilities:
|
||||||
CC=gcc
|
CC=gcc
|
||||||
AR_RC=ar rc
|
AR=ar
|
||||||
RANLIB=ranlib
|
RANLIB=ranlib
|
||||||
MKDIR_P=mkdir -p
|
|
||||||
LN_SF=ln -sf
|
LN_SF=ln -sf
|
||||||
CP=cp
|
CP=cp
|
||||||
RM_F=rm -f
|
RM_F=rm -f
|
||||||
@ -40,6 +39,7 @@ WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
|
|||||||
DEFS=$(NOHWOPT)
|
DEFS=$(NOHWOPT)
|
||||||
CPPFLAGS=-I$(ZLIBINC) $(DEFS) # -DPNG_DEBUG=5
|
CPPFLAGS=-I$(ZLIBINC) $(DEFS) # -DPNG_DEBUG=5
|
||||||
CFLAGS=-O3 -funroll-loops -Wall -Wextra -Wundef # $(WARNMORE) -g
|
CFLAGS=-O3 -funroll-loops -Wall -Wextra -Wundef # $(WARNMORE) -g
|
||||||
|
ARFLAGS=rc
|
||||||
LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng16 -lz -lm # -g
|
LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng16 -lz -lm # -g
|
||||||
LDFLAGS_A=-L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) libpng.a -lz -lm # -g
|
LDFLAGS_A=-L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) libpng.a -lz -lm # -g
|
||||||
|
|
||||||
@ -68,7 +68,7 @@ pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
|
|||||||
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
||||||
|
|
||||||
libpng.a: $(OBJS)
|
libpng.a: $(OBJS)
|
||||||
$(AR_RC) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
$(LIBSO): $(LIBSOMAJ)
|
$(LIBSO): $(LIBSOMAJ)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# makefile for libpng
|
# makefile for libpng
|
||||||
# Copyright (C) 2020-2022 Cosmin Truta
|
# Copyright (C) 2020-2024 Cosmin Truta
|
||||||
# Copyright (C) 1998-2014 Glenn Randers-Pehrson
|
# Copyright (C) 1998-2014 Glenn Randers-Pehrson
|
||||||
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
||||||
#
|
#
|
||||||
@ -8,15 +8,15 @@
|
|||||||
# and license in png.h
|
# and license in png.h
|
||||||
|
|
||||||
CC=cc
|
CC=cc
|
||||||
|
AR=ar
|
||||||
|
#RANLIB=ranlib
|
||||||
|
RANLIB=echo
|
||||||
CPPFLAGS=-I../zlib -DSYSV -Dmips
|
CPPFLAGS=-I../zlib -DSYSV -Dmips
|
||||||
CFLAGS=-O -systype sysv -w
|
CFLAGS=-O -systype sysv -w
|
||||||
#CFLAGS=-O
|
#CFLAGS=-O
|
||||||
|
ARFLAGS=rc
|
||||||
LDFLAGS=-L. -L../zlib/ -lpng -lz -lm
|
LDFLAGS=-L. -L../zlib/ -lpng -lz -lm
|
||||||
|
|
||||||
AR_RC=ar rc
|
|
||||||
#RANLIB=ranlib
|
|
||||||
RANLIB=echo
|
|
||||||
|
|
||||||
# Pre-built configuration
|
# Pre-built configuration
|
||||||
# See scripts/pnglibconf.mak for more options
|
# See scripts/pnglibconf.mak for more options
|
||||||
PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt
|
PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt
|
||||||
@ -34,7 +34,7 @@ pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
|
|||||||
cp $(PNGLIBCONF_H_PREBUILT) $@
|
cp $(PNGLIBCONF_H_PREBUILT) $@
|
||||||
|
|
||||||
libpng.a: $(OBJS)
|
libpng.a: $(OBJS)
|
||||||
$(AR_RC) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
pngtest: pngtest.o libpng.a
|
pngtest: pngtest.o libpng.a
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# makefile for libpng using MSYS/gcc (shared, static library)
|
# makefile for libpng using MSYS/gcc (shared, static library)
|
||||||
# Copyright (C) 2019-2022 Cosmin Truta
|
# Copyright (C) 2000, 2019-2024 Cosmin Truta
|
||||||
# Copyright (C) 2012 Glenn Randers-Pehrson and Christopher M. Wheeler
|
# Copyright (C) 2012 Glenn Randers-Pehrson and Christopher M. Wheeler
|
||||||
#
|
#
|
||||||
# Portions taken from makefile.linux and makefile.gcc:
|
# Portions taken from makefile.linux and makefile.gcc:
|
||||||
@ -30,20 +30,20 @@ ZLIBINC=/usr/local/include
|
|||||||
# Compiler, linker, lib and other tools
|
# Compiler, linker, lib and other tools
|
||||||
CC = gcc
|
CC = gcc
|
||||||
LD = $(CC)
|
LD = $(CC)
|
||||||
AR_RC = ar rcs
|
AR = ar
|
||||||
RANLIB = ranlib
|
RANLIB = ranlib
|
||||||
CP = cp
|
CP = cp
|
||||||
RM_F = rm -rf
|
RM_F = rm -rf
|
||||||
MKDIR_P=mkdir -p
|
LN_SF = ln -sf
|
||||||
LN_SF=ln -sf
|
|
||||||
|
|
||||||
CPPFLAGS = # -DPNG_DEBUG=5
|
CPPFLAGS = # -DPNG_DEBUG=5
|
||||||
CFLAGS = -O2 -Wall -Wextra -Wundef # -g
|
CFLAGS = -O2 -Wall -Wextra -Wundef # -g
|
||||||
|
ARFLAGS = rc
|
||||||
LDFLAGS = # -g
|
LDFLAGS = # -g
|
||||||
LIBS = -lz -lm
|
LIBS = -lz -lm
|
||||||
|
|
||||||
# File extensions
|
# File extensions
|
||||||
EXEEXT=.exe
|
EXEEXT = .exe
|
||||||
|
|
||||||
# Pre-built configuration
|
# Pre-built configuration
|
||||||
# See scripts/pnglibconf.mak for more options
|
# See scripts/pnglibconf.mak for more options
|
||||||
@ -75,7 +75,7 @@ $(LIBSOMAJ):
|
|||||||
$(CC) -shared -Wl,-soname,$(LIBSOMAJ) -o $(LIBSOMAJ)
|
$(CC) -shared -Wl,-soname,$(LIBSOMAJ) -o $(LIBSOMAJ)
|
||||||
|
|
||||||
libpng.a: $(OBJS)
|
libpng.a: $(OBJS)
|
||||||
$(AR_RC) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# makefile for SCO OSr5 ELF and Unixware 7 with Native cc
|
# makefile for SCO OSr5 ELF and Unixware 7 with Native cc
|
||||||
# Contributed by Mike Hopkirk (hops at sco.com) modified from Makefile.lnx
|
# Contributed by Mike Hopkirk (hops at sco.com) modified from Makefile.lnx
|
||||||
# force ELF build dynamic linking, SONAME setting in lib and RPATH in app
|
# force ELF build dynamic linking, SONAME setting in lib and RPATH in app
|
||||||
# Copyright (C) 2020-2022 Cosmin Truta
|
# Copyright (C) 2020-2024 Cosmin Truta
|
||||||
# Copyright (C) 2002, 2006, 2010-2014 Glenn Randers-Pehrson
|
# Copyright (C) 2002, 2006, 2010-2014 Glenn Randers-Pehrson
|
||||||
# Copyright (C) 1998 Greg Roelofs
|
# Copyright (C) 1998 Greg Roelofs
|
||||||
# Copyright (C) 1996, 1997 Andreas Dilger
|
# Copyright (C) 1996, 1997 Andreas Dilger
|
||||||
@ -20,9 +20,8 @@ LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ)
|
|||||||
|
|
||||||
# Utilities:
|
# Utilities:
|
||||||
CC=cc
|
CC=cc
|
||||||
AR_RC=ar rc
|
AR=ar
|
||||||
RANLIB=echo
|
RANLIB=echo
|
||||||
MKDIR_P=mkdir
|
|
||||||
LN_SF=ln -f -s
|
LN_SF=ln -f -s
|
||||||
CP=cp
|
CP=cp
|
||||||
RM_F=/bin/rm -f
|
RM_F=/bin/rm -f
|
||||||
@ -34,7 +33,8 @@ ZLIBLIB=../zlib
|
|||||||
ZLIBINC=../zlib
|
ZLIBINC=../zlib
|
||||||
|
|
||||||
CPPFLAGS=-I$(ZLIBINC)
|
CPPFLAGS=-I$(ZLIBINC)
|
||||||
CFLAGS= -dy -belf -O3
|
CFLAGS=-dy -belf -O3
|
||||||
|
ARFLAGS=rc
|
||||||
LDFLAGS=-L. -L$(ZLIBLIB) -lpng16 -lz -lm
|
LDFLAGS=-L. -L$(ZLIBLIB) -lpng16 -lz -lm
|
||||||
|
|
||||||
# Pre-built configuration
|
# Pre-built configuration
|
||||||
@ -61,7 +61,7 @@ pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
|
|||||||
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
||||||
|
|
||||||
libpng.a: $(OBJS)
|
libpng.a: $(OBJS)
|
||||||
$(AR_RC) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
$(LIBSO): $(LIBSOMAJ)
|
$(LIBSO): $(LIBSOMAJ)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# makefile for libpng.a and libpng16.so, SGI IRIX with 'cc'
|
# makefile for libpng.a and libpng16.so, SGI IRIX with 'cc'
|
||||||
# Copyright (C) 2020-2022 Cosmin Truta
|
# Copyright (C) 2020-2024 Cosmin Truta
|
||||||
# Copyright (C) 2001-2002, 2006, 2010-2014 Glenn Randers-Pehrson
|
# Copyright (C) 2001-2002, 2006, 2010-2014 Glenn Randers-Pehrson
|
||||||
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
||||||
#
|
#
|
||||||
@ -17,9 +17,8 @@ LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ)
|
|||||||
|
|
||||||
# Utilities:
|
# Utilities:
|
||||||
CC=gcc
|
CC=gcc
|
||||||
AR_RC=ar rc
|
AR=ar
|
||||||
RANLIB=echo
|
RANLIB=echo
|
||||||
MKDIR_P=mkdir -p
|
|
||||||
LN_SF=ln -sf
|
LN_SF=ln -sf
|
||||||
CP=cp
|
CP=cp
|
||||||
RM_F=/bin/rm -f
|
RM_F=/bin/rm -f
|
||||||
@ -39,6 +38,7 @@ ABI=
|
|||||||
WARNMORE=
|
WARNMORE=
|
||||||
CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5
|
CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5
|
||||||
CFLAGS=$(ABI) -O $(WARNMORE) -fPIC -mabi=n32 # -g
|
CFLAGS=$(ABI) -O $(WARNMORE) -fPIC -mabi=n32 # -g
|
||||||
|
ARFLAGS=rc
|
||||||
LDFLAGS=$(ABI) -L. -L$(ZLIBLIB) -lpng -lz -lm # -g
|
LDFLAGS=$(ABI) -L. -L$(ZLIBLIB) -lpng -lz -lm # -g
|
||||||
LDSHARED=cc $(ABI) -shared -soname $(LIBSOMAJ) \
|
LDSHARED=cc $(ABI) -shared -soname $(LIBSOMAJ) \
|
||||||
-set_version sgi$(PNGMAJ).0
|
-set_version sgi$(PNGMAJ).0
|
||||||
@ -61,7 +61,7 @@ pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
|
|||||||
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
||||||
|
|
||||||
libpng.a: $(OBJS)
|
libpng.a: $(OBJS)
|
||||||
$(AR_RC) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
shared: $(LIBSOMAJ)
|
shared: $(LIBSOMAJ)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# makefile for libpng.a and libpng16.so, SGI IRIX with 'cc'
|
# makefile for libpng.a and libpng16.so, SGI IRIX with 'cc'
|
||||||
# Copyright (C) 2020-2022 Cosmin Truta
|
# Copyright (C) 2020-2024 Cosmin Truta
|
||||||
# Copyright (C) 2001-2002, 2006, 2007, 2010-2014 Glenn Randers-Pehrson
|
# Copyright (C) 2001-2002, 2006, 2007, 2010-2014 Glenn Randers-Pehrson
|
||||||
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
||||||
#
|
#
|
||||||
@ -17,9 +17,8 @@ LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ)
|
|||||||
|
|
||||||
# Utilities:
|
# Utilities:
|
||||||
CC=cc
|
CC=cc
|
||||||
AR_RC=ar rc
|
AR=ar
|
||||||
RANLIB=echo
|
RANLIB=echo
|
||||||
MKDIR_P=mkdir -p
|
|
||||||
LN_SF=ln -sf
|
LN_SF=ln -sf
|
||||||
CP=cp
|
CP=cp
|
||||||
RM_F=/bin/rm -f
|
RM_F=/bin/rm -f
|
||||||
@ -41,6 +40,7 @@ WARNMORE=-fullwarn
|
|||||||
CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5
|
CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5
|
||||||
#CFLAGS= $(ABI) -O $(WARNMORE) -KPIC # -g
|
#CFLAGS= $(ABI) -O $(WARNMORE) -KPIC # -g
|
||||||
CFLAGS=$(ABI) -O $(WARNMORE) # -g
|
CFLAGS=$(ABI) -O $(WARNMORE) # -g
|
||||||
|
ARFLAGS=rc
|
||||||
LDFLAGS_A=$(ABI) -L. -L$(ZLIBLIB) -lpng16 -lz -lm # -g
|
LDFLAGS_A=$(ABI) -L. -L$(ZLIBLIB) -lpng16 -lz -lm # -g
|
||||||
LDFLAGS=$(ABI) -L. -L$(ZLIBLIB) -lpng -lz -lm # -g
|
LDFLAGS=$(ABI) -L. -L$(ZLIBLIB) -lpng -lz -lm # -g
|
||||||
LDSHARED=cc $(ABI) -shared -soname $(LIBSOMAJ) \
|
LDSHARED=cc $(ABI) -shared -soname $(LIBSOMAJ) \
|
||||||
@ -64,7 +64,7 @@ pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
|
|||||||
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
||||||
|
|
||||||
libpng.a: $(OBJS)
|
libpng.a: $(OBJS)
|
||||||
$(AR_RC) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
$(LIBSO): $(LIBSOMAJ)
|
$(LIBSO): $(LIBSOMAJ)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# makefile for libpng on Solaris 9 (beta) with Forte cc
|
# makefile for libpng on Solaris 9 (beta) with Forte cc
|
||||||
# Updated by Chad Schrock for Solaris 9
|
# Updated by Chad Schrock for Solaris 9
|
||||||
# Contributed by William L. Sebok, based on makefile.linux
|
# Contributed by William L. Sebok, based on makefile.linux
|
||||||
# Copyright (C) 2020-2022 Cosmin Truta
|
# Copyright (C) 2020-2024 Cosmin Truta
|
||||||
# Copyright (C) 2002, 2006, 2008, 2010-2014 Glenn Randers-Pehrson
|
# Copyright (C) 2002, 2006, 2008, 2010-2014 Glenn Randers-Pehrson
|
||||||
# Copyright (C) 1998-2001 Greg Roelofs
|
# Copyright (C) 1998-2001 Greg Roelofs
|
||||||
# Copyright (C) 1996-1997 Andreas Dilger
|
# Copyright (C) 1996-1997 Andreas Dilger
|
||||||
@ -21,9 +21,8 @@ LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ)
|
|||||||
# Utilities:
|
# Utilities:
|
||||||
# gcc 2.95 doesn't work.
|
# gcc 2.95 doesn't work.
|
||||||
CC=cc
|
CC=cc
|
||||||
AR_RC=ar rc
|
AR=ar
|
||||||
RANLIB=echo
|
RANLIB=echo
|
||||||
MKDIR_P=mkdir -p
|
|
||||||
LN_SF=ln -f -s
|
LN_SF=ln -f -s
|
||||||
CP=cp
|
CP=cp
|
||||||
RM_F=/bin/rm -f
|
RM_F=/bin/rm -f
|
||||||
@ -41,6 +40,7 @@ ZLIBINC=/usr/include
|
|||||||
|
|
||||||
CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5
|
CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5
|
||||||
CFLAGS=-O3
|
CFLAGS=-O3
|
||||||
|
ARFLAGS=rc
|
||||||
LDFLAGS=-L. -R. -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng16 -lz -lm
|
LDFLAGS=-L. -R. -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng16 -lz -lm
|
||||||
|
|
||||||
# Pre-built configuration
|
# Pre-built configuration
|
||||||
@ -67,7 +67,7 @@ pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
|
|||||||
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
||||||
|
|
||||||
libpng.a: $(OBJS)
|
libpng.a: $(OBJS)
|
||||||
$(AR_RC) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
$(LIBSO): $(LIBSOMAJ)
|
$(LIBSO): $(LIBSOMAJ)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# makefile for libpng on Solaris 2.x with gcc
|
# makefile for libpng on Solaris 2.x with gcc
|
||||||
# Copyright (C) 2020-2022 Cosmin Truta
|
# Copyright (C) 2020-2024 Cosmin Truta
|
||||||
# Copyright (C) 2004, 2006-2008, 2010-2014 Glenn Randers-Pehrson
|
# Copyright (C) 2004, 2006-2008, 2010-2014 Glenn Randers-Pehrson
|
||||||
# Contributed by William L. Sebok, based on makefile.linux
|
# Contributed by William L. Sebok, based on makefile.linux
|
||||||
# Copyright (C) 1998 Greg Roelofs
|
# Copyright (C) 1998 Greg Roelofs
|
||||||
@ -19,9 +19,8 @@ LIBSOMAJ=$(LIBNAME).so.$(PNGMAJ)
|
|||||||
|
|
||||||
# Utilities:
|
# Utilities:
|
||||||
CC=gcc
|
CC=gcc
|
||||||
AR_RC=ar rc
|
AR=ar
|
||||||
RANLIB=echo
|
RANLIB=echo
|
||||||
MKDIR_P=mkdir -p
|
|
||||||
LN_SF=ln -f -s
|
LN_SF=ln -f -s
|
||||||
CP=cp
|
CP=cp
|
||||||
RM_F=/bin/rm -f
|
RM_F=/bin/rm -f
|
||||||
@ -40,6 +39,7 @@ WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
|
|||||||
-Wstrict-prototypes -Wmissing-prototypes # -Wconversion
|
-Wstrict-prototypes -Wmissing-prototypes # -Wconversion
|
||||||
CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5
|
CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5
|
||||||
CFLAGS=-O -Wall -Wextra -Wundef # $(WARNMORE) -g
|
CFLAGS=-O -Wall -Wextra -Wundef # $(WARNMORE) -g
|
||||||
|
ARFLAGS=rc
|
||||||
LDFLAGS=-L. -R. -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng16 -lz -lm # -g
|
LDFLAGS=-L. -R. -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng16 -lz -lm # -g
|
||||||
|
|
||||||
# Pre-built configuration
|
# Pre-built configuration
|
||||||
@ -66,7 +66,7 @@ pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
|
|||||||
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
||||||
|
|
||||||
libpng.a: $(OBJS)
|
libpng.a: $(OBJS)
|
||||||
$(AR_RC) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
$(LIBSO): $(LIBSOMAJ)
|
$(LIBSO): $(LIBSOMAJ)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# makefile for libpng
|
# makefile for libpng
|
||||||
# Copyright (C) 2020-2022 Cosmin Truta
|
# Copyright (C) 2020-2024 Cosmin Truta
|
||||||
# Copyright (C) 2002, 2006, 2014 Glenn Randers-Pehrson
|
# Copyright (C) 2002, 2006, 2014 Glenn Randers-Pehrson
|
||||||
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
||||||
#
|
#
|
||||||
@ -16,9 +16,8 @@ ZLIBINC=../zlib
|
|||||||
CC = cc
|
CC = cc
|
||||||
CPP = $(CC) -E
|
CPP = $(CC) -E
|
||||||
LD = $(CC)
|
LD = $(CC)
|
||||||
AR_RC = ar rc
|
AR = ar
|
||||||
RANLIB = ranlib
|
RANLIB = ranlib
|
||||||
MKDIR_P = mkdir
|
|
||||||
MV_F = mv -f
|
MV_F = mv -f
|
||||||
RM_F = rm -f
|
RM_F = rm -f
|
||||||
AWK = awk
|
AWK = awk
|
||||||
@ -29,6 +28,7 @@ DFNFLAGS = # DFNFLAGS contains -D options to use in the libpng build
|
|||||||
DFA_EXTRA = # extra files that can be used to control configuration
|
DFA_EXTRA = # extra files that can be used to control configuration
|
||||||
CPPFLAGS = -I$(ZLIBINC) $(NOHWOPT) # -DPNG_DEBUG=5
|
CPPFLAGS = -I$(ZLIBINC) $(NOHWOPT) # -DPNG_DEBUG=5
|
||||||
CFLAGS = -O # -g
|
CFLAGS = -O # -g
|
||||||
|
ARFLAGS = rc
|
||||||
LDFLAGS = -L$(ZLIBLIB) # -g
|
LDFLAGS = -L$(ZLIBLIB) # -g
|
||||||
LIBS = -lz -lm
|
LIBS = -lz -lm
|
||||||
|
|
||||||
@ -66,7 +66,7 @@ pnglibconf.dfn: scripts/pnglibconf.dfa scripts/options.awk pngconf.h pngusr.dfa
|
|||||||
$(MV_F) pnglibconf.tmp $@
|
$(MV_F) pnglibconf.tmp $@
|
||||||
|
|
||||||
libpng.a: $(OBJS)
|
libpng.a: $(OBJS)
|
||||||
$(AR_RC) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
pngtest: pngtest.o libpng.a
|
pngtest: pngtest.o libpng.a
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# makefile for libpng
|
# makefile for libpng
|
||||||
# Copyright (C) 2020-2022 Cosmin Truta
|
# Copyright (C) 2020-2024 Cosmin Truta
|
||||||
# Copyright (C) 2002, 2006, 2014 Glenn Randers-Pehrson
|
# Copyright (C) 2002, 2006, 2014 Glenn Randers-Pehrson
|
||||||
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
||||||
#
|
#
|
||||||
@ -14,14 +14,14 @@ ZLIBLIB=../zlib
|
|||||||
ZLIBINC=../zlib
|
ZLIBINC=../zlib
|
||||||
|
|
||||||
CC=gcc
|
CC=gcc
|
||||||
AR_RC=ar rc
|
AR=ar
|
||||||
RANLIB=ranlib
|
RANLIB=ranlib
|
||||||
MKDIR_P=mkdir -p
|
|
||||||
CP=cp
|
CP=cp
|
||||||
RM_F=/bin/rm -f
|
RM_F=/bin/rm -f
|
||||||
|
|
||||||
CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5
|
CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5
|
||||||
CFLAGS=-O
|
CFLAGS=-O
|
||||||
|
ARFLAGS=rc
|
||||||
LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
|
LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
|
||||||
|
|
||||||
# Pre-built configuration
|
# Pre-built configuration
|
||||||
@ -41,7 +41,7 @@ pnglibconf.h: $(PNGLIBCONF_H_PREBUILT)
|
|||||||
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
$(CP) $(PNGLIBCONF_H_PREBUILT) $@
|
||||||
|
|
||||||
libpng.a: $(OBJS)
|
libpng.a: $(OBJS)
|
||||||
$(AR_RC) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
pngtest: pngtest.o libpng.a
|
pngtest: pngtest.o libpng.a
|
||||||
|
@ -31,7 +31,7 @@ RM = del
|
|||||||
PNGLIBCONF_H_PREBUILT = scripts\pnglibconf.h.prebuilt
|
PNGLIBCONF_H_PREBUILT = scripts\pnglibconf.h.prebuilt
|
||||||
|
|
||||||
# File extensions
|
# File extensions
|
||||||
O=.obj
|
O = .obj
|
||||||
|
|
||||||
# File lists
|
# File lists
|
||||||
OBJS1 = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O)
|
OBJS1 = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O)
|
||||||
|
@ -30,7 +30,7 @@ RM = del
|
|||||||
PNGLIBCONF_H_PREBUILT = scripts\pnglibconf.h.prebuilt
|
PNGLIBCONF_H_PREBUILT = scripts\pnglibconf.h.prebuilt
|
||||||
|
|
||||||
# File extensions
|
# File extensions
|
||||||
O=.obj
|
O = .obj
|
||||||
|
|
||||||
# File lists
|
# File lists
|
||||||
OBJS1 = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O)
|
OBJS1 = png$(O) pngerror$(O) pngget$(O) pngmem$(O) pngpread$(O)
|
||||||
|
@ -11,13 +11,12 @@ CFLAGS = NOSTKCHK NOSINT OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL IDIR /zlib \
|
|||||||
OPTLOOP OPTRDEP=8 OPTDEP=8 OPTCOMP=8
|
OPTLOOP OPTRDEP=8 OPTDEP=8 OPTCOMP=8
|
||||||
LIBNAME = libpng.a
|
LIBNAME = libpng.a
|
||||||
AR = ppc-amigaos-ar
|
AR = ppc-amigaos-ar
|
||||||
AR_FLAGS = cr
|
ARFLAGS = cr
|
||||||
RANLIB = ppc-amigaos-ranlib
|
RANLIB = ppc-amigaos-ranlib
|
||||||
LDFLAGS = -r -o
|
LDFLAGS = -r -o
|
||||||
LDLIBS = ../zlib/libzip.a LIB:scppc.a
|
LDLIBS = ../zlib/libzip.a LIB:scppc.a
|
||||||
LN = ppc-amigaos-ld
|
LN = ppc-amigaos-ld
|
||||||
RM = delete quiet
|
RM = delete quiet
|
||||||
MKDIR = makedir
|
|
||||||
|
|
||||||
OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \
|
OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \
|
||||||
pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \
|
pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \
|
||||||
@ -26,7 +25,7 @@ OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \
|
|||||||
all: $(LIBNAME) pngtest
|
all: $(LIBNAME) pngtest
|
||||||
|
|
||||||
$(LIBNAME): $(OBJS)
|
$(LIBNAME): $(OBJS)
|
||||||
$(AR) $(AR_FLAGS) $@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
pngtest: pngtest.o $(LIBNAME)
|
pngtest: pngtest.o $(LIBNAME)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user