1 ZLIB_BASE
= lib
$(SEP
)zlib
3 ZLIB_BASE_DIR
= $(INTERMEDIATE
)$(ZLIB_BASE
)
6 #$(ZLIB_BASE_DIR): $(INTERMEDIATE_NO_SLASH) $(RMKDIR_TARGET)
7 # ${mkdir} $(INTERMEDIATE)$(ZLIB_BASE)
10 $(INTERMEDIATE
)$(ZLIB_BASE
)$(SEP
)zlib.host.a
13 $(ZLIB_BASE
)$(SEP
)adler32.c \
14 $(ZLIB_BASE
)$(SEP
)compress.c \
15 $(ZLIB_BASE
)$(SEP
)crc32.c \
16 $(ZLIB_BASE
)$(SEP
)gzio.c \
17 $(ZLIB_BASE
)$(SEP
)uncompr.c \
18 $(ZLIB_BASE
)$(SEP
)deflate.c \
19 $(ZLIB_BASE
)$(SEP
)trees.c \
20 $(ZLIB_BASE
)$(SEP
)zutil.c \
21 $(ZLIB_BASE
)$(SEP
)inflate.c \
22 $(ZLIB_BASE
)$(SEP
)infblock.c \
23 $(ZLIB_BASE
)$(SEP
)inftrees.c \
24 $(ZLIB_BASE
)$(SEP
)infcodes.c \
25 $(ZLIB_BASE
)$(SEP
)infutil.c \
26 $(ZLIB_BASE
)$(SEP
)inffast.c
29 $(ZLIB_HOST_SOURCES
:.c
=.o
)
31 ZLIB_HOST_CFLAGS
= -MMD
-O3
-Wall
-Wwrite-strings
-Wpointer-arith
-Wconversion \
32 -Wstrict-prototypes
-Wmissing-prototypes
35 zlib_host
: $(ZLIB_HOST_TARGET
)
37 $(ZLIB_HOST_TARGET
): $(ZLIB_HOST_BASE_DIR
) $(ZLIB_HOST_OBJECTS
)
39 $(host_ar
) -r
$(ZLIB_HOST_TARGET
) $(ZLIB_HOST_OBJECTS
)
41 $(ZLIB_HOST_OBJECTS
): %.o
: %.c
$(ZLIB_BASE_DIR
)
43 ${host_gcc} $(ZLIB_HOST_CFLAGS
) -c
$< -o
$@
45 .PHONY
: zlib_host_clean
47 -@
$(rm) $(ZLIB_HOST_TARGET
) $(ZLIB_HOST_OBJECTS
) 2>$(NUL
)