aboutsummaryrefslogtreecommitdiffstats
path: root/distrib/libpng-1.2.19/Makefile
blob: ba59f451678410c4c8e90bf98e2a9950e1203ad8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Makefile used to compile libpng statically
# you need to define ZLIB_INCLUDE to the Zlib include path
# and PREFIX to the installation path
#
LIBPNG_LIB    := $(SRC_PATH)/libpng.a
LIBPNG_CFLAGS := -I$(LIBPNG_DIR)

HOST_ARCH := $(shell uname -p)
HOST_OS   := $(shell uname -s)
ifeq ($(HOST_OS),Darwin)
    HOST_OS := darwin
endif

include $(LIBPNG_DIR)/sources.make

LIBPNG_OBJS := $(LIBPNG_SOURCES:%.c=%.o)

$(LIBPNG_LIB): $(LIBPNG_OBJS)
	ar ru $@ $(LIBPNG_OBJS)

$(LIBPNG_OBJS): CFLAGS += $(ZLIB_CFLAGS) $(LIBPNG_CFLAGS)

clean-libpng:
	rm -f $(LIBPNG_OBJS) $(LIBPNG_LIB)