VM: munmap used by VM for itself is no longer used
[minix.git] / external / lgpl3 / gmp / lib / libgmp / arch / powerpc64 / Makefile.inc
blobf45aeb929d9e67811f5a5e35f0d6a4483c8fbfca
1 #       $NetBSD: Makefile.inc,v 1.1 2011/10/29 09:16:54 mrg Exp $
3 SRCS+= \
4         random.c \
5         divrem_2.c \
6         toom_interpolate_7pts.c \
7         sbpi1_divappr_q.c \
8         random2.c \
9         mu_bdiv_q.c \
10         toom32_mul.c \
11         toom44_mul.c \
12         toom8h_mul.c \
13         toom2_sqr.c \
14         zero.c \
15         mod_1_4.c \
16         gcdext.c \
17         binvert.c \
18         mu_div_q.c \
19         invertappr.c \
20         dump.c \
21         mu_divappr_q.c \
22         dcpi1_div_qr.c \
23         redc_1_sec.c \
24         toom6_sqr.c \
25         divrem_1.c \
26         mod_1.c \
27         divexact.c \
28         powlo.c \
29         mul.c \
30         set_str.c \
31         toom42_mul.c \
32         toom_interpolate_6pts.c \
33         dcpi1_divappr_q.c \
34         toom_eval_dgr3_pm2.c \
35         mod_1_3.c \
36         toom_couple_handling.c \
37         add.c \
38         toom_interpolate_12pts.c \
39         perfsqr.c \
40         toom53_mul.c \
41         toom_eval_pm2exp.c \
42         mu_div_qr.c \
43         toom_interpolate_16pts.c \
44         mod_34lsub1.c \
45         bdiv_q.c \
46         toom22_mul.c \
47         toom4_sqr.c \
48         div_q.c \
49         jacbase.c \
50         gcdext_subdiv_step.c \
51         mullo_n.c \
52         toom33_mul.c \
53         toom_eval_dgr3_pm1.c \
54         mod_1_2.c \
55         sub_1.c \
56         trialdiv.c \
57         add_1.c \
58         sqr_basecase.c \
59         toom_interpolate_5pts.c \
60         sbpi1_bdiv_q.c \
61         pre_mod_1.c \
62         hgcd.c \
63         bdiv_dbm1c.c \
64         sqrtrem.c \
65         bdiv_q_1.c \
66         gcdext_1.c \
67         toom63_mul.c \
68         mul_basecase.c \
69         toom8_sqr.c \
70         neg.c \
71         gcdext_lehmer.c \
72         divis.c \
73         dcpi1_div_q.c \
74         subcnd_n.c \
75         toom_eval_pm2.c \
76         hgcd2.c \
77         toom62_mul.c \
78         sbpi1_bdiv_qr.c \
79         scan1.c \
80         pre_divrem_1.c \
81         perfpow.c \
82         get_str.c \
83         mullo_basecase.c \
84         mulmod_bnm1.c \
85         tdiv_qr.c \
86         toom43_mul.c \
87         mod_1_1.c \
88         matrix22_mul.c \
89         powm_sec.c \
90         divrem.c \
91         gcd_1.c \
92         dcpi1_bdiv_qr.c \
93         mul_n.c \
94         redc_2.c \
95         toom6h_mul.c \
96         mul_fft.c \
97         sqrmod_bnm1.c \
98         powm.c \
99         rootrem.c \
100         mode1o.c \
101         toom_interpolate_8pts.c \
102         remove.c \
103         lshiftc.c \
104         dive_1.c \
105         cmp.c \
106         toom_eval_pm1.c \
107         scan0.c \
108         gcd_subdiv_step.c \
109         sbpi1_div_qr.c \
110         invert.c \
111         sub.c \
112         toom_eval_pm2rexp.c \
113         dcpi1_bdiv_q.c \
114         redc_1.c \
115         sqr.c \
116         nussbaumer_mul.c \
117         mu_bdiv_qr.c \
118         pow_1.c \
119         gcd_lehmer.c \
120         get_d.c \
121         toom52_mul.c \
122         sbpi1_div_q.c \
123         diveby3.c \
124         fib2_ui.c \
125         bdiv_qr.c \
126         toom3_sqr.c \
127         gcd.c \
128         redc_n.c \
130 C_SRCS_LIST= \
131         hamdist.c               mpn/generic/popham.c \
132         popcount.c              mpn/generic/popham.c \
134 ASM_SRCS_LIST= \
135         nand_n.asm              mpn/powerpc64/logops_n.asm \
136         sqr_diagonal.asm                mpn/powerpc64/sqr_diagonal.asm \
137         add_n.asm               mpn/powerpc64/mode32/add_n.asm \
138         xor_n.asm               mpn/powerpc64/logops_n.asm \
139         submul_1.asm            mpn/powerpc64/mode32/submul_1.asm \
140         umul.asm                mpn/powerpc64/umul.asm \
141         nior_n.asm              mpn/powerpc64/logops_n.asm \
142         lshift.asm              mpn/powerpc64/lshift.asm \
143         and_n.asm               mpn/powerpc64/logops_n.asm \
144         mul_1.asm               mpn/powerpc64/mode32/mul_1.asm \
145         copyd.asm               mpn/powerpc64/copyd.asm \
146         andn_n.asm              mpn/powerpc64/logops_n.asm \
147         com.asm         mpn/powerpc64/com.asm \
148         copyi.asm               mpn/powerpc64/copyi.asm \
149         rshift.asm              mpn/powerpc64/rshift.asm \
150         iorn_n.asm              mpn/powerpc64/logops_n.asm \
151         ior_n.asm               mpn/powerpc64/logops_n.asm \
152         xnor_n.asm              mpn/powerpc64/logops_n.asm \
153         addmul_1.asm            mpn/powerpc64/mode32/addmul_1.asm \
154         sub_n.asm               mpn/powerpc64/mode32/sub_n.asm \
156 gen-trialdivtab: gen-trialdivtab.c
157         ${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
159 # XXX
160 GMP_LIMB_BITS=64
162 trialdiv.c: trialdivtab.h
163 trialdivtab.h: gen-trialdivtab
164         ${.OBJDIR}/gen-trialdivtab $(GMP_LIMB_BITS) 8000 > ${.OBJDIR}/trialdivtab.h
166 CLEANFILES+=    trialdivtab.h
168 # XXX stuff looks for "../config.m4"
169 dummy:
170         mkdir dummy
171 ${.OBJDIR}/config.m4: ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4
172         cp ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4 ${.TARGET}
174 BUILD_S_INCS=   -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn
176 M4FLAGS= -DPIC
177 .for _build _src in ${ASM_SRCS_LIST}
178 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
179         ${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} ${BUILD_S_INCS} \
180                 ${M4FLAGS} ${M4FLAGS.${.TARGET:R}} \
181                 -DOPERATION_${.TARGET:R} ${DIST}/${_src} > ${.TARGET}
183 SRCS+=          ${_build:R}.s
184 CLEANFILES+=    ${_build:R}.s
186 .endfor
188 .for _build _src in ${C_SRCS_LIST}
189 mpn_${_build}: Makefile
190         echo '#include "${_src}"' > ${.TARGET}
192 CPPFLAGS.mpn_${_build}+= -DOPERATION_${_build:R}
194 SRCS+=          mpn_${_build}
195 CLEANFILES+=    mpn_${_build}
196 .endfor