head	1.8;
access;
symbols
	netbsd-11-0-RC4:1.8
	netbsd-11-0-RC3:1.8
	netbsd-11-0-RC2:1.8
	netbsd-11-0-RC1:1.8
	perseant-exfatfs-base-20250801:1.8
	netbsd-11:1.8.0.2
	netbsd-11-base:1.8
	netbsd-10-1-RELEASE:1.6
	perseant-exfatfs-base-20240630:1.7
	perseant-exfatfs:1.7.0.2
	perseant-exfatfs-base:1.7
	netbsd-8-3-RELEASE:1.2
	netbsd-9-4-RELEASE:1.4
	netbsd-10-0-RELEASE:1.6
	netbsd-10-0-RC6:1.6
	netbsd-10-0-RC5:1.6
	netbsd-10-0-RC4:1.6
	netbsd-10-0-RC3:1.6
	netbsd-10-0-RC2:1.6
	netbsd-10-0-RC1:1.6
	netbsd-10:1.6.0.2
	netbsd-10-base:1.6
	netbsd-9-3-RELEASE:1.4
	cjep_sun2x-base1:1.5
	cjep_sun2x:1.5.0.4
	cjep_sun2x-base:1.5
	cjep_staticlib_x-base1:1.5
	netbsd-9-2-RELEASE:1.4
	cjep_staticlib_x:1.5.0.2
	cjep_staticlib_x-base:1.5
	netbsd-9-1-RELEASE:1.4
	phil-wifi-20200421:1.4
	phil-wifi-20200411:1.4
	is-mlppp:1.4.0.4
	is-mlppp-base:1.4
	phil-wifi-20200406:1.4
	netbsd-8-2-RELEASE:1.2
	netbsd-9-0-RELEASE:1.4
	netbsd-9-0-RC2:1.4
	netbsd-9-0-RC1:1.4
	phil-wifi-20191119:1.4
	netbsd-9:1.4.0.2
	netbsd-9-base:1.4
	phil-wifi-20190609:1.4
	netbsd-8-1-RELEASE:1.2
	netbsd-8-1-RC1:1.2
	pgoyette-compat-merge-20190127:1.3.2.1
	pgoyette-compat-20190127:1.4
	pgoyette-compat-20190118:1.4
	pgoyette-compat-1226:1.4
	pgoyette-compat-1126:1.4
	pgoyette-compat-1020:1.4
	pgoyette-compat-0930:1.4
	pgoyette-compat-0906:1.4
	netbsd-7-2-RELEASE:1.2
	pgoyette-compat-0728:1.3
	netbsd-8-0-RELEASE:1.2
	phil-wifi:1.3.0.4
	phil-wifi-base:1.3
	pgoyette-compat-0625:1.3
	netbsd-8-0-RC2:1.2
	pgoyette-compat-0521:1.3
	pgoyette-compat-0502:1.3
	pgoyette-compat-0422:1.3
	netbsd-8-0-RC1:1.2
	pgoyette-compat-0415:1.3
	pgoyette-compat-0407:1.3
	pgoyette-compat-0330:1.3
	pgoyette-compat-0322:1.3
	pgoyette-compat-0315:1.3
	netbsd-7-1-2-RELEASE:1.2
	pgoyette-compat:1.3.0.2
	pgoyette-compat-base:1.3
	netbsd-7-1-1-RELEASE:1.2
	matt-nb8-mediatek:1.2.0.26
	matt-nb8-mediatek-base:1.2
	perseant-stdc-iso10646:1.2.0.24
	perseant-stdc-iso10646-base:1.2
	netbsd-8:1.2.0.22
	netbsd-8-base:1.2
	prg-localcount2-base3:1.2
	prg-localcount2-base2:1.2
	prg-localcount2-base1:1.2
	prg-localcount2:1.2.0.20
	prg-localcount2-base:1.2
	pgoyette-localcount-20170426:1.2
	bouyer-socketcan-base1:1.2
	pgoyette-localcount-20170320:1.2
	netbsd-7-1:1.2.0.18
	netbsd-7-1-RELEASE:1.2
	netbsd-7-1-RC2:1.2
	netbsd-7-nhusb-base-20170116:1.2
	bouyer-socketcan:1.2.0.16
	bouyer-socketcan-base:1.2
	pgoyette-localcount-20170107:1.2
	netbsd-7-1-RC1:1.2
	pgoyette-localcount-20161104:1.2
	netbsd-7-0-2-RELEASE:1.2
	localcount-20160914:1.2
	netbsd-7-nhusb:1.2.0.14
	netbsd-7-nhusb-base:1.2
	pgoyette-localcount-20160806:1.2
	pgoyette-localcount-20160726:1.2
	pgoyette-localcount:1.2.0.12
	pgoyette-localcount-base:1.2
	netbsd-7-0-1-RELEASE:1.2
	netbsd-7-0:1.2.0.10
	netbsd-7-0-RELEASE:1.2
	netbsd-7-0-RC3:1.2
	netbsd-7-0-RC2:1.2
	netbsd-7-0-RC1:1.2
	tls-maxphys-base:1.2
	tls-maxphys:1.2.0.8
	netbsd-7:1.2.0.6
	netbsd-7-base:1.2
	yamt-pagecache:1.2.0.4
	yamt-pagecache-base9:1.2
	tls-earlyentropy:1.2.0.2
	tls-earlyentropy-base:1.2
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.2
	riastradh-drm2-base3:1.2;
