summaryrefslogtreecommitdiff
path: root/scripts/makefile.sgi
diff options
context:
space:
mode:
authorCosmin Truta <ctruta@gmail.com>2022-09-14 21:18:20 +0300
committerCosmin Truta <ctruta@gmail.com>2022-09-14 21:18:20 +0300
commitc64655d058b1b8156af45af0f6f4cdf95cf303c1 (patch)
tree2b75e9a092a6151a8647b9633e2fcbd958a8b536 /scripts/makefile.sgi
parent8b7b99c1db32e8f2266b310f64bb61486aa4c52e (diff)
downloadlibpng-c64655d058b1b8156af45af0f6f4cdf95cf303c1.tar.gz
scripts: Set the compiler warning options to "-Wall -Wextra -Wundef"
Considering that "-Wextra" is a more descriptive alternative to "-W", and that "-Wundef" is a highly useful warning option that has been available in ancient versions of gcc (version 2.x), we replace all occurrences of "-W -Wall" with "-Wall -Wextra -Wundef". Also clean up the makefiles.
Diffstat (limited to 'scripts/makefile.sgi')
-rw-r--r--scripts/makefile.sgi12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/makefile.sgi b/scripts/makefile.sgi
index 8cc27dacd..1ead8d88d 100644
--- a/scripts/makefile.sgi
+++ b/scripts/makefile.sgi
@@ -1,5 +1,5 @@
# makefile for libpng.a and libpng16.so, SGI IRIX with 'cc'
-# Copyright (C) 2020 Cosmin Truta
+# Copyright (C) 2020-2022 Cosmin Truta
# Copyright (C) 2001-2002, 2006, 2007, 2010-2014 Glenn Randers-Pehrson
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
#
@@ -18,11 +18,11 @@ LIBSOREL=$(LIBSOMAJ).$(RELEASE)
OLDSO=libpng.so
# Utilities:
-AR_RC=ar rc
CC=cc
+AR_RC=ar rc
+RANLIB=echo
MKDIR_P=mkdir -p
LN_SF=ln -sf
-RANLIB=echo
CP=cp
RM_F=/bin/rm -f
@@ -48,9 +48,9 @@ WARNMORE=-fullwarn
# Note: -KPIC is the default anyhow
CPPFLAGS=-I$(ZLIBINC) # -DPNG_DEBUG=5
#CFLAGS= $(ABI) -O $(WARNMORE) -KPIC # -g
-CFLAGS=$(ABI) -O $(WARNMORE)
-LDFLAGS_A=$(ABI) -L. -L$(ZLIBLIB) -lpng16 -lz -lm
-LDFLAGS=$(ABI) -L. -L$(ZLIBLIB) -lpng -lz -lm
+CFLAGS=$(ABI) -O $(WARNMORE) # -g
+LDFLAGS_A=$(ABI) -L. -L$(ZLIBLIB) -lpng16 -lz -lm # -g
+LDFLAGS=$(ABI) -L. -L$(ZLIBLIB) -lpng -lz -lm # -g
LDSHARED=cc $(ABI) -shared -soname $(LIBSOMAJ) \
-set_version sgi$(PNGMAJ).0
# See "man dso" for info about shared objects