Annotation of OpenXM_contrib/gmp/macos/Makefile.in, Revision 1.1.1.2
1.1.1.2 ! ohara 1: # Copyright 2000, 2001 Free Software Foundation, Inc.
1.1 maekawa 2: #
3: # This file is part of the GNU MP Library.
4: #
5: # The GNU MP Library is free software; you can redistribute it and/or modify
6: # it under the terms of the GNU Lesser General Public License as published by
7: # the Free Software Foundation; either version 2.1 of the License, or (at your
8: # option) any later version.
9: #
10: # The GNU MP Library is distributed in the hope that it will be useful, but
11: # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12: # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
13: # License for more details.
14: #
15: # You should have received a copy of the GNU Lesser General Public License
16: # along with the GNU MP Library; see the file COPYING.LIB. If not, write to
17: # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
18: # MA 02111-1307, USA.
19:
20: VERSION = @version@
21:
22: C = @cc@
23: COptions = @coptions@
24: Link = @link@
25: LinkOptions = @linkoptions@
26: ToolOptions = @tooloptions@
27: Asm = @asm@
28: AOptions = @aoptions@
29:
30: Lib = "libgmp.{VERSION}"
31:
32: # These are only needed for creating test programs as MPW tools
33:
34:
35: SysLibs = @syslibs@
36:
37: # Where to put object code. The reason we don't put them into
38: # the same directory is that some objectfiles have the same
39: # name.
40:
41: MpfObjDir = :MpfObj:
42: MpnObjDir = :MpnObj:
43: MpqObjDir = :MpqObj:
44: MpzObjDir = :MpzObj:
45: CmnObjDir = :CmnObj:
46: AsmObjDir = :AsmObj:
47: AsmSrcDir = :Asm:
48: MpfBinDir = :MpfBin:
49: MpqBinDir = :MpqBin:
50: MpzBinDir = :MpzBin:
51:
52: ObjDirs = {MpfObjDir} {MpnObjDir} {MpqObjDir} {MpzObjDir} @c@
53: {CmnObjDir} {AsmObjDir} {AsmSrcDir} @c@
54: {MpfBinDir} {MpqBinDir} {MpzBinDir}
55:
56: ###########################################################################
57:
58: AsmObjs = @asm_objects@
59:
60: AsmSrc = @asm_sources@
61:
62: MpnObjs = {MpnObjDir}mp_bases.o @c@
63: @mpn_objects@
64:
65: MpfObjs = @c@
66: @mpf_objects@
67:
68: MpqObjs = @c@
69: @mpq_objects@
70:
71: MpzObjs = @c@
72: @mpz_objects@
73:
74: CmnObjs = @c@
75: @gmp_objects@
76:
77: Objs = {AsmObjs} {MpfObjs} {MpnObjs} {MpqObjs} {MpzObjs} {CmnObjs}
78:
79:
80:
81: ###########################################################################
82:
83: all @dep@ {Lib}
84:
85: {Lib} @dep@ {Objs} Makefile
86: {Link} {LinkOptions} -o {Lib} {Objs}
87:
88:
89: ###########################################################################
90: # Default rules/ directory rules
91:
92: {MpfObjDir} @dep@ ::mpf:
93:
94: {MpnObjDir} @dep@ ::mpn: ::mpn:generic:
95:
96: {MpqObjDir} @dep@ ::mpq:
97:
98: {MpzObjDir} @dep@ ::mpz:
99:
100: {CmnObjDir} @dep@ ::
101:
102: {AsmObjDir} @dep@ :Asm:
103:
104: {MpzBinDir} @dep@ ::mpz:tests:
105: {MpqBinDir} @dep@ ::mpq:tests:
106: {MpfBinDir} @dep@ ::mpf:tests:
107:
108: .o @dep@ .c Makefile
109: {C} {DepDir}{default}.c -o {TargDir}{default}.o {COptions}
110:
111: .o @dep@ .s Makefile
112: {Asm} {DepDir}{default}.s -o {TargDir}{default}.o {AOptions}
113:
114:
115: clean @dep@
116: Delete -c -i ::mpz:tests:@wildcard@.o
117: Delete -c -i ::mpq:tests:@wildcard@.o
118: Delete -c -i ::mpf:tests:@wildcard@.o
119: Delete -c -i :@wildcard@:@wildcard@.o
120: Delete -c -i :@wildcard@:@wildcard@.s
121: Delete -c -i @wildcard@~
122:
123: distclean @dep@ clean
124: Delete -c -i {Lib}
125: Delete -c -i @wildcard@~
126: Delete -c -i @wildcard@.bak
127:
128: maintainer_clean @dep@ distclean
129: Delete -c -i config.h
130: Delete -c -i configure.mac
131: Delete -c -i Makefile
132: Delete -c -i Makefile.cw
133:
134: ###########################################################################
135: # Test application FIXME: Not ready
136:
137: TestApp = test
138: TestObj = test.o
139:
140: {TestApp} @dep@ {TestObj}
141: {Link} -o {TestApp} {TestObj} {Lib} {SysLibs}
142:
143:
144: ###########################################################################
145: # FIXME: This does't work very well.....
146: # FIXME: Find dependency somehow. With the Unix mkdep like
147: # mkdep -I. -Imacos -Impn -Impn/powerpc32 -Impz \
148: # `find . -name "*.c" | grep -v Apple | grep -v tests | grep -v macos`
149: # or some MPW tool.
150:
151: .exe @dep@ .o
152: {Link} {ToolOptions} -o {TargDir}{default}.exe {DepDir}{default}.o @c@
153: {Lib} {SysLibs}
154:
155:
156: check @dep@ check-mpz check-mpq check-mpf
157:
158: check-mpz @dep@ z-mul z-tdiv z-tdiv_ui z-fdiv z-fdiv_ui @c@
159: z-gcd z-dive z-sqrtrem z-convert z-logic z-bit @c@
160: z-powm z-powm_ui z-pow_ui z-2exp z-reuse z-root @c@
1.1.1.2 ! ohara 161: z-jac z-bin z-misc z-get_si z-fac_ui z-fib_ui
1.1 maekawa 162:
163: # FIXME: Left out z-io, can't compile it.
164:
165: z-mul @dep@ {MpzBinDir}t-mul.exe
166: {MpzBinDir}t-mul.exe
167:
168: z-tdiv @dep@ {MpzBinDir}t-tdiv.exe
169: {MpzBinDir}t-tdiv.exe
170:
171: z-tdiv_ui @dep@ {MpzBinDir}t-tdiv_ui.exe
172: {MpzBinDir}t-tdiv_ui.exe
173:
174: z-fdiv @dep@ {MpzBinDir}t-fdiv.exe
175: {MpzBinDir}t-fdiv.exe
176:
177: z-fdiv_ui @dep@ {MpzBinDir}t-fdiv_ui.exe
178: {MpzBinDir}t-fdiv_ui.exe
179:
180: z-gcd @dep@ {MpzBinDir}t-gcd.exe
181: {MpzBinDir}t-gcd.exe
182:
183: z-dive @dep@ {MpzBinDir}dive.exe
184: {MpzBinDir}dive.exe
185:
186: z-sqrtrem @dep@ {MpzBinDir}t-sqrtrem.exe
187: {MpzBinDir}t-sqrtrem.exe
188:
189: z-convert @dep@ {MpzBinDir}convert.exe
190: {MpzBinDir}convert.exe
191:
192: z-io @dep@ {MpzBinDir}io.exe
193: {MpzBinDir}io.exe
194:
195: z-logic @dep@ {MpzBinDir}logic.exe
196: {MpzBinDir}logic.exe
197:
198: z-bit @dep@ {MpzBinDir}bit.exe
199: {MpzBinDir}bit.exe
200:
201: z-powm @dep@ {MpzBinDir}t-powm.exe
202: {MpzBinDir}t-powm.exe
203:
204: z-powm_ui @dep@ {MpzBinDir}t-powm_ui.exe
205: {MpzBinDir}t-powm_ui.exe
206:
207: z-pow_ui @dep@ {MpzBinDir}t-pow_ui.exe
208: {MpzBinDir}t-pow_ui.exe
209:
210: z-2exp @dep@ {MpzBinDir}t-2exp.exe
211: {MpzBinDir}t-2exp.exe
212:
213: z-reuse @dep@ {MpzBinDir}reuse.exe
214: {MpzBinDir}reuse.exe
215:
216: z-root @dep@ {MpzBinDir}t-root.exe
217: {MpzBinDir}t-root.exe
218:
219: z-jac @dep@ {MpzBinDir}t-jac.exe
220: {MpzBinDir}t-jac.exe
221:
222: z-bin @dep@ {MpzBinDir}t-bin.exe
223: {MpzBinDir}t-bin.exe
224:
225: z-misc @dep@ {MpzBinDir}t-misc.exe
226: {MpzBinDir}t-misc.exe
227:
1.1.1.2 ! ohara 228: z-get_si @dep@ {MpzBinDir}t-get_si.exe
! 229: {MpzBinDir}t-get_si.exe
! 230:
! 231: z-fac_ui @dep@ {MpzBinDir}t-fac_ui.exe
! 232: {MpzBinDir}t-fac_ui.exe
1.1 maekawa 233:
1.1.1.2 ! ohara 234: z-fib_ui @dep@ {MpzBinDir}t-fib_ui.exe
! 235: {MpzBinDir}t-fib_ui.exe
! 236:
! 237:
! 238: check-mpq @dep@ q-cmp q-cmp_ui q-get_d q-set_f
1.1 maekawa 239:
240: q-cmp @dep@ {MpqBinDir}t-cmp.exe
241: {MpqBinDir}t-cmp.exe
242:
243: q-cmp_ui @dep@ {MpqBinDir}t-cmp_ui.exe
244: {MpqBinDir}t-cmp_ui.exe
245:
246: q-get_d @dep@ {MpqBinDir}t-get_d.exe
247: {MpqBinDir}t-get_d.exe
1.1.1.2 ! ohara 248:
! 249: q-set_f @dep@ {MpqBinDir}t-set_f.exe
! 250: {MpqBinDir}t-set_f.exe
1.1 maekawa 251:
252:
253: check-mpf @dep@ f-add f-sub f-conv f-sqrt f-muldiv f-dm2exp f-reuse @c@
254: f-get_d f-misc
255:
256: {MpfBinDir}t-add.exe @dep@ ::mpf:tests:t-add.o ::mpf:tests:ref.o
257: {Link} {ToolOptions} -o {Targ} {Deps} {Lib} {SysLibs}
258:
259: {MpfBinDir}t-sub.exe @dep@ ::mpf:tests:t-sub.o ::mpf:tests:ref.o
260: {Link} {ToolOptions} -o {Targ} {Deps} {Lib} {SysLibs}
261:
262: f-add @dep@ {MpfBinDir}t-add.exe
263: {MpfBinDir}t-add.exe
264:
265: f-sub @dep@ {MpfBinDir}t-sub.exe
266: {MpfBinDir}t-sub.exe
267:
268: f-conv @dep@ {MpfBinDir}t-conv.exe
269: {MpfBinDir}t-conv.exe
270:
271: f-sqrt @dep@ {MpfBinDir}t-sqrt.exe
272: {MpfBinDir}t-sqrt.exe
273:
274: f-muldiv @dep@ {MpfBinDir}t-muldiv.exe
275: {MpfBinDir}t-muldiv.exe
276:
277: f-dm2exp @dep@ {MpfBinDir}t-dm2exp.exe
278: {MpfBinDir}t-dm2exp.exe
279:
280: f-reuse @dep@ {MpfBinDir}reuse.exe
281: {MpfBinDir}reuse.exe
282:
283: f-get_d @dep@ {MpfBinDir}t-get_d.exe
284: {MpfBinDir}t-get_d.exe
285:
286: f-misc @dep@ {MpfBinDir}t-misc.exe
287: {MpfBinDir}t-misc.exe
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>