diff options
author | Peter Wemm <peter@FreeBSD.org> | 1995-11-25 00:14:03 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 1995-11-25 00:14:03 +0000 |
commit | 3c64c6ee8dc678e4fdf46a99e4d330cf16d87c5b (patch) | |
tree | 673d0d74f0e07abfff5d13d6aaaac3c894d45fad /gnu/lib/libgmp/Makefile | |
parent | 30a2d5501cc1f2c47c9537287d8b29b9db0daa54 (diff) | |
download | src-3c64c6ee8dc678e4fdf46a99e4d330cf16d87c5b.tar.gz src-3c64c6ee8dc678e4fdf46a99e4d330cf16d87c5b.zip |
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..
Notes
Notes:
svn path=/head/; revision=12482
Diffstat (limited to 'gnu/lib/libgmp/Makefile')
-rw-r--r-- | gnu/lib/libgmp/Makefile | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/gnu/lib/libgmp/Makefile b/gnu/lib/libgmp/Makefile index 7df82583e3ca..3c74b9bce707 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} |