# $OpenBSD: Makefile.bsd-wrapper,v 1.5 1997/11/04 13:15:28 kstailey 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 .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... .include .include .include