blob: c7b87cd04bcd0dff274703e53f558b51e3d12e9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# $OpenBSD: Makefile.bsd-wrapper,v 1.6 1998/06/07 23:28:07 millert Exp $
SUBDIR+= mpn mpz mpf mpq
.if (${MACHINE_ARCH} == "mips")
GNUCFLAGS= CFLAGS="${CFLAGS} ${COPTS} -Wa,-call_shared"
.else
GNUCFLAGS= CFLAGS="${CFLAGS} ${COPTS}"
.endif
all: config.status
${MAKE} ${GNUCFLAGS} BISON=yacc CC=${CC} LDFLAGS=${LDSTATIC} \
build_infodir=. all
.FORCE: .IGNORE
.include <bsd.own.mk>
.ifdef GLOBAL_AUTOCONF_CACHE
CF= --cache-file=${GLOBAL_AUTOCONF_CACHE}
.else
CF=
.endif
config: .FORCE
.ifndef GLOBAL_AUTOCONF_CACHE
-rm -f config.cache
.endif
/bin/sh ${.CURDIR}/configure --with-gnu-as --with-gnu-ld \
--prefix=/usr --local-prefix=/usr ${CF}
config.status: Makefile.in configure
/bin/sh ${.CURDIR}/configure --with-gnu-as --with-gnu-ld \
--prefix=/usr --local-prefix=/usr ${CF} && touch config.status
install:
# # Attempt to edit the info directory node
# if $(SHELL) -c 'install-info --version' >/dev/null 2>&1 ; then \
# if [ -f $(DESTDIR)/usr/share/info/gmp.info ]; then \
# install-info --remove --dir-file=$(DESTDIR)/usr/share/info/dir \
# $(DESTDIR)/usr/share/info/gmp.info; else true; fi \
# else true; fi
${MAKE} ${GNUCFLAGS} prefix=${DESTDIR}/usr \
infodir=${DESTDIR}/usr/share/info \
build_infodir=. \
install
clean cleandir:
-@if [ -e Makefile ]; then ${MAKE} distclean; fi
depend:
# Nothing here so far...
includes:
@if ! cmp -s ${.CURDIR}/gmp.h ${DESTDIR}/usr/include/gmp.h; then \
c="${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
${.CURDIR}/gmp.h ${DESTDIR}/usr/include"; echo $$c; eval $$c; fi
.include <bsd.obj.mk>
.include <bsd.subdir.mk>
.include <bsd.man.mk>
|