locks; strict;
comment	@# @;


1.8
date	2025.04.06.23.03.05;	author rillig;	state Exp;
branches;
next	1.7;
commitid	19bgwc0qOk34R2QF;

1.7
date	2023.03.05.22.36.58;	author mrg;	state Exp;
branches
	1.7.2.1;
next	1.6;
commitid	WPDE9b4aVL0ofZfE;

1.6
date	2022.05.14.11.12.31;	author rillig;	state Exp;
branches;
next	1.5;
commitid	aCgFNFZdZA6sW0ED;

1.5
date	2020.09.26.07.57.56;	author mrg;	state Exp;
branches;
next	1.4;
commitid	WqxmdJJM2kkvZwpC;

1.4
date	2018.09.04.05.16.25;	author mrg;	state Exp;
branches;
next	1.3;
commitid	v0859VBcWrxxiKQA;

1.3
date	2017.08.22.09.17.50;	author mrg;	state Exp;
branches
	1.3.2.1
	1.3.4.1;
next	1.2;
commitid	Ec79w0Jbdz0CMb4A;

1.2
date	2013.11.28.14.21.31;	author mrg;	state Exp;
branches
	1.2.4.1
	1.2.8.1;
next	1.1;
commitid	vZ1BMyhVWsGnh3fx;

1.1
date	2013.11.28.10.57.30;	author mrg;	state Exp;
branches;
next	;
commitid	gPlTFwuwkwgo92fx;

1.7.2.1
date	2025.08.02.05.50.22;	author perseant;	state Exp;
branches;
next	;
commitid	23j6GFaDws3O875G;

1.3.2.1
date	2018.09.06.06.53.45;	author pgoyette;	state Exp;
branches;
next	;
commitid	HCi1bXD317XIK0RA;

1.3.4.1
date	2019.06.10.22.02.25;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.2.4.1
date	2013.11.28.14.21.31;	author yamt;	state dead;
branches;
next	1.2.4.2;
commitid	nx2BSsHy0NPeAxBx;

1.2.4.2
date	2014.05.22.14.09.14;	author yamt;	state Exp;
branches;
next	;
commitid	nx2BSsHy0NPeAxBx;

1.2.8.1
date	2013.11.28.14.21.31;	author tls;	state dead;
branches;
next	1.2.8.2;
commitid	jTnpym9Qu0o4R1Nx;

1.2.8.2
date	2014.08.20.00.00.03;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;


desc
@@


1.8
log
@all: remove 'constant in conditional context' from LINTFLAGS

Lint no longer emits this message, as it produced too many false
positives.
@
text
@#	$NetBSD: Makefile,v 1.7 2023/03/05 22:36:58 mrg Exp $

.include <bsd.init.mk>

# We don't install mpc, just provide it for GCC.
LIBISPRIVATE?= yes

.if ${LIBISPRIVATE} != "yes"
INCS=         mpc.h mpc-log.h
INCSDIR=      /usr/include
.endif

LIB=	mpc

LIBDPLIBS+= gmp ${.CURDIR}/../../../../lgpl3/gmp/lib/libgmp
LIBDPLIBS+= mpfr ${.CURDIR}/../../../../lgpl3/mpfr/lib/libmpfr

