summaryrefslogtreecommitdiff
path: root/scripts/makefile.std
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.std
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.std')
-rw-r--r--scripts/makefile.std6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/makefile.std b/scripts/makefile.std
index eec63b092..a3bb9441e 100644
--- a/scripts/makefile.std
+++ b/scripts/makefile.std
@@ -1,5 +1,5 @@
# makefile for libpng
-# Copyright (C) 2020 Cosmin Truta
+# Copyright (C) 2020-2022 Cosmin Truta
# Copyright (C) 2002, 2006, 2014 Glenn Randers-Pehrson
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
#
@@ -32,9 +32,9 @@ CC = cc
CPP = $(CC) -E
LD = $(CC)
AR_RC = ar rc
+RANLIB = ranlib
MKDIR_P = mkdir
LN_SF = ln -sf
-RANLIB = ranlib
CP = cp
MV_F = mv -f
RM_F = rm -f
@@ -44,7 +44,7 @@ DFNFLAGS = # DFNFLAGS contains -D options to use in the libpng build
DFA_EXTRA = # extra files that can be used to control configuration
CPPFLAGS = -I$(ZLIBINC) # -DPNG_DEBUG=5
CFLAGS = -O # -g
-LDFLAGS = -L$(ZLIBLIB)
+LDFLAGS = -L$(ZLIBLIB) # -g
LIBS = -lz -lm
# Pre-built configuration