diff options
author | Cosmin Truta <ctruta@gmail.com> | 2022-09-14 21:18:20 +0300 |
---|---|---|
committer | Cosmin Truta <ctruta@gmail.com> | 2022-09-14 21:18:20 +0300 |
commit | c64655d058b1b8156af45af0f6f4cdf95cf303c1 (patch) | |
tree | 2b75e9a092a6151a8647b9633e2fcbd958a8b536 /scripts/makefile.darwin | |
parent | 8b7b99c1db32e8f2266b310f64bb61486aa4c52e (diff) | |
download | libpng-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.darwin')
-rw-r--r-- | scripts/makefile.darwin | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/makefile.darwin b/scripts/makefile.darwin index e77680f70..9cc0381f4 100644 --- a/scripts/makefile.darwin +++ b/scripts/makefile.darwin @@ -1,5 +1,5 @@ -# makefile for libpng on Darwin / Mac OS X -# Copyright (C) 2020 Cosmin Truta +# makefile for libpng on Darwin / macOS +# Copyright (C) 2020-2022 Cosmin Truta # Copyright (C) 2002, 2004, 2006, 2008, 2010-2014 Glenn Randers-Pehrson # Copyright (C) 2001 Christoph Pfisterer # derived from makefile.linux: @@ -22,6 +22,7 @@ ZLIBINC=/usr/include # Library name: LIBNAME = libpng16 PNGMAJ = 16 +RELEASE = 37 # Shared library names: LIBSO=$(LIBNAME).dylib @@ -32,14 +33,14 @@ OLDSO=libpng.dylib # Utilities: CC=cc AR_RC=ar rc +RANLIB=ranlib MKDIR_P=mkdir -p LN_SF=ln -sf -RANLIB=ranlib CP=cp -RM_F=/bin/rm -f +RM_F=rm -f CPPFLAGS=-I$(ZLIBINC) -CFLAGS=-W -Wall -O3 -funroll-loops +CFLAGS=-O3 -funroll-loops -Wall -Wextra -Wundef LDFLAGS=-L. -L$(ZLIBLIB) -lpng16 -lz INCPATH=$(prefix)/include |