SRCS=	\
	abs.c \
	acos.c \
	acosh.c \
	add.c \
	add_fr.c \
	add_si.c \
	add_ui.c \
	agm.c \
	arg.c \
	asin.c \
	asinh.c \
	atan.c \
	atanh.c \
	balls.c \
	clear.c \
	cmp.c \
	cmp_abs.c \
	cmp_si_si.c \
	conj.c \
	cos.c \
	cosh.c \
	div_2si.c \
	div_2ui.c \
	div.c \
	div_fr.c \
	div_ui.c \
	dot.c \
	eta.c \
	exp.c \
	fma.c \
	fr_div.c \
	fr_sub.c \
	get_prec2.c \
	get_prec.c \
	get_version.c \
	get_x.c \
	imag.c \
	init2.c \
	init3.c \
	inp_str.c \
	log.c \
	log10.c \
	mem.c \
	mul_2si.c \
	mul_2ui.c \
	mul.c \
	mul_fr.c \
	mul_i.c \
	mul_si.c \
	mul_ui.c \
	neg.c \
	norm.c \
	out_str.c \
	pow.c \
	pow_fr.c \
	pow_ld.c \
	pow_d.c \
	pow_si.c \
	pow_ui.c \
	pow_z.c \
	proj.c \
	radius.c \
	real.c \
	rootofunity.c \
	urandom.c \
	set.c \
	set_prec.c \
	set_str.c \
	set_x.c \
	set_x_x.c \
	sin.c \
	sin_cos.c \
	sinh.c \
	sqr.c \
	sqrt.c \
	strtoc.c \
	sub.c \
	sub_fr.c \
	sub_ui.c \
	sum.c \
	swap.c \
	tan.c \
	tanh.c \
	uceil_log2.c \
	ui_div.c \
	ui_ui_sub.c

CPPFLAGS+=	-I${.CURDIR}

# Find <mpfr.h> and <gmp.h>
.include "../../../gmp/Makefile.arch"
CPPFLAGS+=	-I${NETBSDSRCDIR}/external/lgpl3/gmp/lib/libgmp/arch/${GMP_MACHINE_ARCH}
CPPFLAGS+=	-I${NETBSDSRCDIR}/external/lgpl3/mpfr/dist/src

# mostly mpc.h, MPC_RND_IM;
# mpc_rnd_t is declared as int even though only 8 bits are actually used
LINTFLAGS+=	-X 117		# bitwise '>>' on signed value possibly nonportable

.include <bsd.lib.mk>

.PATH: ${.CURDIR}/../../dist/src
@


1.7
log
@updates for mpc 1.3.1
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2022/05/14 11:12:31 rillig Exp $
a112 2
# mostly mpfr.h, MPFR_VALUE_OF
LINTFLAGS+=	-X 161		# constant in conditional context
@


1.7.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2025/04/06 23:03:05 rillig Exp $
d113 2
@


1.6
log
@libmpc: suppress wrong lint warnings
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2020/09/26 07:57:56 mrg Exp $
d26 1
d32 1
d46 1
d80 1
@


1.5
log
@updates for mpc 1.2.0.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2018/09/04 05:16:25 mrg Exp $
d109 6
@


1.4
log
@build new libmpc and libmpfr files.  define endianness as needed.
remove odd sort of duplicated SRCS list for mpfr.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2017/08/22 09:17:50 mrg Exp $
d43 1
d94 1
@


1.3
log
@move the GMP_MACHINE_ARCH definition into external/lgpl3/gmp/Makefile.arch.
soon to be GMP 6 allows us to have only two arm copies.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2013/11/28 14:21:31 mrg Exp $
d33 1
d77 1
@


1.3.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2018/09/04 05:16:25 mrg Exp $
a32 1
	cmp_abs.c \
a75 1
	rootofunity.c \
@


1.3.2.1
log
@Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2018/09/04 05:16:25 mrg Exp $
a32 1
	cmp_abs.c \
a75 1
	rootofunity.c \
@


1.2
log
@find mpfr.h.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2013/08/06 05:35:56 matt Exp $
d101 1
a101 1
GMP_MACHINE_ARCH=${MACHINE_ARCH:C/armv[4-7]/arm/}
@


1.2.8.1
log
@file Makefile was added on branch tls-maxphys on 2014-08-20 00:00:03 +0000
@
text
@d1 107
@


1.2.8.2
log
@Rebase to HEAD as of a few days ago.
@
text
@a0 107
#	$NetBSD$

.include <bsd.init.mk>

# We don't install mpc, just provide it for GCC.
LIBISPRIVATE?= yes

.if ${LIBISPRIVATE} != "yes"
INCS=         mpc.h mpc-log.h
INCSDIR=      /usr/include
.endif

LIB=	mpc

LIBDPLIBS+= gmp ${.CURDIR}/../../../../lgpl3/gmp/lib/libgmp
LIBDPLIBS+= mpfr ${.CURDIR}/../../../../lgpl3/mpfr/lib/libmpfr

