1 # this file is included by various Makefiles and defines the set of sources used by our version of LibPng 2 # 3 LIBPNG_SOURCES := png.c pngerror.c pngget.c pngmem.c pngpread.c pngread.c \ 4 pngrio.c pngrtran.c pngrutil.c pngset.c pngtrans.c pngvcrd.c pngwio.c \ 5 pngwrite.c pngwtran.c pngwutil.c 6 7 # Enable MMX code path for x86, except on Darwin where it fails 8 PNG_MMX := no 9 ifeq ($(HOST_ARCH),x86) 10 PNG_MMX := yes 11 endif 12 ifeq ($(HOST_OS),darwin) 13 PNG_MMX := no 14 endif 15 16 ifeq ($(PNG_MMX),yes) 17 LIBPNG_SOURCES += pnggccrd.c 18 else 19 LIBPNG_CFLAGS += -DPNG_NO_MMX_CODE 20 endif 21 22 LIBPNG_SOURCES := $(LIBPNG_SOURCES:%=$(LIBPNG_DIR)/%) 23 24