genode/libports/lib/mk/mpfr.mk
Stefan Kalkowski 337bb6d5f8 Build gmp and mpfr libary on x86_32 only (fix #135)
By now the gmp-library works builds on x86/32bit only. The mpfr library
depends on gmp, so make both library dependent on the corresponding platform
variables. Look at the discussion of issue #135.
2012-05-29 13:55:00 +02:00

21 lines
527 B
Makefile

MPFR_DIR = $(REP_DIR)/contrib/mpfr-3.0.0
ifeq ($(wildcard $(MPFR_DIR)),)
REQUIRES += prepare_mpfr
endif
# mpfr depends on gmp, which is only supported on x86_32 yet
REQUIRES += x86_32
LIBS = libc gmp
CC_OPT += -DHAVE_STDARG -DHAVE_VA_COPY -DHAVE_INTTYPES_H
INC_DIR += $(REP_DIR)/include/mpfr
MPFR_SRC_C := $(notdir $(wildcard $(MPFR_DIR)/*.c))
FILTER_OUT := ansi2knr.c jyn_asympt.c round_raw_generic.c speed.c tuneup.c
SRC_C := $(filter-out $(FILTER_OUT),$(MPFR_SRC_C))
vpath %.c $(MPFR_DIR)
SHARED_LIB = 1