SRCS=	\
	abs.c \
	acos.c \
	acosh.c \
	add.c \
	add_fr.c \
	add_si.c \
	add_ui.c \
	arg.c \
	asin.c \
	asinh.c \
	atan.c \
	atanh.c \
	clear.c \
	cmp.c \
	cmp_si_si.c \
	conj.c \
	cos.c \
	cosh.c \
	div_2si.c \
	div_2ui.c \
	div.c \
	div_fr.c \
	div_ui.c \
	exp.c \
	fma.c \
	fr_div.c \
	fr_sub.c \
	get_prec2.c \
	get_prec.c \
	get_version.c \
	get_x.c \
	imag.c \
	init2.c \
	init3.c \
	inp_str.c \
	log.c \
	log10.c \
	mem.c \
	mul_2si.c \
	mul_2ui.c \
	mul.c \
	mul_fr.c \
	mul_i.c \
	mul_si.c \
	mul_ui.c \
	neg.c \
	norm.c \
	out_str.c \
	pow.c \
	pow_fr.c \
	pow_ld.c \
	pow_d.c \
	pow_si.c \
	pow_ui.c \
	pow_z.c \
	proj.c \
	real.c \
	urandom.c \
	set.c \
	set_prec.c \
	set_str.c \
	set_x.c \
	set_x_x.c \
	sin.c \
	sin_cos.c \
	sinh.c \
	sqr.c \
	sqrt.c \
	strtoc.c \
	sub.c \
	sub_fr.c \
	sub_ui.c \
	swap.c \
	tan.c \
	tanh.c \
	uceil_log2.c \
	ui_div.c \
	ui_ui_sub.c

CPPFLAGS+=	-I${.CURDIR}

# Find <mpfr.h> and <gmp.h>
GMP_MACHINE_ARCH=${MACHINE_ARCH:C/armv[4-7]/arm/}
CPPFLAGS+=	-I${NETBSDSRCDIR}/external/lgpl3/gmp/lib/libgmp/arch/${GMP_MACHINE_ARCH}
CPPFLAGS+=	-I${NETBSDSRCDIR}/external/lgpl3/mpfr/dist/src

.include <bsd.lib.mk>

.PATH: ${.CURDIR}/../../dist/src
@


1.2.4.1
log
@file Makefile was added on branch yamt-pagecache on 2014-05-22 14:09:14 +0000
@
text
@d1 107
@


1.2.4.2
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@a0 107
#	$NetBSD$

.include <bsd.init.mk>

# We don't install mpc, just provide it for GCC.
LIBISPRIVATE?= yes

.if ${LIBISPRIVATE} != "yes"
INCS=         mpc.h mpc-log.h
INCSDIR=      /usr/include
.endif

LIB=	mpc

LIBDPLIBS+= gmp ${.CURDIR}/../../../../lgpl3/gmp/lib/libgmp
LIBDPLIBS+= mpfr ${.CURDIR}/../../../../lgpl3/mpfr/lib/libmpfr

SRCS=	\
	abs.c \
	acos.c \
	acosh.c \
	add.c \
	add_fr.c \
	add_si.c \
	add_ui.c \
	arg.c \
	asin.c \
	asinh.c \
	atan.c \
	atanh.c \
	clear.c \
	cmp.c \
	cmp_si_si.c \
	conj.c \
	cos.c \
	cosh.c \
	div_2si.c \
	div_2ui.c \
	div.c \
	div_fr.c \
	div_ui.c \
	exp.c \
	fma.c \
	fr_div.c \
	fr_sub.c \
	get_prec2.c \
	get_prec.c \
	get_version.c \
	get_x.c \
	imag.c \
	init2.c \
	init3.c \
	inp_str.c \
	log.c \
	log10.c \
	mem.c \
	mul_2si.c \
	mul_2ui.c \
	mul.c \
	mul_fr.c \
	mul_i.c \
	mul_si.c \
	mul_ui.c \
	neg.c \
	norm.c \
	out_str.c \
	pow.c \
	pow_fr.c \
	pow_ld.c \
	pow_d.c \
	pow_si.c \
	pow_ui.c \
	pow_z.c \
	proj.c \
	real.c \
	urandom.c \
	set.c \
	set_prec.c \
	set_str.c \
	set_x.c \
	set_x_x.c \
	sin.c \
	sin_cos.c \
	sinh.c \
	sqr.c \
	sqrt.c \
	strtoc.c \
	sub.c \
	sub_fr.c \
	sub_ui.c \
	swap.c \
	tan.c \
	tanh.c \
	uceil_log2.c \
	ui_div.c \
	ui_ui_sub.c

CPPFLAGS+=	-I${.CURDIR}

# Find <mpfr.h> and <gmp.h>
GMP_MACHINE_ARCH=${MACHINE_ARCH:C/armv[4-7]/arm/}
CPPFLAGS+=	-I${NETBSDSRCDIR}/external/lgpl3/gmp/lib/libgmp/arch/${GMP_MACHINE_ARCH}
CPPFLAGS+=	-I${NETBSDSRCDIR}/external/lgpl3/mpfr/dist/src

.include <bsd.lib.mk>

.PATH: ${.CURDIR}/../../dist/src
@


1.1
log
@build files for mpc 1.0.1.
@
text
@d103 1
a103 1
CPPFLAGS+=	-I${NETBSDSRCDIR}/external/lgpl3/mpfr/dist
@

