summaryrefslogtreecommitdiffstats
path: root/gnu/lib/libgmp
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1995-11-25 00:14:03 +0000
committerpeter <peter@FreeBSD.org>1995-11-25 00:14:03 +0000
commit420160f83da30cf97f4ea80a2486d4c69cedc893 (patch)
tree673d0d74f0e07abfff5d13d6aaaac3c894d45fad /gnu/lib/libgmp
parentca6a9b5f34ee0e45a4bfff5d30c3e20f97889af1 (diff)
downloadFreeBSD-src-420160f83da30cf97f4ea80a2486d4c69cedc893.zip
FreeBSD-src-420160f83da30cf97f4ea80a2486d4c69cedc893.tar.gz
Part two of a repository operation to sort out the libmp/libgmp builds.
After this commit, you should be able to build libmp and libgmp independently and without being forced to do a make depend first..
Diffstat (limited to 'gnu/lib/libgmp')
-rw-r--r--gnu/lib/libgmp/Makefile21
1 files changed, 12 insertions, 9 deletions
diff --git a/gnu/lib/libgmp/Makefile b/gnu/lib/libgmp/Makefile
index 7df8258..3c74b9b 100644
--- a/gnu/lib/libgmp/Makefile
+++ b/gnu/lib/libgmp/Makefile
@@ -1,14 +1,13 @@
# Makefile for libgmp
-# $Id$
+# $Id: Makefile,v 1.1 1995/11/13 19:13:19 markm Exp $
LIB= gmp
SRCS= $(GMP_SRCS)
-.PATH: ${.CURDIR}/../libmp
CLEANFILES+= cre-mparam cre-conv-tab gmp-mparam.h mp_bases.c
-GMP_SRCS= $(MPZ_SRCS) $(MPQ_SRCS) $(MPN_SRCS) $(IMPL_SRCS) mp_bases.c
+GMP_SRCS= mp_bases.c $(MPZ_SRCS) $(MPQ_SRCS) $(MPN_SRCS) $(IMPL_SRCS)
-CFLAGS+= -I${.CURDIR}/../libmp -I${.OBJDIR} -Wall -Wstrict-prototypes -DLOCALE
+CFLAGS+= -I${.CURDIR} -I${.OBJDIR} -Wall -Wstrict-prototypes -DLOCALE
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
@@ -36,18 +35,22 @@ MPQ_SRCS= mpq_init.c mpq_set.c mpq_set_ui.c mpq_set_si.c \
mpq_add.c mpq_sub.c mpq_mul.c mpq_div.c mpq_clear.c \
mpq_cmp.c mpq_inv.c mpq_neg.c
+SUBDIR+= doc
+
beforedepend: gmp-mparam.h mp_bases.c
beforeinstall:
- cmp -s ${.CURDIR}/../libmp/gmp.h ${DESTDIR}/usr/include/gmp.h || \
+ cmp -s ${.SRCDIR}/gmp.h ${DESTDIR}/usr/include/gmp.h || \
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
- ${.CURDIR}/../libmp/gmp.h ${DESTDIR}/usr/include/gmp.h
+ ${.SRCDIR}/gmp.h ${DESTDIR}/usr/include/gmp.h
cre-mparam: cre-mparam.c
- $(CC) $(CFLAGS) ${.OODATE} -o ${.TARGET}
+ $(CC) $(CFLAGS) ${.CURDIR}/cre-mparam.c -o ${.TARGET}
+
+cre-conv-tab: cre-conv-tab.c gmp-mparam.h
+ $(CC) $(CFLAGS) -lm ${.CURDIR}/cre-conv-tab.c -o ${.TARGET}
-cre-conv-tab: cre-conv-tab.c
- $(CC) $(CFLAGS) -lm ${.OODATE} -o ${.TARGET}
+cre-conv-tab: gmp-mparam.h
gmp-mparam.h: cre-mparam
./cre-mparam > tmp-${.TARGET}
OpenPOWER on IntegriCloud