VM: munmap used by VM for itself is no longer used
[minix.git] / external / lgpl3 / gmp / lib / libgmp / arch / sparc64 / Makefile.inc
blobe8e8fddea17d51d3d4af6a5755c738957266d6f2
1 #       $NetBSD: Makefile.inc,v 1.2 2011/07/03 06:43:16 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         com.c \
37         toom_couple_handling.c \
38         add.c \
39         toom_interpolate_12pts.c \
40         perfsqr.c \
41         toom53_mul.c \
42         toom_eval_pm2exp.c \
43         mu_div_qr.c \
44         toom_interpolate_16pts.c \
45         mod_34lsub1.c \
46         bdiv_q.c \
47         toom22_mul.c \
48         toom4_sqr.c \
49         div_q.c \
50         jacbase.c \
51         gcdext_subdiv_step.c \
52         mullo_n.c \
53         toom33_mul.c \
54         toom_eval_dgr3_pm1.c \
55         mod_1_2.c \
56         sub_1.c \
57         trialdiv.c \
58         add_1.c \
59         sqr_basecase.c \
60         toom_interpolate_5pts.c \
61         sbpi1_bdiv_q.c \
62         pre_mod_1.c \
63         hgcd.c \
64         bdiv_dbm1c.c \
65         sqrtrem.c \
66         bdiv_q_1.c \
67         gcdext_1.c \
68         toom63_mul.c \
69         mul_basecase.c \
70         toom8_sqr.c \
71         neg.c \
72         gcdext_lehmer.c \
73         divis.c \
74         dcpi1_div_q.c \
75         subcnd_n.c \
76         toom_eval_pm2.c \
77         hgcd2.c \
78         toom62_mul.c \
79         sbpi1_bdiv_qr.c \
80         scan1.c \
81         pre_divrem_1.c \
82         perfpow.c \
83         get_str.c \
84         mullo_basecase.c \
85         mulmod_bnm1.c \
86         tdiv_qr.c \
87         toom43_mul.c \
88         mod_1_1.c \
89         matrix22_mul.c \
90         powm_sec.c \
91         divrem.c \
92         gcd_1.c \
93         dcpi1_bdiv_qr.c \
94         mul_n.c \
95         redc_2.c \
96         toom6h_mul.c \
97         mul_fft.c \
98         sqrmod_bnm1.c \
99         powm.c \
100         rootrem.c \
101         mode1o.c \
102         toom_interpolate_8pts.c \
103         remove.c \
104         lshiftc.c \
105         dive_1.c \
106         cmp.c \
107         toom_eval_pm1.c \
108         scan0.c \
109         gcd_subdiv_step.c \
110         sbpi1_div_qr.c \
111         invert.c \
112         sub.c \
113         toom_eval_pm2rexp.c \
114         dcpi1_bdiv_q.c \
115         redc_1.c \
116         sqr.c \
117         nussbaumer_mul.c \
118         mu_bdiv_qr.c \
119         pow_1.c \
120         gcd_lehmer.c \
121         get_d.c \
122         toom52_mul.c \
123         sbpi1_div_q.c \
124         diveby3.c \
125         fib2_ui.c \
126         bdiv_qr.c \
127         toom3_sqr.c \
128         gcd.c \
129         redc_n.c \
131 # XXX hand generated
132 C_SRCS_LIST= \
133         popcount.c              mpn/generic/popham.c \
134         hamdist.c               mpn/generic/popham.c \
135         and_n.c                 mpn/generic/logops_n.c \
136         andn_n.c                mpn/generic/logops_n.c \
137         nand_n.c                mpn/generic/logops_n.c \
138         ior_n.c                 mpn/generic/logops_n.c \
139         iorn_n.c                mpn/generic/logops_n.c \
140         nior_n.c                mpn/generic/logops_n.c \
141         xor_n.c                 mpn/generic/logops_n.c \
142         xnor_n.c                mpn/generic/logops_n.c \
145 ASM_SRCS_LIST= \
146         sqr_diagonal.asm        mpn/sparc64/sqr_diagonal.asm \
147         add_n.asm               mpn/sparc64/add_n.asm \
148         addmul_2.asm            mpn/sparc64/addmul_2.asm \
149         submul_1.asm            mpn/sparc64/submul_1.asm \
150         lshift.asm              mpn/sparc64/lshift.asm \
151         mul_1.asm               mpn/sparc64/mul_1.asm \
152         copyd.asm               mpn/sparc64/copyd.asm \
153         copyi.asm               mpn/sparc64/copyi.asm \
154         rshift.asm              mpn/sparc64/rshift.asm \
155         addmul_1.asm            mpn/sparc64/addmul_1.asm \
156         sub_n.asm               mpn/sparc64/sub_n.asm \
158 gen-trialdivtab: gen-trialdivtab.c
159         ${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
161 # XXX
162 GMP_LIMB_BITS=64
164 trialdiv.c: trialdivtab.h
165 trialdivtab.h: gen-trialdivtab
166         ${.OBJDIR}/gen-trialdivtab $(GMP_LIMB_BITS) 8000 > ${.OBJDIR}/trialdivtab.h
168 CLEANFILES+=    trialdivtab.h
170 # XXX stuff looks for "../config.m4"
171 dummy:
172         mkdir dummy
173 ${.OBJDIR}/config.m4: ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4
174         cp ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4 ${.TARGET}
176 .for _build _src in ${ASM_SRCS_LIST}
177 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
178         ${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src} > ${.TARGET}
180 SRCS+=          ${_build:R}.s
181 CLEANFILES+=    ${_build:R}.s
183 .endfor
185 .for _build _src in ${C_SRCS_LIST}
186 mpn_${_build}: Makefile
187         echo '#include "${_src}"' > ${.TARGET}
189 CPPFLAGS.mpn_${_build}+= -DOPERATION_${_build:R}
191 SRCS+=          mpn_${_build}
192 CLEANFILES+=    mpn_${_build}
193 .endfor