X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=scripts%2Fmakefile.clang;h=2e154236f6e83841b4baaa61dde57e4f9d141a0a;hb=f125affdc66153880ba8dc33d8369e5a0dc9a6a7;hp=fcaefae9b5836b088f9d5028ce7426e7eda3bc92;hpb=fa7e0fcd15b99f3b778e018992da36a5703fc6a3;p=platform%2Fupstream%2Flibpng.git diff --git a/scripts/makefile.clang b/scripts/makefile.clang index fcaefae..2e15423 100644 --- a/scripts/makefile.clang +++ b/scripts/makefile.clang @@ -1,6 +1,6 @@ # makefile for libpng using clang (generic, static library) +# Copyright (C) 2000, 2014, 2019-2022 Cosmin Truta # 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. @@ -19,12 +19,16 @@ RANLIB = ranlib CP = cp RM_F = rm -f +# Compiler and linker flags +NOHWOPT = -DPNG_ARM_NEON_OPT=0 -DPNG_MIPS_MSA_OPT=0 \ + -DPNG_POWERPC_VSX_OPT=0 -DPNG_INTEL_SSE_OPT=0 WARNMORE = -Wwrite-strings -Wpointer-arith -Wshadow \ -Wmissing-declarations -Wtraditional -Wcast-align \ -Wstrict-prototypes -Wmissing-prototypes # -Wconversion -CPPFLAGS = -I$(ZLIBINC) # -DPNG_DEBUG=5 -CFLAGS = -W -Wall -O2 # $(WARNMORE) -g -LDFLAGS = -L$(ZLIBLIB) +DEFS = $(NOHWOPT) +CPPFLAGS = -I$(ZLIBINC) $(DEFS) # -DPNG_DEBUG=5 +CFLAGS = -O2 -Wall -Wextra -Wundef # $(WARNMORE) -g +LDFLAGS = -L$(ZLIBLIB) # -g LIBS = -lz -lm # File extensions @@ -34,10 +38,10 @@ EXEEXT = # See scripts/pnglibconf.mak for more options PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt -# Variables -OBJS = 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 +# File lists +OBJS = 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 # Targets all: static