1# this file is included by various Makefiles and defines the set of sources used by our version of LibPng 2# 3LIBPNG_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 8PNG_MMX := no 9ifeq ($(HOST_ARCH),x86) 10 PNG_MMX := yes 11endif 12ifeq ($(HOST_OS),darwin) 13 PNG_MMX := no 14endif 15 16ifeq ($(PNG_MMX),yes) 17 LIBPNG_SOURCES += pnggccrd.c 18else 19 LIBPNG_CFLAGS += -DPNG_NO_MMX_CODE 20endif 21 22LIBPNG_SOURCES := $(LIBPNG_SOURCES:%=$(LIBPNG_DIR)/%) 23 24