Home | History | Annotate | Download | only in libpng-1.2.46
      1 # this file is included by various Makefiles and defines the set of sources used by our version of LibPng
      2 #
      3 LIBPNG_SOURCES := \
      4     png.c \
      5     pngerror.c \
      6     pngget.c \
      7     pngmem.c \
      8     pngpread.c \
      9     pngread.c \
     10     pngrio.c \
     11     pngrtran.c \
     12     pngrutil.c \
     13     pngset.c \
     14     pngtrans.c \
     15     pngvcrd.c \
     16     pngwio.c \
     17     pngwrite.c \
     18     pngwtran.c \
     19     pngwutil.c
     20 
     21 # Enable MMX code path for x86, except on Darwin where it fails
     22 PNG_MMX := no
     23 ifeq ($(HOST_ARCH),x86)
     24 ifneq ($(BUILD_DEBUG_EMULATOR),true)
     25     PNG_MMX := yes
     26 endif
     27 endif
     28 ifeq ($(HOST_OS),darwin)
     29     PNG_MMX := no
     30 endif
     31 
     32 ifeq ($(PNG_MMX),yes)
     33     LIBPNG_SOURCES += pnggccrd.c
     34 else
     35     LIBPNG_CFLAGS += -DPNG_NO_MMX_CODE
     36 endif
     37 
     38 LIBPNG_SOURCES := $(LIBPNG_SOURCES:%=$(LIBPNG_DIR)/%)
     39