aboutsummaryrefslogtreecommitdiffstats
path: root/distrib/libpng-1.2.19/sources.make
blob: f512f7be008ca8345638441891a39f9ad802d722 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# this file is included by various Makefiles and defines the set of sources used by our version of LibPng
#
LIBPNG_SOURCES := png.c pngerror.c pngget.c pngmem.c pngpread.c pngread.c \
                  pngrio.c pngrtran.c pngrutil.c pngset.c pngtrans.c pngvcrd.c pngwio.c \
                  pngwrite.c pngwtran.c pngwutil.c

# Enable MMX code path for x86, except on Darwin where it fails
PNG_MMX := no
ifeq ($(HOST_ARCH),x86)
    PNG_MMX := yes
endif
ifeq ($(HOST_OS),darwin)
    PNG_MMX := no
endif

ifeq ($(PNG_MMX),yes)
    LIBPNG_SOURCES += pnggccrd.c
else
    LIBPNG_CFLAGS += -DPNG_NO_MMX_CODE
endif

LIBPNG_SOURCES := $(LIBPNG_SOURCES:%=$(LIBPNG_DIR)/%)