Remove building with NOCRYPTO option
[minix.git] / external / lgpl3 / mpc / lib / libmpc / Makefile
blob62d4853fb4ee5b991d63c71df33df1191499c8bb
1 # $NetBSD: Makefile,v 1.2 2013/11/28 14:21:31 mrg Exp $
3 .include <bsd.init.mk>
5 # We don't install mpc, just provide it for GCC.
6 LIBISPRIVATE?= yes
8 .if ${LIBISPRIVATE} != "yes"
9 INCS= mpc.h mpc-log.h
10 INCSDIR= /usr/include
11 .endif
13 LIB= mpc
15 LIBDPLIBS+= gmp ${.CURDIR}/../../../../lgpl3/gmp/lib/libgmp
16 LIBDPLIBS+= mpfr ${.CURDIR}/../../../../lgpl3/mpfr/lib/libmpfr
18 SRCS= \
19 abs.c \
20 acos.c \
21 acosh.c \
22 add.c \
23 add_fr.c \
24 add_si.c \
25 add_ui.c \
26 arg.c \
27 asin.c \
28 asinh.c \
29 atan.c \
30 atanh.c \
31 clear.c \
32 cmp.c \
33 cmp_si_si.c \
34 conj.c \
35 cos.c \
36 cosh.c \
37 div_2si.c \
38 div_2ui.c \
39 div.c \
40 div_fr.c \
41 div_ui.c \
42 exp.c \
43 fma.c \
44 fr_div.c \
45 fr_sub.c \
46 get_prec2.c \
47 get_prec.c \
48 get_version.c \
49 get_x.c \
50 imag.c \
51 init2.c \
52 init3.c \
53 inp_str.c \
54 log.c \
55 log10.c \
56 mem.c \
57 mul_2si.c \
58 mul_2ui.c \
59 mul.c \
60 mul_fr.c \
61 mul_i.c \
62 mul_si.c \
63 mul_ui.c \
64 neg.c \
65 norm.c \
66 out_str.c \
67 pow.c \
68 pow_fr.c \
69 pow_ld.c \
70 pow_d.c \
71 pow_si.c \
72 pow_ui.c \
73 pow_z.c \
74 proj.c \
75 real.c \
76 urandom.c \
77 set.c \
78 set_prec.c \
79 set_str.c \
80 set_x.c \
81 set_x_x.c \
82 sin.c \
83 sin_cos.c \
84 sinh.c \
85 sqr.c \
86 sqrt.c \
87 strtoc.c \
88 sub.c \
89 sub_fr.c \
90 sub_ui.c \
91 swap.c \
92 tan.c \
93 tanh.c \
94 uceil_log2.c \
95 ui_div.c \
96 ui_ui_sub.c
98 CPPFLAGS+= -I${.CURDIR}
100 # Find <mpfr.h> and <gmp.h>
101 GMP_MACHINE_ARCH=${MACHINE_ARCH:C/armv[4-7]/arm/}
102 CPPFLAGS+= -I${NETBSDSRCDIR}/external/lgpl3/gmp/lib/libgmp/arch/${GMP_MACHINE_ARCH}
103 CPPFLAGS+= -I${NETBSDSRCDIR}/external/lgpl3/mpfr/dist/src
105 .include <bsd.lib.mk>
107 .PATH: ${.CURDIR}/../../dist/src