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