modules/libbz2/src/Makefile.in
author Gervase Markham <gerv@gerv.net>
Tue, 29 May 2012 16:52:43 +0100
changeset 99299 7c3cd4824f94609d4ad714bea9c687227c641e63
parent 38309 e3ae391d249feac7c3132ef200992fcf24ba1a7e
child 106884 2ef51674316aadfe26a46877b16794f758bf4b6d
permissions -rw-r--r--
Bug 759095 - upgrade license to MPL 2, and other licensing cleanups.

# vim:set ts=8 sw=8 sts=8 noet:
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DEPTH		= ../../..
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@

include $(DEPTH)/config/autoconf.mk

MODULE		= libbz2
LIBRARY_NAME	= bz2
HOST_LIBRARY_NAME = hostbz2
FORCE_STATIC_LIB= 1
ifeq ($(OS_ARCH),WINNT)
USE_STATIC_LIBS = 1
endif

# This is defined by the bzip2-1.0.3 Makefile.  It appears to be used to
# configure GLIBC to support large files.  This isn't something we care about
# at this stage, since we're only interested in the streaming API, but we
# define it here anyways for consistency.
DEFINES	+= -D_FILE_OFFSET_BITS=64

CSRCS		= \
		blocksort.c \
		bzlib.c \
		compress.c \
		crctable.c \
		decompress.c \
		huffman.c \
		randtable.c \
		$(NULL)

HOST_CSRCS	= $(CSRCS)

EXPORTS		= \
		bzlib.h \
		$(NULL)

include $(topsrcdir)/config/rules.mk

ifdef CROSS_COMPILE
ifdef HOST_NSPR_MDCPUCFG
HOST_CFLAGS    += -DMDCPUCFG=$(HOST_NSPR_MDCPUCFG)
endif
endif

# The intermediate (.ii/.s) files for host and target can have the same name...
# disable parallel builds
.NOTPARALLEL: