1995-11-12 14:55:48 +00:00
|
|
|
# Makefile for libmp
|
1996-08-30 02:12:07 +00:00
|
|
|
# $Id: Makefile,v 1.4 1995/11/25 00:13:57 peter Exp $
|
1995-11-12 14:40:41 +00:00
|
|
|
|
1995-11-12 14:55:48 +00:00
|
|
|
LIB= mp
|
|
|
|
SRCS= $(MP_SRCS)
|
1995-11-25 00:14:03 +00:00
|
|
|
.PATH: ${.CURDIR}/../libgmp
|
|
|
|
CLEANFILES+= cre-mparam cre-conv-tab gmp-mparam.h mp_bases.c
|
1995-11-12 14:40:41 +00:00
|
|
|
|
1995-11-25 00:14:03 +00:00
|
|
|
MP_SRCS= mp_bases.c $(BSDMP_SRCS) $(MPN_SRCS) $(IMPL_SRCS)
|
1995-11-12 14:40:41 +00:00
|
|
|
|
1995-11-25 00:14:03 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../libgmp -I${.OBJDIR} -Wall -Wstrict-prototypes \
|
|
|
|
-DLOCALE -DBERKELEY_MP
|
1995-11-12 14:40:41 +00:00
|
|
|
|
1995-11-25 00:14:03 +00:00
|
|
|
BSDMP_SRCS= mpz_gcd.c mpz_add.c mpz_cmp.c mpz_sub.c mpz_mul.c \
|
|
|
|
mpz_powm.c mpz_pow_ui.c mpz_sqrtrem.c mpz_sizeinb.c \
|
|
|
|
itom.c mdiv.c move.c mtox.c xtom.c sdiv.c mout.c min.c mfree.c
|
1995-11-12 14:40:41 +00:00
|
|
|
|
1995-11-12 14:55:48 +00:00
|
|
|
MPN_SRCS= mpn_add.c mpn_sub.c mpn_cmp.c mpn_mul.c mpn_div.c mpn_dm_1.c \
|
|
|
|
mpn_mod_1.c mpn_lshift.c mpn_rshift.c mpn_rshiftci.c mpn_sqrt.c
|
1995-11-12 14:40:41 +00:00
|
|
|
|
1995-11-12 14:55:48 +00:00
|
|
|
IMPL_SRCS= memory.c mp_set_fns.c _mpz_set_str.c _mpz_get_str.c \
|
|
|
|
mpz_realloc.c mp_clz_tab.c
|
1995-11-12 14:40:41 +00:00
|
|
|
|
1995-11-12 14:55:48 +00:00
|
|
|
beforedepend: gmp-mparam.h mp_bases.c
|
1995-11-12 14:40:41 +00:00
|
|
|
|
1995-11-12 14:55:48 +00:00
|
|
|
beforeinstall:
|
1996-08-30 02:12:07 +00:00
|
|
|
${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
|
1995-11-25 00:14:03 +00:00
|
|
|
${.CURDIR}/../libgmp/mp.h ${DESTDIR}/usr/include/mp.h
|
1995-11-12 14:40:41 +00:00
|
|
|
|
1995-11-12 14:55:48 +00:00
|
|
|
cre-mparam: cre-mparam.c
|
1995-11-25 00:14:03 +00:00
|
|
|
$(CC) $(CFLAGS) ${.CURDIR}/../libgmp/cre-mparam.c -o ${.TARGET}
|
1995-11-12 14:40:41 +00:00
|
|
|
|
1995-11-25 00:14:03 +00:00
|
|
|
cre-conv-tab: cre-conv-tab.c gmp-mparam.h
|
|
|
|
$(CC) $(CFLAGS) -lm ${.CURDIR}/../libgmp/cre-conv-tab.c -o ${.TARGET}
|
1995-11-12 14:40:41 +00:00
|
|
|
|
1995-11-12 14:55:48 +00:00
|
|
|
gmp-mparam.h: cre-mparam
|
1995-11-25 00:14:03 +00:00
|
|
|
./cre-mparam > ${.TARGET}
|
1995-11-12 14:40:41 +00:00
|
|
|
|
1995-11-12 14:55:48 +00:00
|
|
|
mp_bases.c: cre-conv-tab
|
1995-11-25 00:14:03 +00:00
|
|
|
./cre-conv-tab > ${.TARGET}
|
1995-11-12 14:40:41 +00:00
|
|
|
|
1995-11-12 14:55:48 +00:00
|
|
|
.include <bsd.lib.mk>
|