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 ifneq ($(BUILD_DEBUG_EMULATOR),true) 11 PNG_MMX := yes 12 endif 13 endif 14 ifeq ($(HOST_OS),darwin) 15 PNG_MMX := no 16 endif 17 18 ifeq ($(PNG_MMX),yes) 19 LIBPNG_SOURCES += pnggccrd.c 20 else 21 LIBPNG_CFLAGS += -DPNG_NO_MMX_CODE 22 endif 23 24 LIBPNG_SOURCES := $(LIBPNG_SOURCES:%=$(LIBPNG_DIR)/%) 25